From aab2fa2b0ca4b08f1d00fec3381472b4b59ed28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Mon, 30 Oct 2023 15:29:17 +0300 Subject: [PATCH 01/27] Add UUID tests Pg 11-15, refactor mixed affinity file, add pushdowning. --- Makefile | 2 +- README.md | 7 +- deparse.c | 5 +- expected/12.15/type.out | 7 + expected/13.11/type.out | 511 +++++++++++++++++++++++- expected/14.8/type.out | 513 ++++++++++++++++++++++++- expected/15.3/type.out | 513 ++++++++++++++++++++++++- expected/16.0/type.out | 10 + sql/12.15/type.sql | 4 + sql/13.11/type.sql | 206 ++++++++++ sql/14.8/type.sql | 206 ++++++++++ sql/15.3/type.sql | 206 ++++++++++ sql/16.0/type.sql | 4 + uuid_extension.c => sqlite_data_norm.c | 96 ++--- sqlite_fdw.c | 18 +- 15 files changed, 2239 insertions(+), 69 deletions(-) rename uuid_extension.c => sqlite_data_norm.c (78%) diff --git a/Makefile b/Makefile index a7b3e373..b86efabb 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ ########################################################################## MODULE_big = sqlite_fdw -OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o uuid_extension.o +OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o sqlite_data_norm.o EXTENSION = sqlite_fdw DATA = sqlite_fdw--1.0.sql sqlite_fdw--1.0--1.1.sql diff --git a/README.md b/README.md index 6d88c5d3..055cf489 100644 --- a/README.md +++ b/README.md @@ -216,10 +216,11 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL - **column_type** as *string*, optional, no default - Gives preferred SQLite affinity for some PostgreSQL data types can be stored in different ways in SQLite. Default preferred SQLite affinity for this types is `text`. + Set preferred SQLite affinity for some PostgreSQL data types can be stored in different ways +in SQLite (mixed affinity case). Updated and inserted values will have this affinity. Default preferred SQLite affinity for `timestamp` and `uuid` PostgreSQL data types is `text`. - Use `INT` value for SQLite column (epoch Unix Time) to be treated/visualized as `timestamp` in PostgreSQL. - - Use `BLOB` value for SQLite column to be treated/visualized as `uuid` in PostgreSQL. + - Use `BLOB` value for SQLite column to be treated/visualized as `uuid` in PostgreSQL 14+. - **key** as *boolean*, optional, default *false* @@ -521,7 +522,7 @@ Limitations ### UUID values - `sqlite_fdw` UUID values support exists only for `uuid` columns in foreign table. SQLite documentation recommends to store UUID as value with both `blob` and `text` [affinity](https://www.sqlite.org/datatype3.html). `sqlite_fdw` can pushdown both reading and filtering both `text` and `blob` values. - Expected affinity of UUID value in SQLite table determined by `column_type` option of the column -for `INSERT` and `UPDATE` commands. +for `INSERT` and `UPDATE` commands. In PostgreSQL 14- only `text` data affinity is availlable, PostgreSQL 14+ supports also `blob` data affinity. Tests ----- diff --git a/deparse.c b/deparse.c index 7f5e2d5d..fcdadf01 100644 --- a/deparse.c +++ b/deparse.c @@ -613,7 +613,9 @@ sqlite_foreign_expr_walker(Node *node, || strcmp(opername, "round") == 0 || strcmp(opername, "rtrim") == 0 || strcmp(opername, "substr") == 0 - || strcmp(opername, "mod") == 0)) + || strcmp(opername, "mod") == 0 + || strcmp(opername, "gen_random_uuid") == 0 + || strcmp(opername, "uuid_generate_v4") == 0)) { return false; } @@ -622,7 +624,6 @@ sqlite_foreign_expr_walker(Node *node, glob_cxt, &inner_cxt, case_arg_cxt)) return false; - /* * If function's input collation is not derived from a foreign * Var, it can't be sent to remote. diff --git a/expected/12.15/type.out b/expected/12.15/type.out index f4cc51b4..d8bd6031 100644 --- a/expected/12.15/type.out +++ b/expected/12.15/type.out @@ -995,6 +995,13 @@ SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) (3 rows) +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; +ERROR: function gen_random_uuid() does not exist +LINE 2: SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + ^ +HINT: No function matches the given name and argument types. You might need to add explicit type casts. --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 44 other objects diff --git a/expected/13.11/type.out b/expected/13.11/type.out index 35bf83ef..cde1ae54 100644 --- a/expected/13.11/type.out +++ b/expected/13.11/type.out @@ -499,9 +499,515 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) +(3 rows) + +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + QUERY PLAN +------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) + Output: i, u, gen_random_uuid() + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" +(3 rows) + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 44 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -526,7 +1032,6 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" -drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -544,4 +1049,6 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/14.8/type.out b/expected/14.8/type.out index 35bf83ef..5ef4a39f 100644 --- a/expected/14.8/type.out +++ b/expected/14.8/type.out @@ -499,9 +499,517 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) +(3 rows) + +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + QUERY PLAN +------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) + Output: i, u, gen_random_uuid() + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" +(3 rows) + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 44 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -526,7 +1034,6 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" -drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -544,4 +1051,6 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/15.3/type.out b/expected/15.3/type.out index 35bf83ef..5ef4a39f 100644 --- a/expected/15.3/type.out +++ b/expected/15.3/type.out @@ -499,9 +499,517 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) +(3 rows) + +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + QUERY PLAN +------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) + Output: i, u, gen_random_uuid() + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" +(3 rows) + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 44 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -526,7 +1034,6 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" -drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -544,4 +1051,6 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/16.0/type.out b/expected/16.0/type.out index ab915e55..5ef4a39f 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -997,6 +997,16 @@ SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) (3 rows) +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + QUERY PLAN +------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) + Output: i, u, gen_random_uuid() + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" +(3 rows) + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 44 other objects diff --git a/sql/12.15/type.sql b/sql/12.15/type.sql index 7565fdd4..d18758cf 100644 --- a/sql/12.15/type.sql +++ b/sql/12.15/type.sql @@ -468,5 +468,9 @@ SELECT * FROM "type_UUID+" WHERE "u" IS NULL; EXPLAIN VERBOSE SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/type.sql b/sql/13.11/type.sql index c6442406..d18758cf 100644 --- a/sql/13.11/type.sql +++ b/sql/13.11/type.sql @@ -266,5 +266,211 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/type.sql b/sql/14.8/type.sql index c6442406..d18758cf 100644 --- a/sql/14.8/type.sql +++ b/sql/14.8/type.sql @@ -266,5 +266,211 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/type.sql b/sql/15.3/type.sql index c6442406..d18758cf 100644 --- a/sql/15.3/type.sql +++ b/sql/15.3/type.sql @@ -266,5 +266,211 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/type.sql b/sql/16.0/type.sql index 7565fdd4..d18758cf 100644 --- a/sql/16.0/type.sql +++ b/sql/16.0/type.sql @@ -468,5 +468,9 @@ SELECT * FROM "type_UUID+" WHERE "u" IS NULL; EXPLAIN VERBOSE SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 241: +EXPLAIN VERBOSE +SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/uuid_extension.c b/sqlite_data_norm.c similarity index 78% rename from uuid_extension.c rename to sqlite_data_norm.c index c77b0f83..be8a3ed5 100644 --- a/uuid_extension.c +++ b/sqlite_data_norm.c @@ -2,15 +2,14 @@ * * SQLite Foreign Data Wrapper for PostgreSQL * - * Universally Unique IDentifiers (UUIDs) in SQLite - * - * Originally from the uuid SQLite exension, Public Domain + * SQLite functions for data normalization + * This function is useful for mixed affinity inputs for PostgreSQL + * data column. Also some UUID functions are implemented here according + * the uuid SQLite exension, Public Domain * https://www.sqlite.org/src/file/ext/misc/uuid.c - * Modified by Anton Zhiyanov, MIT License - * https://github.com/nalgeon/sqlean/ * * IDENTIFICATION - * uuid_extension.c + * sqlite_data_norm.c * *------------------------------------------------------------------------- */ @@ -93,30 +92,29 @@ static unsigned char sqlite_fdw_data_norm_UuidHexToInt(int h) { } /* - * Convert a 16-byte BLOB into a well-formed RFC-4122 UUID. The output - * buffer zStr should be at least 37 bytes in length. The output will + * Convert a 16-byte BLOB aBlob into a well-formed RFC-4122 UUID. The output + * buffer zStr should be at least 37 bytes in length. The output will * be zero-terminated. - * - *static void sqlite_fdw_data_norm_uuid_blob_to_str(const unsigned char* aBlob, / * Input blob * / - * unsigned char* zStr / * Write the answer here * / - *) { - * static const char zDigits[] = "0123456789abcdef"; - * int i, k; - * unsigned char x; - * k = 0; - * for (i = 0, k = 0x550; i < 16; i++, k = k >> 1) { - * if (k & 1) { - * zStr[0] = '-'; - * zStr++; - * } - * x = aBlob[i]; - * zStr[0] = zDigits[x >> 4]; - * zStr[1] = zDigits[x & 0xf]; - * zStr += 2; - * } - * *zStr = 0; - *} */ +static void sqlite_fdw_data_norm_uuid_blob_to_str(const unsigned char* aBlob, unsigned char* zStr ) +{ + static const char zDigits[] = "0123456789abcdef"; + int i, k; + unsigned char x; + k = 0; + for (i = 0, k = 0x550; i < 16; i++, k = k >> 1) { + if (k & 1) { + zStr[0] = '-'; + zStr++; + } + x = aBlob[i]; + zStr[0] = zDigits[x >> 4]; + zStr[1] = zDigits[x & 0xf]; + zStr += 2; + } + *zStr = 0; +} + /* * Attempt to parse a zero-terminated input string zStr into a binary * UUID. Return 0 on success, or non-zero if the input string is not @@ -169,19 +167,19 @@ static const unsigned char* sqlite_fdw_data_norm_uuid_input_to_blob(sqlite3_valu /* * uuid_generate generates a version 4 UUID as a string - * - *static void uuid_generate(sqlite3_context* context, int argc, sqlite3_value** argv) { - * unsigned char aBlob[16]; - * unsigned char zStr[37]; - * (void)argc; - * (void)argv; - * sqlite3_randomness(16, aBlob); - * aBlob[6] = (aBlob[6] & 0x0f) + 0x40; - * aBlob[8] = (aBlob[8] & 0x3f) + 0x80; - * sqlite_fdw_data_norm_uuid_blob_to_str(aBlob, zStr); - * sqlite3_result_text(context, (char*)zStr, 36, SQLITE_TRANSIENT); - *} */ +static void uuid_generate(sqlite3_context* context, int argc, sqlite3_value** argv) { + unsigned char aBlob[16]; + unsigned char zStr[37]; + (void)argc; + (void)argv; + sqlite3_randomness(16, aBlob); + aBlob[6] = (aBlob[6] & 0x0f) + 0x40; + aBlob[8] = (aBlob[8] & 0x3f) + 0x80; + sqlite_fdw_data_norm_uuid_blob_to_str(aBlob, zStr); + sqlite3_result_text(context, (char*)zStr, 36, SQLITE_TRANSIENT); +} + /* * uuid_str converts a UUID X into a well-formed UUID string. * X can be either a string or a blob. @@ -213,15 +211,17 @@ static void uuid_blob(sqlite3_context* context, int argc, sqlite3_value** argv) } int sqlite_fdw_data_norm_functs_init(sqlite3* db) { - /* - * static const int flags = SQLITE_UTF8 | SQLITE_INNOCUOUS; - */ + + static const int flags = SQLITE_UTF8 | SQLITE_INNOCUOUS; static const int det_flags = SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC; - /* - * potentially availlable but not necessary functions - * sqlite3_create_function(db, "sqlite_fdw_gen_random_uuid", 0, flags, 0, uuid_generate, 0, 0); - * sqlite3_create_function(db, "sqlite_fdw_uuid_str", 1, det_flags, 0, uuid_str, 0, 0); - */ + int rc = sqlite3_create_function(db, "sqlite_fdw_uuid_blob", 1, det_flags, 0, uuid_blob, 0, 0); + + /* no rc because in future SQLite releases it can be added UUID generation function + * PostgreSQL 13+, no gen_random_uuid() before + */ + sqlite3_create_function(db, "uuid_generate_v4", 0, flags, 0, uuid_generate, 0, 0); + sqlite3_create_function(db, "gen_random_uuid", 1, flags, 0, uuid_generate, 0, 0); + return rc; } diff --git a/sqlite_fdw.c b/sqlite_fdw.c index 9cb35f3e..66222dc8 100644 --- a/sqlite_fdw.c +++ b/sqlite_fdw.c @@ -1114,14 +1114,14 @@ sqliteGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid ParamPathInfo *param_info = (ParamPathInfo *) lfirst(lc); double rows; int width; - Cost startup_cost; - Cost total_cost; + Cost startup_cost1; + Cost total_cost1; /* Get a cost estimate from the remote */ sqlite_estimate_path_cost_size(root, baserel, param_info->ppi_clauses, NIL, NULL, &rows, &width, - &startup_cost, &total_cost); + &startup_cost1, &total_cost1); /* * ppi_rows currently won't get looked at by anything, but still we @@ -1133,8 +1133,8 @@ sqliteGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid path = create_foreignscan_path(root, baserel, NULL, /* default pathtarget */ rows, - startup_cost, - total_cost, + startup_cost1, + total_cost1, NIL, /* no pathkeys */ param_info->ppi_req_outer, NULL, @@ -3758,7 +3758,7 @@ sqlite_foreign_grouping_ok(PlannerInfo *root, RelOptInfo *grouped_rel) PathTarget *grouping_target; SqliteFdwRelationInfo *fpinfo = (SqliteFdwRelationInfo *) grouped_rel->fdw_private; SqliteFdwRelationInfo *ofpinfo; - List *aggvars; + List *aggvars = NIL; ListCell *lc; int i; List *tlist = NIL; @@ -3934,18 +3934,18 @@ sqlite_foreign_grouping_ok(PlannerInfo *root, RelOptInfo *grouped_rel) */ if (fpinfo->local_conds) { - List *aggvars = NIL; + List *aggvars1 = NIL; foreach(lc, fpinfo->local_conds) { RestrictInfo *rinfo = lfirst_node(RestrictInfo, lc); - aggvars = list_concat(aggvars, + aggvars1 = list_concat(aggvars1, pull_var_clause((Node *) rinfo->clause, PVC_INCLUDE_AGGREGATES)); } - foreach(lc, aggvars) + foreach(lc, aggvars1) { Expr *expr = (Expr *) lfirst(lc); From 5e3f149be16346bdf2e5c5a62d416d15bd88e0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 8 Nov 2023 18:57:47 +0300 Subject: [PATCH 02/27] Add `bool` mixed affinity support, refactor tests --- Makefile | 2 +- deparse.c | 20 +- expected/12.15/extra/bool.out | 212 +++++++++++++ expected/12.15/extra/uuid.out | 510 +++++++++++++++++++++++++++++++ expected/12.15/type.out | 549 ++------------------------------- expected/13.11/extra/bool.out | 212 +++++++++++++ expected/13.11/extra/uuid.out | 510 +++++++++++++++++++++++++++++++ expected/13.11/type.out | 552 ++------------------------------- expected/14.8/extra/bool.out | 212 +++++++++++++ expected/14.8/extra/uuid.out | 512 +++++++++++++++++++++++++++++++ expected/14.8/type.out | 554 ++-------------------------------- expected/15.3/extra/bool.out | 212 +++++++++++++ expected/15.3/extra/uuid.out | 512 +++++++++++++++++++++++++++++++ expected/15.3/type.out | 554 ++-------------------------------- expected/16.0/extra/bool.out | 214 +++++++++++++ expected/16.0/extra/uuid.out | 512 +++++++++++++++++++++++++++++++ expected/16.0/type.out | 554 ++-------------------------------- sql/12.15/extra/bool.sql | 86 ++++++ sql/12.15/extra/uuid.sql | 213 +++++++++++++ sql/12.15/type.sql | 216 +------------ sql/13.11/extra/bool.sql | 86 ++++++ sql/13.11/extra/uuid.sql | 213 +++++++++++++ sql/13.11/type.sql | 216 +------------ sql/14.8/extra/bool.sql | 86 ++++++ sql/14.8/extra/uuid.sql | 213 +++++++++++++ sql/14.8/type.sql | 216 +------------ sql/15.3/extra/bool.sql | 86 ++++++ sql/15.3/extra/uuid.sql | 213 +++++++++++++ sql/15.3/type.sql | 216 +------------ sql/16.0/extra/bool.sql | 88 ++++++ sql/16.0/extra/uuid.sql | 213 +++++++++++++ sql/16.0/type.sql | 216 +------------ sql/init_data/init.sql | 3 +- sqlite_data_norm.c | 317 +++++++++++-------- sqlite_fdw.c | 8 +- sqlite_query.c | 2 +- test.sh | 24 +- 37 files changed, 5477 insertions(+), 3857 deletions(-) create mode 100644 expected/12.15/extra/bool.out create mode 100644 expected/12.15/extra/uuid.out create mode 100644 expected/13.11/extra/bool.out create mode 100644 expected/13.11/extra/uuid.out create mode 100644 expected/14.8/extra/bool.out create mode 100644 expected/14.8/extra/uuid.out create mode 100644 expected/15.3/extra/bool.out create mode 100644 expected/15.3/extra/uuid.out create mode 100644 expected/16.0/extra/bool.out create mode 100644 expected/16.0/extra/uuid.out create mode 100644 sql/12.15/extra/bool.sql create mode 100644 sql/12.15/extra/uuid.sql create mode 100644 sql/13.11/extra/bool.sql create mode 100644 sql/13.11/extra/uuid.sql create mode 100644 sql/14.8/extra/bool.sql create mode 100644 sql/14.8/extra/uuid.sql create mode 100644 sql/15.3/extra/bool.sql create mode 100644 sql/15.3/extra/uuid.sql create mode 100644 sql/16.0/extra/bool.sql create mode 100644 sql/16.0/extra/uuid.sql diff --git a/Makefile b/Makefile index b86efabb..c557a730 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o sqlite_data_n EXTENSION = sqlite_fdw DATA = sqlite_fdw--1.0.sql sqlite_fdw--1.0--1.1.sql -REGRESS = extra/sqlite_fdw_post extra/float4 extra/float8 extra/int4 extra/int8 extra/numeric extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/timestamp extra/encodings sqlite_fdw type aggregate selectfunc +REGRESS = extra/sqlite_fdw_post extra/float4 extra/float8 extra/int4 extra/int8 extra/numeric extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/timestamp extra/encodings extra/bool extra/uuid sqlite_fdw type aggregate selectfunc REGRESS_OPTS = --encoding=utf8 SQLITE_LIB = sqlite3 diff --git a/deparse.c b/deparse.c index fcdadf01..e2465243 100644 --- a/deparse.c +++ b/deparse.c @@ -613,9 +613,7 @@ sqlite_foreign_expr_walker(Node *node, || strcmp(opername, "round") == 0 || strcmp(opername, "rtrim") == 0 || strcmp(opername, "substr") == 0 - || strcmp(opername, "mod") == 0 - || strcmp(opername, "gen_random_uuid") == 0 - || strcmp(opername, "uuid_generate_v4") == 0)) + || strcmp(opername, "mod") == 0 )) { return false; } @@ -2089,15 +2087,19 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * * Recommended form for normalisation is someone from 1<->1 with PostgreSQL * internal storage, hence usually this will not original text data. */ - if (pg_atttyp == UUIDOID && !dml_context ) + if (!dml_context && pg_atttyp == BOOLOID) { - elog(DEBUG2, "UUID unification for \"%s\"", colname); - /* Please remove to UNHEX and deattach uuid_extension.c after SQLite 3.41+ support */ - appendStringInfoString(buf, "coalesce(sqlite_fdw_uuid_blob("); + elog(DEBUG2, "boolean unification for \"%s\"", colname); + appendStringInfoString(buf, "sqlite_fdw_bool("); if (qualify_col) ADD_REL_QUALIFIER(buf, varno); appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); - appendStringInfoString(buf, "),"); + appendStringInfoString(buf, ")"); + } + else if (!dml_context && pg_atttyp == UUIDOID) + { + elog(DEBUG2, "UUID unification for \"%s\"", colname); + appendStringInfoString(buf, "sqlite_fdw_uuid_blob("); if (qualify_col) ADD_REL_QUALIFIER(buf, varno); appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); @@ -2105,7 +2107,7 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * } else { - elog(DEBUG3, "column name without data unification = \"%s\"", colname); + elog(DEBUG4, "column name without data unification = \"%s\"", colname); if (qualify_col) ADD_REL_QUALIFIER(buf, varno); appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); diff --git a/expected/12.15/extra/bool.out b/expected/12.15/extra/bool.out new file mode 100644 index 00000000..4fccf3bb --- /dev/null +++ b/expected/12.15/extra/bool.out @@ -0,0 +1,212 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; + i | b +----+------- + 1 | true + 2 | false + 3 | Yes + 4 | YeS + 5 | yes + 6 | no + 7 | No + 8 | nO + 9 | off + 10 | oFf + 11 | on + 12 | ON + 13 | t + 14 | T + 15 | Y + 16 | y + 17 | F + 18 | f + 19 | x + 20 | 0 + 21 | 1 + 22 | +(22 rows) + +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + Output: i, b + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" +(3 rows) + +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Output: i, b, t, l + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 + 22 | | null | +(21 rows) + +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; + i | b | t | l +----+---+------+--- + 22 | | null | +(1 row) + +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 +(20 rows) + +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 21 | t | integer | 1 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + i | b | t | l +----+---+---------+--- + 2 | f | text | 5 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 +(9 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_BOOLEAN+" +drop cascades to server sqlite2 diff --git a/expected/12.15/extra/uuid.out b/expected/12.15/extra/uuid.out new file mode 100644 index 00000000..92eb5efb --- /dev/null +++ b/expected/12.15/extra/uuid.out @@ -0,0 +1,510 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) +(3 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" +drop cascades to server sqlite2 diff --git a/expected/12.15/type.out b/expected/12.15/type.out index d8bd6031..140a2012 100644 --- a/expected/12.15/type.out +++ b/expected/12.15/type.out @@ -10,10 +10,6 @@ CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,14 +41,6 @@ SELECT * FROM "type_STRING"; string (1 row) ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; - col ------ - t - f -(2 rows) - --Testcase 18: SELECT * FROM "type_BYTE"; col @@ -311,16 +299,35 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK - col ------ + b +--- t f -(2 rows) + t + t + t + f + f + f + f + f + t + t + t + t + t + t + f + f + f + t + +(21 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -499,512 +506,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(3 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(3 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(40 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(21 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(1 row) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l ----+---+---+--- -(0 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(1 row) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | -(1 row) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) -(3 rows) - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; -ERROR: function gen_random_uuid() does not exist -LINE 2: SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - ^ -HINT: No function matches the given name and argument types. You might need to add explicit type casts. --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 44 other objects +NOTICE: drop cascades to 43 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1029,6 +533,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1046,6 +551,4 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/13.11/extra/bool.out b/expected/13.11/extra/bool.out new file mode 100644 index 00000000..4fccf3bb --- /dev/null +++ b/expected/13.11/extra/bool.out @@ -0,0 +1,212 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; + i | b +----+------- + 1 | true + 2 | false + 3 | Yes + 4 | YeS + 5 | yes + 6 | no + 7 | No + 8 | nO + 9 | off + 10 | oFf + 11 | on + 12 | ON + 13 | t + 14 | T + 15 | Y + 16 | y + 17 | F + 18 | f + 19 | x + 20 | 0 + 21 | 1 + 22 | +(22 rows) + +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + Output: i, b + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" +(3 rows) + +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Output: i, b, t, l + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 + 22 | | null | +(21 rows) + +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; + i | b | t | l +----+---+------+--- + 22 | | null | +(1 row) + +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 +(20 rows) + +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 21 | t | integer | 1 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + i | b | t | l +----+---+---------+--- + 2 | f | text | 5 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 +(9 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_BOOLEAN+" +drop cascades to server sqlite2 diff --git a/expected/13.11/extra/uuid.out b/expected/13.11/extra/uuid.out new file mode 100644 index 00000000..92eb5efb --- /dev/null +++ b/expected/13.11/extra/uuid.out @@ -0,0 +1,510 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) +(3 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" +drop cascades to server sqlite2 diff --git a/expected/13.11/type.out b/expected/13.11/type.out index cde1ae54..140a2012 100644 --- a/expected/13.11/type.out +++ b/expected/13.11/type.out @@ -10,10 +10,6 @@ CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,14 +41,6 @@ SELECT * FROM "type_STRING"; string (1 row) ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; - col ------ - t - f -(2 rows) - --Testcase 18: SELECT * FROM "type_BYTE"; col @@ -311,16 +299,35 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK - col ------ + b +--- t f -(2 rows) + t + t + t + f + f + f + f + f + t + t + t + t + t + t + f + f + f + t + +(21 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -499,515 +506,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(3 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(3 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(40 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(21 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(1 row) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l ----+---+---+--- -(0 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(1 row) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | -(1 row) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) -(3 rows) - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - QUERY PLAN -------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) - Output: i, u, gen_random_uuid() - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 44 other objects +NOTICE: drop cascades to 43 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1032,6 +533,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1049,6 +551,4 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/14.8/extra/bool.out b/expected/14.8/extra/bool.out new file mode 100644 index 00000000..4fccf3bb --- /dev/null +++ b/expected/14.8/extra/bool.out @@ -0,0 +1,212 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; + i | b +----+------- + 1 | true + 2 | false + 3 | Yes + 4 | YeS + 5 | yes + 6 | no + 7 | No + 8 | nO + 9 | off + 10 | oFf + 11 | on + 12 | ON + 13 | t + 14 | T + 15 | Y + 16 | y + 17 | F + 18 | f + 19 | x + 20 | 0 + 21 | 1 + 22 | +(22 rows) + +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + Output: i, b + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" +(3 rows) + +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Output: i, b, t, l + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 + 22 | | null | +(21 rows) + +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; + i | b | t | l +----+---+------+--- + 22 | | null | +(1 row) + +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 +(20 rows) + +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 21 | t | integer | 1 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + i | b | t | l +----+---+---------+--- + 2 | f | text | 5 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 +(9 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_BOOLEAN+" +drop cascades to server sqlite2 diff --git a/expected/14.8/extra/uuid.out b/expected/14.8/extra/uuid.out new file mode 100644 index 00000000..b3fc91a8 --- /dev/null +++ b/expected/14.8/extra/uuid.out @@ -0,0 +1,512 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) +(3 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" +drop cascades to server sqlite2 diff --git a/expected/14.8/type.out b/expected/14.8/type.out index 5ef4a39f..140a2012 100644 --- a/expected/14.8/type.out +++ b/expected/14.8/type.out @@ -10,10 +10,6 @@ CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,14 +41,6 @@ SELECT * FROM "type_STRING"; string (1 row) ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; - col ------ - t - f -(2 rows) - --Testcase 18: SELECT * FROM "type_BYTE"; col @@ -311,16 +299,35 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK - col ------ + b +--- t f -(2 rows) + t + t + t + f + f + f + f + f + t + t + t + t + t + t + f + f + f + t + +(21 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -499,517 +506,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(40 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(21 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(1 row) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l ----+---+---+--- -(0 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(1 row) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | -(1 row) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) -(3 rows) - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - QUERY PLAN -------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) - Output: i, u, gen_random_uuid() - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 44 other objects +NOTICE: drop cascades to 43 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1034,6 +533,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1051,6 +551,4 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/15.3/extra/bool.out b/expected/15.3/extra/bool.out new file mode 100644 index 00000000..4fccf3bb --- /dev/null +++ b/expected/15.3/extra/bool.out @@ -0,0 +1,212 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; + i | b +----+------- + 1 | true + 2 | false + 3 | Yes + 4 | YeS + 5 | yes + 6 | no + 7 | No + 8 | nO + 9 | off + 10 | oFf + 11 | on + 12 | ON + 13 | t + 14 | T + 15 | Y + 16 | y + 17 | F + 18 | f + 19 | x + 20 | 0 + 21 | 1 + 22 | +(22 rows) + +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + Output: i, b + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" +(3 rows) + +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Output: i, b, t, l + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 + 22 | | null | +(21 rows) + +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; + i | b | t | l +----+---+------+--- + 22 | | null | +(1 row) + +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 2 | f | text | 5 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 +(20 rows) + +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; + i | b | t | l +----+---+---------+--- + 1 | t | text | 4 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 21 | t | integer | 1 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + i | b | t | l +----+---+---------+--- + 2 | f | text | 5 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 +(9 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_BOOLEAN+" +drop cascades to server sqlite2 diff --git a/expected/15.3/extra/uuid.out b/expected/15.3/extra/uuid.out new file mode 100644 index 00000000..b3fc91a8 --- /dev/null +++ b/expected/15.3/extra/uuid.out @@ -0,0 +1,512 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) +(3 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" +drop cascades to server sqlite2 diff --git a/expected/15.3/type.out b/expected/15.3/type.out index 5ef4a39f..140a2012 100644 --- a/expected/15.3/type.out +++ b/expected/15.3/type.out @@ -10,10 +10,6 @@ CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,14 +41,6 @@ SELECT * FROM "type_STRING"; string (1 row) ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; - col ------ - t - f -(2 rows) - --Testcase 18: SELECT * FROM "type_BYTE"; col @@ -311,16 +299,35 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK - col ------ + b +--- t f -(2 rows) + t + t + t + f + f + f + f + f + t + t + t + t + t + t + f + f + f + t + +(21 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -499,517 +506,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(40 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(21 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(1 row) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l ----+---+---+--- -(0 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(1 row) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | -(1 row) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) -(3 rows) - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - QUERY PLAN -------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) - Output: i, u, gen_random_uuid() - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 44 other objects +NOTICE: drop cascades to 43 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1034,6 +533,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1051,6 +551,4 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/expected/16.0/extra/bool.out b/expected/16.0/extra/bool.out new file mode 100644 index 00000000..2fd40d41 --- /dev/null +++ b/expected/16.0/extra/bool.out @@ -0,0 +1,214 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; +--Testcase 05: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 25: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 26: +SELECT * FROM "type_BOOLEAN"; + i | b +----+----- + 1 | 1 + 2 | 0 + 3 | Yes + 4 | YeS + 5 | yes + 6 | no + 7 | No + 8 | nO + 9 | off + 10 | oFf + 11 | on + 12 | ON + 13 | t + 14 | T + 15 | Y + 16 | y + 17 | F + 18 | f + 19 | x + 20 | 0 + 21 | 1 + 22 | +(22 rows) + +--Testcase 27: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + Output: i, b + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" +(3 rows) + +--Testcase 29: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Output: i, b, t, l + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 30: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 31 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 32: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 + 22 | | null | +(21 rows) + +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; + i | b | t | l +----+---+------+--- + 22 | | null | +(1 row) + +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 + 21 | t | integer | 1 +(20 rows) + +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE b; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 3 | t | text | 3 + 4 | t | text | 3 + 5 | t | text | 3 + 11 | t | text | 2 + 12 | t | text | 2 + 13 | t | text | 1 + 14 | t | text | 1 + 15 | t | text | 1 + 16 | t | text | 1 + 21 | t | integer | 1 +(11 rows) + +--Testcase 36: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + i | b | t | l +----+---+---------+--- + 2 | f | integer | 1 + 6 | f | text | 2 + 7 | f | text | 2 + 8 | f | text | 2 + 9 | f | text | 3 + 10 | f | text | 3 + 17 | f | text | 1 + 18 | f | text | 1 + 20 | f | integer | 1 +(9 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_BOOLEAN+" +drop cascades to server sqlite2 diff --git a/expected/16.0/extra/uuid.out b/expected/16.0/extra/uuid.out new file mode 100644 index 00000000..b3fc91a8 --- /dev/null +++ b/expected/16.0/extra/uuid.out @@ -0,0 +1,512 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------ + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) +(3 rows) + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 4 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" +drop cascades to server sqlite2 diff --git a/expected/16.0/type.out b/expected/16.0/type.out index 5ef4a39f..140a2012 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -10,10 +10,6 @@ CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,14 +41,6 @@ SELECT * FROM "type_STRING"; string (1 row) ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; - col ------ - t - f -(2 rows) - --Testcase 18: SELECT * FROM "type_BYTE"; col @@ -311,16 +299,35 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK - col ------ + b +--- t f -(2 rows) + t + t + t + f + f + f + f + f + t + t + t + t + t + t + f + f + f + t + +(21 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -499,517 +506,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(40 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(21 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(1 row) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l ----+---+---+--- -(0 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(1 row) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | -(1 row) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(1 row) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) -(3 rows) - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - QUERY PLAN -------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID" (cost=10.00..1865.65 rows=1861 width=36) - Output: i, u, gen_random_uuid() - SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`) FROM main."type_UUID" -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 44 other objects +NOTICE: drop cascades to 43 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1034,6 +533,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1051,6 +551,4 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to server sqlite2 diff --git a/sql/12.15/extra/bool.sql b/sql/12.15/extra/bool.sql new file mode 100644 index 00000000..eced6df6 --- /dev/null +++ b/sql/12.15/extra/bool.sql @@ -0,0 +1,86 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/12.15/extra/uuid.sql b/sql/12.15/extra/uuid.sql new file mode 100644 index 00000000..b83505f2 --- /dev/null +++ b/sql/12.15/extra/uuid.sql @@ -0,0 +1,213 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/12.15/type.sql b/sql/12.15/type.sql index d18758cf..92dfff52 100644 --- a/sql/12.15/type.sql +++ b/sql/12.15/type.sql @@ -13,10 +13,6 @@ IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,8 +41,6 @@ INSERT INTO typetest VALUES(1,'a', 'b', 'c','2017.11.06 12:34:56.789', '2017.11. --Testcase 16: SELECT * FROM "type_STRING"; ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; --Testcase 18: SELECT * FROM "type_BYTE"; --Testcase 19: @@ -148,9 +142,9 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK @@ -266,211 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/bool.sql b/sql/13.11/extra/bool.sql new file mode 100644 index 00000000..eced6df6 --- /dev/null +++ b/sql/13.11/extra/bool.sql @@ -0,0 +1,86 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/uuid.sql b/sql/13.11/extra/uuid.sql new file mode 100644 index 00000000..b83505f2 --- /dev/null +++ b/sql/13.11/extra/uuid.sql @@ -0,0 +1,213 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/type.sql b/sql/13.11/type.sql index d18758cf..92dfff52 100644 --- a/sql/13.11/type.sql +++ b/sql/13.11/type.sql @@ -13,10 +13,6 @@ IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,8 +41,6 @@ INSERT INTO typetest VALUES(1,'a', 'b', 'c','2017.11.06 12:34:56.789', '2017.11. --Testcase 16: SELECT * FROM "type_STRING"; ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; --Testcase 18: SELECT * FROM "type_BYTE"; --Testcase 19: @@ -148,9 +142,9 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK @@ -266,211 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/extra/bool.sql b/sql/14.8/extra/bool.sql new file mode 100644 index 00000000..eced6df6 --- /dev/null +++ b/sql/14.8/extra/bool.sql @@ -0,0 +1,86 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/extra/uuid.sql b/sql/14.8/extra/uuid.sql new file mode 100644 index 00000000..b83505f2 --- /dev/null +++ b/sql/14.8/extra/uuid.sql @@ -0,0 +1,213 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/type.sql b/sql/14.8/type.sql index d18758cf..92dfff52 100644 --- a/sql/14.8/type.sql +++ b/sql/14.8/type.sql @@ -13,10 +13,6 @@ IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,8 +41,6 @@ INSERT INTO typetest VALUES(1,'a', 'b', 'c','2017.11.06 12:34:56.789', '2017.11. --Testcase 16: SELECT * FROM "type_STRING"; ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; --Testcase 18: SELECT * FROM "type_BYTE"; --Testcase 19: @@ -148,9 +142,9 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK @@ -266,211 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/extra/bool.sql b/sql/15.3/extra/bool.sql new file mode 100644 index 00000000..eced6df6 --- /dev/null +++ b/sql/15.3/extra/bool.sql @@ -0,0 +1,86 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 25: +SELECT * FROM "type_BOOLEAN"; +--Testcase 26: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 27: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; +--Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +--Testcase 30 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 31: +SELECT * FROM "type_BOOLEAN+"; +--Testcase 32: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/extra/uuid.sql b/sql/15.3/extra/uuid.sql new file mode 100644 index 00000000..b83505f2 --- /dev/null +++ b/sql/15.3/extra/uuid.sql @@ -0,0 +1,213 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/type.sql b/sql/15.3/type.sql index d18758cf..92dfff52 100644 --- a/sql/15.3/type.sql +++ b/sql/15.3/type.sql @@ -13,10 +13,6 @@ IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,8 +41,6 @@ INSERT INTO typetest VALUES(1,'a', 'b', 'c','2017.11.06 12:34:56.789', '2017.11. --Testcase 16: SELECT * FROM "type_STRING"; ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; --Testcase 18: SELECT * FROM "type_BYTE"; --Testcase 19: @@ -148,9 +142,9 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK @@ -266,211 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/bool.sql b/sql/16.0/extra/bool.sql new file mode 100644 index 00000000..056cd9c9 --- /dev/null +++ b/sql/16.0/extra/bool.sql @@ -0,0 +1,88 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 01: +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; +--Testcase 02: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); +--Testcase 03: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); +--Testcase 04: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; +--Testcase 05: +CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 06: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +--Testcase 07: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +--Testcase 08: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +--Testcase 09: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +--Testcase 10: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +--Testcase 11: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +--Testcase 12: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +--Testcase 13: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +--Testcase 14: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +--Testcase 15: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +--Testcase 16: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +--Testcase 17: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +--Testcase 18: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +--Testcase 19: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +--Testcase 20: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +--Testcase 21: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +--Testcase 22: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +--Testcase 23: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +--Testcase 24: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +--Testcase 25: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +--Testcase 26: +SELECT * FROM "type_BOOLEAN"; +--Testcase 27: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 28: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; +--Testcase 29: +EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN+"; +--Testcase 30: ERR - invalid text affinity because not ISO:SQL text input +SELECT * FROM "type_BOOLEAN+"; +--Testcase 31 +DELETE FROM "type_BOOLEAN" WHERE i = 19; +--Testcase 32: +SELECT * FROM "type_BOOLEAN+"; +--Testcase 33: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +--Testcase 34: +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +--Testcase 35: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 36: +SELECT * FROM "type_BOOLEAN+" WHERE NOT b; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/uuid.sql b/sql/16.0/extra/uuid.sql new file mode 100644 index 00000000..b83505f2 --- /dev/null +++ b/sql/16.0/extra/uuid.sql @@ -0,0 +1,213 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 44: +CREATE EXTENSION sqlite_fdw; +--Testcase 45: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); + +--Testcase 46: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + +--Testcase 47: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/type.sql b/sql/16.0/type.sql index d18758cf..92dfff52 100644 --- a/sql/16.0/type.sql +++ b/sql/16.0/type.sql @@ -13,10 +13,6 @@ IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; --Testcase 1: INSERT INTO "type_STRING"(col) VALUES ('string'); ---Testcase 2: -INSERT INTO "type_BOOLEAN"(col) VALUES (TRUE); ---Testcase 3: -INSERT INTO "type_BOOLEAN"(col) VALUES (FALSE); --Testcase 4: INSERT INTO "type_BYTE"(col) VALUES ('c'); --Testcase 5: @@ -45,8 +41,6 @@ INSERT INTO typetest VALUES(1,'a', 'b', 'c','2017.11.06 12:34:56.789', '2017.11. --Testcase 16: SELECT * FROM "type_STRING"; ---Testcase 17: -SELECT * FROM "type_BOOLEAN"; --Testcase 18: SELECT * FROM "type_BYTE"; --Testcase 19: @@ -148,9 +142,9 @@ DELETE FROM type_JSON; --Testcase 62: DROP FOREIGN TABLE "type_BOOLEAN"; --Testcase 63: -CREATE FOREIGN TABLE "type_BOOLEAN" (colx int, col boolean) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int, b boolean) SERVER sqlite_svr; --Testcase 64: -ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN colx; +ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; --Testcase 65: SELECT * FROM "type_BOOLEAN"; -- OK @@ -266,211 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT "i", "u", gen_random_uuid() FROM "type_UUID"; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/init_data/init.sql b/sql/init_data/init.sql index a234ee34..9b25eb3f 100644 --- a/sql/init_data/init.sql +++ b/sql/init_data/init.sql @@ -22,7 +22,8 @@ create table grem1_2 (a int primary key, b int generated always as (a * 2) store CREATE TABLE case_exp(c1 int primary key, c3 text, c6 varchar(10)); CREATE TABLE "type_STRING" (col text primary key); -CREATE TABLE "type_BOOLEAN" (col boolean primary key); +CREATE TABLE "type_BOOLEAN" (i int primary key, b boolean); +CREATE VIEW "type_BOOLEAN+" AS SELECT *, typeof("b") t, length("b") l FROM "type_BOOLEAN"; CREATE TABLE "type_BYTE" (col char(1) primary key); CREATE TABLE "type_SINT" (col smallint primary key); CREATE TABLE "type_BINT" (col bigint primary key); diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index be8a3ed5..017a5316 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -18,14 +18,14 @@ * This SQLite extension implements functions that handling RFC-4122 UUIDs * Three SQL functions are implemented: * - * gen_random_uuid() - generate a version 4 UUID as a string - * uuid_str(X) - convert a UUID X into a well-formed UUID string - * uuid_blob(X) - convert a UUID X into a 16-byte blob + * gen_random_uuid() - generate a version 4 UUID as a string + * uuid_str(X) - convert a UUID X into a well-formed UUID string + * uuid_blob(X) - convert a UUID X into a 16-byte blob * * The output from gen_random_uuid() and uuid_str(X) are always well-formed * RFC-4122 UUID strings in this format: * - * xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx + * xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx * * All of the 'x', 'M', and 'N' values are lower-case hexadecimal digits. * The M digit indicates the "version". For uuid4()-generated UUIDs, the @@ -49,16 +49,16 @@ * implementation of UUID functions that accept in all of the following * formats: * - * A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11 - * {a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11} - * a0eebc999c0b4ef8bb6d6bb9bd380a11 - * a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11 - * {a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11} + * A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11 + * {a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11} + * a0eebc999c0b4ef8bb6d6bb9bd380a11 + * a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11 + * {a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11} * * If any of the above inputs are passed into uuid_str(), the output will * always be in the canonical RFC-4122 format: * - * a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 + * a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 * * If the X input string has too few or too many digits or contains * stray characters other than {, }, or -, then NULL is returned. @@ -80,148 +80,213 @@ int sqlite_fdw_data_norm_functs_init(sqlite3* db); * This routine only works if h really is a valid hexadecimal * character: 0..9a..fA..F */ -static unsigned char sqlite_fdw_data_norm_UuidHexToInt(int h) { - assert((h >= '0' && h <= '9') || (h >= 'a' && h <= 'f') || (h >= 'A' && h <= 'F')); +static unsigned char +sqlite_fdw_data_norm_UuidHexToInt(int h) +{ + assert((h >= '0' && h <= '9') || (h >= 'a' && h <= 'f') || (h >= 'A' && h <= 'F')); #ifdef SQLITE_ASCII - h += 9 * (1 & (h >> 6)); + h += 9 * (1 & (h >> 6)); #endif #ifdef SQLITE_EBCDIC - h += 9 * (1 & ~(h >> 4)); + h += 9 * (1 & ~(h >> 4)); #endif - return (unsigned char)(h & 0xf); -} - -/* - * Convert a 16-byte BLOB aBlob into a well-formed RFC-4122 UUID. The output - * buffer zStr should be at least 37 bytes in length. The output will - * be zero-terminated. - */ -static void sqlite_fdw_data_norm_uuid_blob_to_str(const unsigned char* aBlob, unsigned char* zStr ) -{ - static const char zDigits[] = "0123456789abcdef"; - int i, k; - unsigned char x; - k = 0; - for (i = 0, k = 0x550; i < 16; i++, k = k >> 1) { - if (k & 1) { - zStr[0] = '-'; - zStr++; - } - x = aBlob[i]; - zStr[0] = zDigits[x >> 4]; - zStr[1] = zDigits[x & 0xf]; - zStr += 2; - } - *zStr = 0; + return (unsigned char)(h & 0xf); } /* - * Attempt to parse a zero-terminated input string zStr into a binary - * UUID. Return 0 on success, or non-zero if the input string is not + * Attempt to parse a zero-terminated input string zs into a binary + * UUID. Return 1 on success, or 0 if the input string is not * parsable. */ -static int sqlite_fdw_data_norm_uuid_str_to_blob(const unsigned char* zStr, /* Input string */ - unsigned char* aBlob /* Write results here */ -) { - int i; - if (zStr[0] == '{') - zStr++; - for (i = 0; i < 16; i++) { - if (zStr[0] == '-') - zStr++; - if (isxdigit(zStr[0]) && isxdigit(zStr[1])) { - aBlob[i] = (sqlite_fdw_data_norm_UuidHexToInt(zStr[0]) << 4) + sqlite_fdw_data_norm_UuidHexToInt(zStr[1]); - zStr += 2; - } else { - return 1; - } - } - if (zStr[0] == '}') - zStr++; - return zStr[0] != 0; -} - -/* - * Render sqlite3_value pIn as a 16-byte UUID blob. Return a pointer - * to the blob, or NULL if the input is not well-formed. - */ -static const unsigned char* sqlite_fdw_data_norm_uuid_input_to_blob(sqlite3_value* pIn, /* Input text */ - unsigned char* pBuf /* output buffer */ -) { - switch (sqlite3_value_type(pIn)) { - case SQLITE_TEXT: { - const unsigned char* z = sqlite3_value_text(pIn); - if (sqlite_fdw_data_norm_uuid_str_to_blob(z, pBuf)) - return 0; - return pBuf; - } - case SQLITE_BLOB: { - int n = sqlite3_value_bytes(pIn); - return n == 16 ? sqlite3_value_blob(pIn) : 0; - } - default: { - return 0; - } - } +static int +sqlite_fdw_uuid_blob (const unsigned char* s0, unsigned char* Blob) +{ + int i; + unsigned char* s = (unsigned char*)s0; + if (s[0] == '{') + s++; + for (i = 0; i < 16; i++) + { + if (s[0] == '-') + s++; + if (isxdigit(s[0]) && isxdigit(s[1])) + { + Blob[i] = (sqlite_fdw_data_norm_UuidHexToInt(s[0]) << 4) + sqlite_fdw_data_norm_UuidHexToInt(s[1]); + s += 2; + } + else + { + return 0; + } + } + if (s[0] == '}') + s++; + return s[0] == 0; } /* * uuid_generate generates a version 4 UUID as a string + * + *static void uuid_generate(sqlite3_context* context, int argc, sqlite3_value** argv) + *{ + * unsigned char aBlob[16]; + * unsigned char zs[37]; + * sqlite3_randomness(16, aBlob); + * aBlob[6] = (aBlob[6] & 0x0f) + 0x40; + * aBlob[8] = (aBlob[8] & 0x3f) + 0x80; + * sqlite_fdw_data_norm_uuid_blob_to_str(aBlob, zs); + * sqlite3_result_text(context, (char*)zs, 36, SQLITE_TRANSIENT); + *} */ -static void uuid_generate(sqlite3_context* context, int argc, sqlite3_value** argv) { - unsigned char aBlob[16]; - unsigned char zStr[37]; - (void)argc; - (void)argv; - sqlite3_randomness(16, aBlob); - aBlob[6] = (aBlob[6] & 0x0f) + 0x40; - aBlob[8] = (aBlob[8] & 0x3f) + 0x80; - sqlite_fdw_data_norm_uuid_blob_to_str(aBlob, zStr); - sqlite3_result_text(context, (char*)zStr, 36, SQLITE_TRANSIENT); -} /* * uuid_str converts a UUID X into a well-formed UUID string. * X can be either a string or a blob. * * static void uuid_str(sqlite3_context* context, int argc, sqlite3_value** argv) { - * unsigned char aBlob[16]; - * unsigned char zStr[37]; - * const unsigned char* pBlob; - * (void)argc; - * pBlob = sqlite_fdw_data_norm_uuid_input_to_blob(argv[0], aBlob); - * if (pBlob == 0) - * return; - * sqlite_fdw_data_norm_uuid_blob_to_str(pBlob, zStr); - * sqlite3_result_text(context, (char*)zStr, 36, SQLITE_TRANSIENT); + * unsigned char aBlob[16]; + * unsigned char zs[37]; + * const unsigned char* pBlob; + * (void)argc; + * pBlob = sqlite_fdw_data_norm_uuid_input_to_blob(argv[0], aBlob); + * if (pBlob == 0) + * return; + * sqlite_fdw_data_norm_uuid_blob_to_str(pBlob, zs); + * sqlite3_result_text(context, (char*)zs, 36, SQLITE_TRANSIENT); *} */ + /* - * uuid_blob converts a UUID X into a 16-byte blob. - * X can be either a string or a blob. + * uuid_blob normalize text or blob UUID argv[0] into a 16-byte blob. */ -static void uuid_blob(sqlite3_context* context, int argc, sqlite3_value** argv) { - unsigned char aBlob[16]; - const unsigned char* pBlob; - (void)argc; - pBlob = sqlite_fdw_data_norm_uuid_input_to_blob(argv[0], aBlob); - if (pBlob == 0) - return; - sqlite3_result_blob(context, pBlob, 16, SQLITE_TRANSIENT); +static void +sqlite_fdw_data_norm_uuid(sqlite3_context* context, int argc, sqlite3_value** argv) +{ + unsigned char aBlob[16]; + sqlite3_value* arg = argv[0]; + + if (sqlite3_value_type(argv[0]) == SQLITE3_TEXT) + { + const unsigned char* txt = sqlite3_value_text(arg); + if (sqlite_fdw_uuid_blob(txt, aBlob)) + { + sqlite3_result_blob(context, aBlob, 16, SQLITE_TRANSIENT); + return; + } + } + sqlite3_result_value(context, arg); } -int sqlite_fdw_data_norm_functs_init(sqlite3* db) { +/* + * ISO:SQL valid boolean values with text affinity such as Y, no, f, t, oN etc. + * will be treated as boolean like in PostgreSQL console input + */ +static void +sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** argv) +{ + + sqlite3_value* arg = argv[0]; + int dt = sqlite3_value_type(arg); + const char* t; + int l; + + if (dt == SQLITE_INTEGER) + { + /* The fastest call because expected very often */ + sqlite3_result_value(context, arg); + return; + } + if (dt != SQLITE3_TEXT && dt != SQLITE_BLOB ) + { + /* NULL, FLOAT */ + sqlite3_result_value(context, arg); + return; + } + l = sqlite3_value_bytes(arg); + if (l > 5) + { + sqlite3_result_value(context, arg); + return; + } + + t = (const char*)sqlite3_value_text(arg); + + if ( l == 1 ) + { + if (strcasecmp(t, "t") == 0) + { + sqlite3_result_int(context, 1); + return; + } + if (strcasecmp(t, "f") == 0) + { + sqlite3_result_int(context, 0); + return; + } + if (strcasecmp(t, "y") == 0) + { + sqlite3_result_int(context, 1); + return; + } + if (strcasecmp(t, "n") == 0) + { + sqlite3_result_int(context, 0); + return; + } + } + if ( l == 2 ) + { + if (strcasecmp(t, "on") == 0) + { + sqlite3_result_int(context, 1); + return; + } + if (strcasecmp(t, "no") == 0) + { + sqlite3_result_int(context, 0); + return; + } + } + if ( l == 3 ) + { + if (strcasecmp(t, "yes") == 0) + { + sqlite3_result_int(context, 1); + return; + } + if (strcasecmp(t, "off") == 0) + { + sqlite3_result_int(context, 0); + return; + } + } + if ( l == 4 && strcasecmp(t, "true") == 0) + { + sqlite3_result_int(context, 1); + return; + } + if ( l == 5 && strcasecmp(t, "false") == 0) + { + sqlite3_result_int(context, 0); + return; + } + sqlite3_result_value(context, arg); +} - static const int flags = SQLITE_UTF8 | SQLITE_INNOCUOUS; - static const int det_flags = SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC; +int +sqlite_fdw_data_norm_functs_init(sqlite3* db) { + + static const int det_flags = SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC; - int rc = sqlite3_create_function(db, "sqlite_fdw_uuid_blob", 1, det_flags, 0, uuid_blob, 0, 0); - - /* no rc because in future SQLite releases it can be added UUID generation function - * PostgreSQL 13+, no gen_random_uuid() before - */ - sqlite3_create_function(db, "uuid_generate_v4", 0, flags, 0, uuid_generate, 0, 0); - sqlite3_create_function(db, "gen_random_uuid", 1, flags, 0, uuid_generate, 0, 0); - - return rc; + int rc = sqlite3_create_function(db, "sqlite_fdw_uuid_blob", 1, det_flags, 0, sqlite_fdw_data_norm_uuid, 0, 0); + int rc1 = sqlite3_create_function(db, "sqlite_fdw_bool", 1, det_flags, 0, sqlite_fdw_data_norm_bool, 0, 0); + + /* no rc because in future SQLite releases it can be added UUID generation function + * PostgreSQL 13+, no gen_random_uuid() before + * static const int flags = SQLITE_UTF8 | SQLITE_INNOCUOUS; + * sqlite3_create_function(db, "uuid_generate_v4", 0, flags, 0, uuid_generate, 0, 0); + * sqlite3_create_function(db, "gen_random_uuid", 1, flags, 0, uuid_generate, 0, 0); + */ + + return rc | rc1; } diff --git a/sqlite_fdw.c b/sqlite_fdw.c index 66222dc8..70ab4c9c 100644 --- a/sqlite_fdw.c +++ b/sqlite_fdw.c @@ -3145,14 +3145,14 @@ sqliteImportForeignSchema(ImportForeignSchemaStmt *stmt, bool not_null; char *default_val; int primary_key; - int rc = sqlite3_step(pragma_stmt); + int rc1 = sqlite3_step(pragma_stmt); - if (rc == SQLITE_DONE) + if (rc1 == SQLITE_DONE) break; - else if (rc != SQLITE_ROW) + else if (rc1 != SQLITE_ROW) { /* Not pass sql_stmt because it is finalized in PG_CATCH */ - sqlitefdw_report_error(ERROR, NULL, db, sqlite3_sql(pragma_stmt), rc); + sqlitefdw_report_error(ERROR, NULL, db, sqlite3_sql(pragma_stmt), rc1); } col_name = (char *) sqlite3_column_text(pragma_stmt, 1); type_name = (char *) sqlite3_column_text(pragma_stmt, 2); diff --git a/sqlite_query.c b/sqlite_query.c index 98521e6a..c42a3621 100644 --- a/sqlite_query.c +++ b/sqlite_query.c @@ -356,7 +356,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, case SQLITE3_TEXT: /* <-- second proper and recommended SQLite affinity of value for pgtyp */ { if (value_byte_size_blob_or_utf8) - valstr = sqlite_text_value_to_pg_db_encoding(stmt, stmt_colid); + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else elog(ERROR, "Void text disallowed for PostgreSQL uuid column"); break; diff --git a/test.sh b/test.sh index 581c88b9..c921421b 100755 --- a/test.sh +++ b/test.sh @@ -1,15 +1,15 @@ -rm -rf /tmp/sqlitefdw_test*.db -rm -rf /tmp/*.data -rm -rf /tmp/sqlitefdw_test*.db -cp -a sql/init_data/*.data /tmp/ +rm -rf /tmp/sqlitefdw_test*.db; +rm -rf /tmp/*.data; +rm -rf /tmp/sqlitefdw_test*.db; +cp -a sql/init_data/*.data /tmp/; -sqlite3 /tmp/sqlitefdw_test_post.db < sql/init_data/init_post.sql -sqlite3 /tmp/sqlitefdw_test_core.db < sql/init_data/init_core.sql -sqlite3 /tmp/sqlitefdw_test.db < sql/init_data/init.sql -sqlite3 /tmp/sqlitefdw_test_selectfunc.db < sql/init_data/init_selectfunc.sql +sqlite3 /tmp/sqlitefdw_test_post.db < sql/init_data/init_post.sql; +sqlite3 /tmp/sqlitefdw_test_core.db < sql/init_data/init_core.sql; +sqlite3 /tmp/sqlitefdw_test.db < sql/init_data/init.sql; +sqlite3 /tmp/sqlitefdw_test_selectfunc.db < sql/init_data/init_selectfunc.sql; -sed -i 's/REGRESS =.*/REGRESS = extra\/sqlite_fdw_post extra\/float4 extra\/float8 extra\/int4 extra\/int8 extra\/numeric extra\/join extra\/limit extra\/aggregates extra\/prepare extra\/select_having extra\/select extra\/insert extra\/update extra\/timestamp extra\/encodings sqlite_fdw type aggregate selectfunc /' Makefile +sed -i 's/REGRESS =.*/REGRESS = extra\/sqlite_fdw_post extra\/float4 extra\/float8 extra\/int4 extra\/int8 extra\/numeric extra\/join extra\/limit extra\/aggregates extra\/prepare extra\/select_having extra\/select extra\/insert extra\/update extra\/timestamp extra\/encodings extra\/bool extra\/uuid sqlite_fdw type aggregate selectfunc /' Makefile -make clean -make $1 -make check $1 | tee make_check.out +make clean; +make $1; +make check $1 | tee make_check.out; From a8e06645a86cec2b5ca95c5e7a3cf889ce7d594c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Thu, 9 Nov 2023 08:03:49 +0300 Subject: [PATCH 03/27] Add function about unwanted void text --- sqlite_query.c | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/sqlite_query.c b/sqlite_query.c index c42a3621..0ee8181d 100644 --- a/sqlite_query.c +++ b/sqlite_query.c @@ -75,7 +75,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL bool column"); + pg_column_void_text_error(att); break; } default: @@ -129,7 +129,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL smallint column"); + pg_column_void_text_error(att); break; } } @@ -161,7 +161,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, stmt_colid, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL int column"); + pg_column_void_text_error(att); break; } } @@ -193,7 +193,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL bigint column"); + pg_column_void_text_error(att); break; } } @@ -220,7 +220,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL float4 column"); + pg_column_void_text_error(att); break; } } @@ -247,7 +247,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL float8 column"); + pg_column_void_text_error(att); break; } } @@ -290,7 +290,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) valstr = sqlite_text_value_to_pg_db_encoding(stmt, stmt_colid); else - elog(ERROR, "Void text disallowed for PostgreSQL float4 column"); + pg_column_void_text_error(att); break; } } @@ -318,7 +318,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL numeric column"); + pg_column_void_text_error(att); break; } } @@ -358,7 +358,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, if (value_byte_size_blob_or_utf8) sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else - elog(ERROR, "Void text disallowed for PostgreSQL uuid column"); + pg_column_void_text_error(att); break; } default: @@ -676,6 +676,23 @@ static void sqlite_value_to_pg_error (Form_pg_attribute att, sqlite3_stmt * stmt } } +/* + * Human readable message about disallowed void text for the PostgreSQL columnn + */ +static void +pg_column_void_text_error (Form_pg_attribute att) +{ + Oid pgtyp = att->atttypid; + int32 pgtypmod = att->atttypmod; + NameData pgColND = att->attname; + const char *pg_dataTypeName = 0; + + pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(pgtyp, pgtypmod)); + ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), + errmsg("Void text disallowed for PostgreSQL \"%s\" column", pg_dataTypeName) + errhint("Column name \"%.*s\"", (int)sizeof(pgColND.data), pgColND.data))); +} + static char * sqlite_text_value_to_pg_db_encoding(sqlite3_stmt * stmt, int stmt_colid) { int pg_database_encoding = GetDatabaseEncoding(); /* very fast call, see PostgreSQL mbutils.c */ From 2848a962c8cc1f796fae777e12722432cfe84882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 9 Nov 2023 09:08:24 +0300 Subject: [PATCH 04/27] Fix code style and warnings --- sqlite_query.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/sqlite_query.c b/sqlite_query.c index 0ee8181d..3b984ccf 100644 --- a/sqlite_query.c +++ b/sqlite_query.c @@ -39,6 +39,8 @@ int sqlite_bind_blob_algo (int attnum, Datum value, sqlite3_stmt * stmt); static char * sqlite_text_value_to_pg_db_encoding(sqlite3_stmt * stmt, int stmt_colid); +static void + pg_column_void_text_error (Form_pg_attribute att); /* * convert_sqlite_to_pg: Convert Sqlite data into PostgreSQL's compatible data types @@ -356,6 +358,9 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, case SQLITE3_TEXT: /* <-- second proper and recommended SQLite affinity of value for pgtyp */ { if (value_byte_size_blob_or_utf8) + /* SQLite UUID normalization added C function always get blob + * form, of UUID, hence this case should cause error + */ sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); else pg_column_void_text_error(att); @@ -395,7 +400,8 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, * Common part of extracting and preparing PostgreSQL bytea data * for SQLite binding as blob */ -int sqlite_bind_blob_algo (int attnum, Datum value, sqlite3_stmt * stmt) +int +sqlite_bind_blob_algo (int attnum, Datum value, sqlite3_stmt * stmt) { int len; char *dat = NULL; @@ -613,6 +619,7 @@ sqlite_affinity_eqv_to_pgtype(Oid type) case NUMERICOID: return SQLITE_FLOAT; case BYTEAOID: + case UUIDOID: return SQLITE_BLOB; default: return SQLITE3_TEXT; @@ -623,7 +630,8 @@ sqlite_affinity_eqv_to_pgtype(Oid type) * Give equivalent string for SQLite data affinity by int from enum * SQLITE_INTEGER etc. */ -static const char* sqlite_datatype(int t) +static const char* +sqlite_datatype(int t) { static const char *azType[] = { "?", "integer", "real", "text", "blob", "null" }; switch (t) @@ -647,7 +655,8 @@ static const char* sqlite_datatype(int t) * Human readable message about disallowed combination of PostgreSQL columnn * data type and SQLite data value affinity */ -static void sqlite_value_to_pg_error (Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, int sqlite_value_affinity, int affinity_for_pg_column, int value_byte_size_blob_or_utf8) +static void +sqlite_value_to_pg_error (Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, int sqlite_value_affinity, int affinity_for_pg_column, int value_byte_size_blob_or_utf8) { Oid pgtyp = att->atttypid; int32 pgtypmod = att->atttypmod; @@ -689,11 +698,12 @@ pg_column_void_text_error (Form_pg_attribute att) pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(pgtyp, pgtypmod)); ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("Void text disallowed for PostgreSQL \"%s\" column", pg_dataTypeName) + errmsg("Void text disallowed for PostgreSQL \"%s\" column", pg_dataTypeName), errhint("Column name \"%.*s\"", (int)sizeof(pgColND.data), pgColND.data))); } -static char * sqlite_text_value_to_pg_db_encoding(sqlite3_stmt * stmt, int stmt_colid) +static char * +sqlite_text_value_to_pg_db_encoding(sqlite3_stmt * stmt, int stmt_colid) { int pg_database_encoding = GetDatabaseEncoding(); /* very fast call, see PostgreSQL mbutils.c */ char *utf8_text_value; From bd4296d185c8a5ef862f7e1bf3ba83326abb653d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 9 Nov 2023 11:48:29 +0300 Subject: [PATCH 05/27] Update license info --- License | 6 ++++-- README.md | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/License b/License index 89fdb39a..37bc8333 100644 --- a/License +++ b/License @@ -1,6 +1,8 @@ -SQLite Foreign Data Wrapper for PostgreSQL +SQLite Foreign Data Wrapper for PostgreSQL linensed under +The PostgreSQL Licence +(for the newest text see https://opensource.org/license/postgresql/) -Copyright (c) 2018, TOSHIBA CORPORATION +Copyright (c) 2018 - 2024, TOSHIBA CORPORATION Copyright (c) 2011 - 2016, EnterpriseDB Corporation Permission to use, copy, modify, and distribute this software and its diff --git a/README.md b/README.md index 055cf489..cfa3a40f 100644 --- a/README.md +++ b/README.md @@ -595,9 +595,10 @@ Useful links License ------- +This FDW linensed under PostgreSQL-like license. -Copyright (c) 2018, TOSHIBA CORPORATION -Copyright (c) 2011 - 2016, EnterpriseDB Corporation +Copyright © 2018 - 2024, TOSHIBA CORPORATION +Copyright © 2011 - 2016, EnterpriseDB Corporation Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. From 4a03c82551a442faf43045cf5d89dcb1d949a6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 9 Nov 2023 11:53:12 +0300 Subject: [PATCH 06/27] Fixme datatype support table --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cfa3a40f..15cc41d7 100644 --- a/README.md +++ b/README.md @@ -132,8 +132,8 @@ SQLite `NULL` affinity always can be transparent converted for a nullable column | PostgreSQL | SQLite
INT | SQLite
REAL | SQLite
BLOB | SQLite
TEXT | SQLite
TEXT but
empty|SQLite
nearest
affinity| |-------------:|:------------:|:------------:|:------------:|:------------:|:------------:|-------------:| -| bool | V | ? | T | - | ∅ | INT | -| bit(n) | V | ∅ | V | ? | ∅ | INT | +| bool | V | ∅ | T | V+ | ∅ | INT | +| bit(n) | V | ∅ | ∅ | ∅ | ∅ | INT | | bytea | b | b | ✔ | - | ? | BLOB | | date | V | V | T | V+ | `NULL` | ? | | float4 | V+ | ✔ | T | - | `NULL` | REAL | @@ -151,8 +151,6 @@ SQLite `NULL` affinity always can be transparent converted for a nullable column | uuid | ∅ | ∅ |V+
(only
16 bytes)| V+ | ∅ | TEXT, BLOB | | varchar | ? | ? | T | ✔ | V | TEXT | - - ### CREATE SERVER options `sqlite_fdw` accepts the following options via the `CREATE SERVER` command: From 2558505e7f02b163fa31ff13de9143b58d7234d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 9 Nov 2023 11:58:37 +0300 Subject: [PATCH 07/27] Add copyright list --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15cc41d7..f4db0d67 100644 --- a/README.md +++ b/README.md @@ -595,8 +595,8 @@ License ------- This FDW linensed under PostgreSQL-like license. -Copyright © 2018 - 2024, TOSHIBA CORPORATION -Copyright © 2011 - 2016, EnterpriseDB Corporation +* Copyright © 2018 - 2024, TOSHIBA CORPORATION +* Copyright © 2011 - 2016, EnterpriseDB Corporation Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. From 207fcce6a266d61ea1ca58ea1819c1aed790c541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 10 Nov 2023 13:29:08 +0300 Subject: [PATCH 08/27] Refactor and expand bool tests --- expected/12.15/extra/bool.out | 330 ++++++++++++++++++++-------------- expected/13.11/extra/bool.out | 330 ++++++++++++++++++++-------------- expected/14.8/extra/bool.out | 330 ++++++++++++++++++++-------------- expected/15.3/extra/bool.out | 330 ++++++++++++++++++++-------------- expected/16.0/extra/bool.out | 318 +++++++++++++++++++------------- sql/12.15/extra/bool.sql | 87 +++++---- sql/13.11/extra/bool.sql | 87 +++++---- sql/14.8/extra/bool.sql | 87 +++++---- sql/15.3/extra/bool.sql | 87 +++++---- sql/16.0/extra/bool.sql | 87 +++++---- sql/init_data/init.sql | 4 +- sql/init_data/init_core.sql | 7 + 12 files changed, 1257 insertions(+), 827 deletions(-) diff --git a/expected/12.15/extra/bool.out b/expected/12.15/extra/bool.out index 4fccf3bb..51efddf6 100644 --- a/expected/12.15/extra/bool.out +++ b/expected/12.15/extra/bool.out @@ -8,7 +8,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -16,197 +16,263 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +ERROR: invalid input syntax for type boolean: "x" +LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); + ^ +--Testcase 26: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +--Testcase 27: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +--Testcase 28: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: SELECT * FROM "type_BOOLEAN"; - i | b -----+------- - 1 | true - 2 | false - 3 | Yes - 4 | YeS - 5 | yes - 6 | no - 7 | No - 8 | nO - 9 | off - 10 | oFf - 11 | on - 12 | ON - 13 | t - 14 | T - 15 | Y - 16 | y - 17 | F - 18 | f - 19 | x - 20 | 0 - 21 | 1 - 22 | -(22 rows) + i | b +----+--- + 1 | t + 2 | f + 3 | t + 4 | f + 5 | t + 6 | f + 7 | t + 8 | t + 9 | t + 10 | f + 11 | f + 12 | f + 13 | f + 14 | f + 15 | t + 16 | t + 17 | t + 18 | t + 19 | t + 20 | t + 21 | f + 22 | f + 24 | f + 25 | t + 26 | +(25 rows) ---Testcase 26: +--Testcase 30: ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; ---Testcase 27: -EXPLAIN VERBOSE +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + QUERY PLAN +--------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" Output: i, b SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 28: -EXPLAIN VERBOSE +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN -------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Foreign Scan on public."type_BOOLEAN+" Output: i, b, t, l SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 - 22 | | null | -(21 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- - 22 | | null | + 26 | | null | (1 row) ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 -(20 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 +(24 rows) ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 21 | t | integer | 1 -(11 rows) + 1 | t | integer | 1 + 3 | t | integer | 1 + 5 | t | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 25 | t | integer | 1 +(13 rows) ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- - 2 | f | text | 5 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 -(9 rows) + 2 | f | integer | 1 + 4 | f | integer | 1 + 6 | f | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 +(11 rows) +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col + sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 4 other objects +NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to server sqlite2 diff --git a/expected/13.11/extra/bool.out b/expected/13.11/extra/bool.out index 4fccf3bb..51efddf6 100644 --- a/expected/13.11/extra/bool.out +++ b/expected/13.11/extra/bool.out @@ -8,7 +8,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -16,197 +16,263 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +ERROR: invalid input syntax for type boolean: "x" +LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); + ^ +--Testcase 26: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +--Testcase 27: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +--Testcase 28: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: SELECT * FROM "type_BOOLEAN"; - i | b -----+------- - 1 | true - 2 | false - 3 | Yes - 4 | YeS - 5 | yes - 6 | no - 7 | No - 8 | nO - 9 | off - 10 | oFf - 11 | on - 12 | ON - 13 | t - 14 | T - 15 | Y - 16 | y - 17 | F - 18 | f - 19 | x - 20 | 0 - 21 | 1 - 22 | -(22 rows) + i | b +----+--- + 1 | t + 2 | f + 3 | t + 4 | f + 5 | t + 6 | f + 7 | t + 8 | t + 9 | t + 10 | f + 11 | f + 12 | f + 13 | f + 14 | f + 15 | t + 16 | t + 17 | t + 18 | t + 19 | t + 20 | t + 21 | f + 22 | f + 24 | f + 25 | t + 26 | +(25 rows) ---Testcase 26: +--Testcase 30: ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; ---Testcase 27: -EXPLAIN VERBOSE +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + QUERY PLAN +--------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" Output: i, b SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 28: -EXPLAIN VERBOSE +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN -------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Foreign Scan on public."type_BOOLEAN+" Output: i, b, t, l SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 - 22 | | null | -(21 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- - 22 | | null | + 26 | | null | (1 row) ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 -(20 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 +(24 rows) ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 21 | t | integer | 1 -(11 rows) + 1 | t | integer | 1 + 3 | t | integer | 1 + 5 | t | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 25 | t | integer | 1 +(13 rows) ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- - 2 | f | text | 5 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 -(9 rows) + 2 | f | integer | 1 + 4 | f | integer | 1 + 6 | f | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 +(11 rows) +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col + sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 4 other objects +NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to server sqlite2 diff --git a/expected/14.8/extra/bool.out b/expected/14.8/extra/bool.out index 4fccf3bb..51efddf6 100644 --- a/expected/14.8/extra/bool.out +++ b/expected/14.8/extra/bool.out @@ -8,7 +8,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -16,197 +16,263 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +ERROR: invalid input syntax for type boolean: "x" +LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); + ^ +--Testcase 26: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +--Testcase 27: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +--Testcase 28: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: SELECT * FROM "type_BOOLEAN"; - i | b -----+------- - 1 | true - 2 | false - 3 | Yes - 4 | YeS - 5 | yes - 6 | no - 7 | No - 8 | nO - 9 | off - 10 | oFf - 11 | on - 12 | ON - 13 | t - 14 | T - 15 | Y - 16 | y - 17 | F - 18 | f - 19 | x - 20 | 0 - 21 | 1 - 22 | -(22 rows) + i | b +----+--- + 1 | t + 2 | f + 3 | t + 4 | f + 5 | t + 6 | f + 7 | t + 8 | t + 9 | t + 10 | f + 11 | f + 12 | f + 13 | f + 14 | f + 15 | t + 16 | t + 17 | t + 18 | t + 19 | t + 20 | t + 21 | f + 22 | f + 24 | f + 25 | t + 26 | +(25 rows) ---Testcase 26: +--Testcase 30: ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; ---Testcase 27: -EXPLAIN VERBOSE +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + QUERY PLAN +--------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" Output: i, b SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 28: -EXPLAIN VERBOSE +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN -------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Foreign Scan on public."type_BOOLEAN+" Output: i, b, t, l SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 - 22 | | null | -(21 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- - 22 | | null | + 26 | | null | (1 row) ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 -(20 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 +(24 rows) ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 21 | t | integer | 1 -(11 rows) + 1 | t | integer | 1 + 3 | t | integer | 1 + 5 | t | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 25 | t | integer | 1 +(13 rows) ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- - 2 | f | text | 5 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 -(9 rows) + 2 | f | integer | 1 + 4 | f | integer | 1 + 6 | f | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 +(11 rows) +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col + sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 4 other objects +NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to server sqlite2 diff --git a/expected/15.3/extra/bool.out b/expected/15.3/extra/bool.out index 4fccf3bb..51efddf6 100644 --- a/expected/15.3/extra/bool.out +++ b/expected/15.3/extra/bool.out @@ -8,7 +8,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -16,197 +16,263 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +ERROR: invalid input syntax for type boolean: "x" +LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); + ^ +--Testcase 26: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +--Testcase 27: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +--Testcase 28: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: SELECT * FROM "type_BOOLEAN"; - i | b -----+------- - 1 | true - 2 | false - 3 | Yes - 4 | YeS - 5 | yes - 6 | no - 7 | No - 8 | nO - 9 | off - 10 | oFf - 11 | on - 12 | ON - 13 | t - 14 | T - 15 | Y - 16 | y - 17 | F - 18 | f - 19 | x - 20 | 0 - 21 | 1 - 22 | -(22 rows) + i | b +----+--- + 1 | t + 2 | f + 3 | t + 4 | f + 5 | t + 6 | f + 7 | t + 8 | t + 9 | t + 10 | f + 11 | f + 12 | f + 13 | f + 14 | f + 15 | t + 16 | t + 17 | t + 18 | t + 19 | t + 20 | t + 21 | f + 22 | f + 24 | f + 25 | t + 26 | +(25 rows) ---Testcase 26: +--Testcase 30: ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; ---Testcase 27: -EXPLAIN VERBOSE +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + QUERY PLAN +--------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" Output: i, b SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 28: -EXPLAIN VERBOSE +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN -------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Foreign Scan on public."type_BOOLEAN+" Output: i, b, t, l SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 - 22 | | null | -(21 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- - 22 | | null | + 26 | | null | (1 row) ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 2 | f | text | 5 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 -(20 rows) + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 +(24 rows) ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- - 1 | t | text | 4 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 21 | t | integer | 1 -(11 rows) + 1 | t | integer | 1 + 3 | t | integer | 1 + 5 | t | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 25 | t | integer | 1 +(13 rows) ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- - 2 | f | text | 5 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 -(9 rows) + 2 | f | integer | 1 + 4 | f | integer | 1 + 6 | f | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 +(11 rows) +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col + sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 4 other objects +NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to server sqlite2 diff --git a/expected/16.0/extra/bool.out b/expected/16.0/extra/bool.out index 2fd40d41..51efddf6 100644 --- a/expected/16.0/extra/bool.out +++ b/expected/16.0/extra/bool.out @@ -14,201 +14,265 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; ---Testcase 05: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +ERROR: invalid input syntax for type boolean: "x" +LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); + ^ --Testcase 26: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +--Testcase 27: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +--Testcase 28: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: SELECT * FROM "type_BOOLEAN"; - i | b -----+----- - 1 | 1 - 2 | 0 - 3 | Yes - 4 | YeS - 5 | yes - 6 | no - 7 | No - 8 | nO - 9 | off - 10 | oFf - 11 | on - 12 | ON - 13 | t - 14 | T - 15 | Y - 16 | y - 17 | F - 18 | f - 19 | x - 20 | 0 - 21 | 1 - 22 | -(22 rows) + i | b +----+--- + 1 | t + 2 | f + 3 | t + 4 | f + 5 | t + 6 | f + 7 | t + 8 | t + 9 | t + 10 | f + 11 | f + 12 | f + 13 | f + 14 | f + 15 | t + 16 | t + 17 | t + 18 | t + 19 | t + 20 | t + 21 | f + 22 | f + 24 | f + 25 | t + 26 | +(25 rows) ---Testcase 27: +--Testcase 30: ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; ---Testcase 28: -EXPLAIN VERBOSE +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN" (cost=10.00..2824.00 rows=2824 width=5) + QUERY PLAN +--------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN" Output: i, b SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 29: -EXPLAIN VERBOSE +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN -------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN+" (cost=10.00..1300.00 rows=1300 width=39) + Foreign Scan on public."type_BOOLEAN+" Output: i, b, t, l SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 30: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' ---Testcase 31 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 32: + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 - 22 | | null | -(21 rows) + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) ---Testcase 33: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- - 22 | | null | + 26 | | null | (1 row) ---Testcase 34: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 - 21 | t | integer | 1 -(20 rows) + 3 | t | integer | 1 + 4 | f | integer | 1 + 5 | t | integer | 1 + 6 | f | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 +(24 rows) ---Testcase 35: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 - 3 | t | text | 3 - 4 | t | text | 3 - 5 | t | text | 3 - 11 | t | text | 2 - 12 | t | text | 2 - 13 | t | text | 1 - 14 | t | text | 1 - 15 | t | text | 1 - 16 | t | text | 1 - 21 | t | integer | 1 -(11 rows) + 3 | t | integer | 1 + 5 | t | integer | 1 + 7 | t | integer | 1 + 8 | t | integer | 1 + 9 | t | integer | 1 + 15 | t | integer | 1 + 16 | t | integer | 1 + 17 | t | integer | 1 + 18 | t | integer | 1 + 19 | t | integer | 1 + 20 | t | integer | 1 + 25 | t | integer | 1 +(13 rows) ---Testcase 36: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- 2 | f | integer | 1 - 6 | f | text | 2 - 7 | f | text | 2 - 8 | f | text | 2 - 9 | f | text | 3 - 10 | f | text | 3 - 17 | f | text | 1 - 18 | f | text | 1 - 20 | f | integer | 1 -(9 rows) + 4 | f | integer | 1 + 6 | f | integer | 1 + 10 | f | integer | 1 + 11 | f | integer | 1 + 12 | f | integer | 1 + 13 | f | integer | 1 + 14 | f | integer | 1 + 21 | f | integer | 1 + 22 | f | integer | 1 + 24 | f | integer | 1 +(11 rows) +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col + sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 4 other objects +NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to server sqlite2 diff --git a/sql/12.15/extra/bool.sql b/sql/12.15/extra/bool.sql index eced6df6..5552d902 100644 --- a/sql/12.15/extra/bool.sql +++ b/sql/12.15/extra/bool.sql @@ -10,7 +10,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -18,69 +18,88 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 26: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 27: -EXPLAIN VERBOSE -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 28: -EXPLAIN VERBOSE +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: +SELECT * FROM "type_BOOLEAN"; +--Testcase 30: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM "type_BOOLEAN"; +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/bool.sql b/sql/13.11/extra/bool.sql index eced6df6..5552d902 100644 --- a/sql/13.11/extra/bool.sql +++ b/sql/13.11/extra/bool.sql @@ -10,7 +10,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -18,69 +18,88 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 26: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 27: -EXPLAIN VERBOSE -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 28: -EXPLAIN VERBOSE +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: +SELECT * FROM "type_BOOLEAN"; +--Testcase 30: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM "type_BOOLEAN"; +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/extra/bool.sql b/sql/14.8/extra/bool.sql index eced6df6..5552d902 100644 --- a/sql/14.8/extra/bool.sql +++ b/sql/14.8/extra/bool.sql @@ -10,7 +10,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -18,69 +18,88 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 26: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 27: -EXPLAIN VERBOSE -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 28: -EXPLAIN VERBOSE +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: +SELECT * FROM "type_BOOLEAN"; +--Testcase 30: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM "type_BOOLEAN"; +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/extra/bool.sql b/sql/15.3/extra/bool.sql index eced6df6..5552d902 100644 --- a/sql/15.3/extra/bool.sql +++ b/sql/15.3/extra/bool.sql @@ -10,7 +10,7 @@ OPTIONS (database '/tmp/sqlitefdw_test.db'); CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: -CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b text) SERVER sqlite_svr; +CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; --Testcase 02: INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: @@ -18,69 +18,88 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 26: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 27: -EXPLAIN VERBOSE -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 28: -EXPLAIN VERBOSE +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 29: +SELECT * FROM "type_BOOLEAN"; +--Testcase 30: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM "type_BOOLEAN"; +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 29: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 30 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 31: +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; ---Testcase 32: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; ---Testcase 33: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; ---Testcase 34: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; ---Testcase 35: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/bool.sql b/sql/16.0/extra/bool.sql index 056cd9c9..5552d902 100644 --- a/sql/16.0/extra/bool.sql +++ b/sql/16.0/extra/bool.sql @@ -16,73 +16,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (1, TRUE); --Testcase 03: INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; ---Testcase 05: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); +--Testcase 05: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 06: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (3, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 07: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (4, 'YeS'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 08: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (5, 'yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (6, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 26: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 27: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 28: -EXPLAIN VERBOSE -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); --Testcase 29: -EXPLAIN VERBOSE +SELECT * FROM "type_BOOLEAN"; +--Testcase 30: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 31: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM "type_BOOLEAN"; +--Testcase 32: +EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 30: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 33: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 31 -DELETE FROM "type_BOOLEAN" WHERE i = 19; ---Testcase 32: +--Testcase 34 +DELETE FROM "type_BOOLEAN" WHERE i = 23; +--Testcase 35: SELECT * FROM "type_BOOLEAN+"; ---Testcase 33: +--Testcase 36: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; ---Testcase 34: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; ---Testcase 35: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b; ---Testcase 36: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; +--Testcase 40: +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 41: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (FALSE); +--Testcase 43: ERR - primary key +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 44: +DELETE FROM "type_BOOLEANpk"; + --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/init_data/init.sql b/sql/init_data/init.sql index 9b25eb3f..669ac6f6 100644 --- a/sql/init_data/init.sql +++ b/sql/init_data/init.sql @@ -22,6 +22,7 @@ create table grem1_2 (a int primary key, b int generated always as (a * 2) store CREATE TABLE case_exp(c1 int primary key, c3 text, c6 varchar(10)); CREATE TABLE "type_STRING" (col text primary key); +CREATE TABLE "type_BOOLEANpk" (col boolean primary key); CREATE TABLE "type_BOOLEAN" (i int primary key, b boolean); CREATE VIEW "type_BOOLEAN+" AS SELECT *, typeof("b") t, length("b") l FROM "type_BOOLEAN"; CREATE TABLE "type_BYTE" (col char(1) primary key); @@ -34,6 +35,7 @@ CREATE TABLE "type_TIMESTAMP" (col timestamp primary key, b timestamp);--, c dat CREATE TABLE "type_BLOB" (col blob primary key); CREATE TABLE "type_DATE" (col date primary key); CREATE TABLE "type_TIME" (col time primary key); +CREATE TABLE "type_UUIDpk" (col uuid primary key); CREATE TABLE "type_UUID" (i int, u uuid); CREATE VIEW "type_UUID+" AS SELECT *, typeof("u") t, length("u") l FROM "type_UUID"; CREATE TABLE BitT (p integer primary key, a BIT(3), b BIT VARYING(5)); @@ -45,7 +47,7 @@ INSERT INTO alltypetest VALUES (583647, 127, 12767, 388607, -- a table that is missing some fields CREATE TABLE shorty ( - id integer primary key, + id integer primary key, c character(10) ); diff --git a/sql/init_data/init_core.sql b/sql/init_data/init_core.sql index 8f608cd4..6bb27783 100644 --- a/sql/init_data/init_core.sql +++ b/sql/init_data/init_core.sql @@ -4,6 +4,8 @@ DROP TABLE IF EXISTS FLOAT4_TBL; DROP TABLE IF EXISTS FLOAT4_TMP; DROP TABLE IF EXISTS FLOAT8_TBL; DROP TABLE IF EXISTS FLOAT8_TMP; +DROP TABLE IF EXISTS "type_FLOAT_INF"; +DROP VIEW IF EXISTS "type_FLOAT_INF+"; DROP TABLE IF EXISTS INT4_TBL; DROP TABLE IF EXISTS INT4_TMP; DROP TABLE IF EXISTS INT8_TBL; @@ -425,3 +427,8 @@ CREATE TABLE update_test ( ); create table upsert_test (a int primary key, b text); + +CREATE TABLE "type_FLOAT_INF" (i int primary key, f float); +CREATE VIEW "type_FLOAT_INF+" AS SELECT *, typeof("f") t, length("f") l FROM "type_FLOAT_INF"; +-- In PostgreSQL some of this valus causes error but is infinity representation in SQLite +INSERT INTO "type_FLOAT_INF" VALUES (1, -1e999),(2, 1e999),(3, -9e999),(4, 9e999),(5,-1e308),(6, 0),(7, 1e308); From a2a314832706895858532e50e2f792c306f751a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 10 Nov 2023 14:10:08 +0300 Subject: [PATCH 09/27] Fix bool test dependences --- expected/12.15/type.out | 10 ++++++++-- expected/13.11/type.out | 10 ++++++++-- expected/14.8/type.out | 10 ++++++++-- expected/15.3/type.out | 10 ++++++++-- expected/16.0/type.out | 10 ++++++++-- 5 files changed, 40 insertions(+), 10 deletions(-) diff --git a/expected/12.15/type.out b/expected/12.15/type.out index 140a2012..19302662 100644 --- a/expected/12.15/type.out +++ b/expected/12.15/type.out @@ -306,6 +306,10 @@ ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; SELECT * FROM "type_BOOLEAN"; -- OK b --- + t + f + t + f t f t @@ -327,7 +331,7 @@ SELECT * FROM "type_BOOLEAN"; -- OK f t -(21 rows) +(25 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -508,7 +512,7 @@ SELECT * FROM "type_DOUBLE"; -- OK ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 45 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -523,6 +527,7 @@ drop cascades to foreign table grem1_1 drop cascades to foreign table grem1_2 drop cascades to foreign table case_exp drop cascades to foreign table "type_STRING" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to foreign table "type_BYTE" drop cascades to foreign table "type_SINT" drop cascades to foreign table "type_BINT" @@ -533,6 +538,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype diff --git a/expected/13.11/type.out b/expected/13.11/type.out index 140a2012..19302662 100644 --- a/expected/13.11/type.out +++ b/expected/13.11/type.out @@ -306,6 +306,10 @@ ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; SELECT * FROM "type_BOOLEAN"; -- OK b --- + t + f + t + f t f t @@ -327,7 +331,7 @@ SELECT * FROM "type_BOOLEAN"; -- OK f t -(21 rows) +(25 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -508,7 +512,7 @@ SELECT * FROM "type_DOUBLE"; -- OK ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 45 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -523,6 +527,7 @@ drop cascades to foreign table grem1_1 drop cascades to foreign table grem1_2 drop cascades to foreign table case_exp drop cascades to foreign table "type_STRING" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to foreign table "type_BYTE" drop cascades to foreign table "type_SINT" drop cascades to foreign table "type_BINT" @@ -533,6 +538,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype diff --git a/expected/14.8/type.out b/expected/14.8/type.out index 140a2012..19302662 100644 --- a/expected/14.8/type.out +++ b/expected/14.8/type.out @@ -306,6 +306,10 @@ ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; SELECT * FROM "type_BOOLEAN"; -- OK b --- + t + f + t + f t f t @@ -327,7 +331,7 @@ SELECT * FROM "type_BOOLEAN"; -- OK f t -(21 rows) +(25 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -508,7 +512,7 @@ SELECT * FROM "type_DOUBLE"; -- OK ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 45 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -523,6 +527,7 @@ drop cascades to foreign table grem1_1 drop cascades to foreign table grem1_2 drop cascades to foreign table case_exp drop cascades to foreign table "type_STRING" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to foreign table "type_BYTE" drop cascades to foreign table "type_SINT" drop cascades to foreign table "type_BINT" @@ -533,6 +538,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype diff --git a/expected/15.3/type.out b/expected/15.3/type.out index 140a2012..19302662 100644 --- a/expected/15.3/type.out +++ b/expected/15.3/type.out @@ -306,6 +306,10 @@ ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; SELECT * FROM "type_BOOLEAN"; -- OK b --- + t + f + t + f t f t @@ -327,7 +331,7 @@ SELECT * FROM "type_BOOLEAN"; -- OK f t -(21 rows) +(25 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -508,7 +512,7 @@ SELECT * FROM "type_DOUBLE"; -- OK ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 45 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -523,6 +527,7 @@ drop cascades to foreign table grem1_1 drop cascades to foreign table grem1_2 drop cascades to foreign table case_exp drop cascades to foreign table "type_STRING" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to foreign table "type_BYTE" drop cascades to foreign table "type_SINT" drop cascades to foreign table "type_BINT" @@ -533,6 +538,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype diff --git a/expected/16.0/type.out b/expected/16.0/type.out index 140a2012..19302662 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -306,6 +306,10 @@ ALTER FOREIGN TABLE "type_BOOLEAN" DROP COLUMN i; SELECT * FROM "type_BOOLEAN"; -- OK b --- + t + f + t + f t f t @@ -327,7 +331,7 @@ SELECT * FROM "type_BOOLEAN"; -- OK f t -(21 rows) +(25 rows) -- define INTEGER as TEXT column --Testcase 67: @@ -508,7 +512,7 @@ SELECT * FROM "type_DOUBLE"; -- OK ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 43 other objects +NOTICE: drop cascades to 45 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -523,6 +527,7 @@ drop cascades to foreign table grem1_1 drop cascades to foreign table grem1_2 drop cascades to foreign table case_exp drop cascades to foreign table "type_STRING" +drop cascades to foreign table "type_BOOLEANpk" drop cascades to foreign table "type_BYTE" drop cascades to foreign table "type_SINT" drop cascades to foreign table "type_BINT" @@ -533,6 +538,7 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype From 63d4907bf5172df44eab8f89c231f8d43126f5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 16 Nov 2023 14:49:08 +0300 Subject: [PATCH 10/27] Fix tests after merging with master --- expected/12.15/type.out | 6 ++---- expected/13.11/type.out | 2 +- expected/14.8/type.out | 2 +- expected/15.3/type.out | 2 +- expected/16.0/type.out | 5 ++--- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/expected/12.15/type.out b/expected/12.15/type.out index 5575ee4f..2000de47 100644 --- a/expected/12.15/type.out +++ b/expected/12.15/type.out @@ -510,7 +510,6 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; - --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: @@ -1267,7 +1266,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 48 other objects +NOTICE: drop cascades to 49 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1295,7 +1294,6 @@ drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1317,4 +1315,4 @@ drop cascades to foreign table "type_BIT" drop cascades to foreign table "type_BIT+" drop cascades to foreign table "type_VARBIT" drop cascades to foreign table "type_VARBIT+" -drop cascades to server sqlite2 \ No newline at end of file +drop cascades to server sqlite2 diff --git a/expected/13.11/type.out b/expected/13.11/type.out index 46582341..710e1921 100644 --- a/expected/13.11/type.out +++ b/expected/13.11/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 47 other objects +NOTICE: drop cascades to 49 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee diff --git a/expected/14.8/type.out b/expected/14.8/type.out index 46582341..710e1921 100644 --- a/expected/14.8/type.out +++ b/expected/14.8/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 47 other objects +NOTICE: drop cascades to 49 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee diff --git a/expected/15.3/type.out b/expected/15.3/type.out index 46582341..710e1921 100644 --- a/expected/15.3/type.out +++ b/expected/15.3/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 47 other objects +NOTICE: drop cascades to 49 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee diff --git a/expected/16.0/type.out b/expected/16.0/type.out index f3e99866..710e1921 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -510,7 +510,6 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; - --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: @@ -1309,7 +1308,8 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 48 other objects +NOTICE: drop cascades to 49 other objects +DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee drop cascades to foreign table empdata @@ -1336,7 +1336,6 @@ drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest From 2417c4b9cdb7b6870cd7705e20364c6c7b55e88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:32:43 +0300 Subject: [PATCH 11/27] Update documentation about mixed affinity --- README.md | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 09b86031..5247a770 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,14 @@ Features - Support discard cached connections to foreign servers by using function `sqlite_fdw_disconnect()`, `sqlite_fdw_disconnect_all()`. - Support Bulk `INSERT` by using `batch_size` option - Support `INSERT`/`UPDATE` with generated column -- Support `ON CONFLICT DO NOTHING`. +- Support `ON CONFLICT DO NOTHING` +- Support mixed SQLite [data affinity](https://www.sqlite.org/datatype3.html) input and filtering (`SELECT`/`WHERE` usage) for such dataypes as + - `timestamp`: `text` and `int`, + - `uuid`: `text`(32..39) and `blob`(16), + - `bool`: `text`(1..5) and `int`. +- Support mixed SQLite [data affinity](https://www.sqlite.org/datatype3.html) output (`INSERT`/`UPDATE`) for such dataypes as + - `timestamp`: `text`(default) or `int`, + - `uuid`: `text`(36) or `blob`(16)(default). ### Pushdowning - `WHERE` clauses are pushdowned @@ -58,10 +65,11 @@ Features - SQLite evaluates division by zero as `NULL`. It is different from PostgreSQL, which will display `Division by zero` error. - The data type of column of foreign table should match with data type of column in SQLite to avoid wrong result. For example, if the column of SQLite is `float` (which will be stored as `float8`), the column of foreign table should be `float8`, too. If the column of foreign table is `float4`, it may cause wrong result when `SELECT`. - For `key` option, user needs to specify the primary key column of SQLite table corresponding with the `key` option. If not, wrong result may occur when `UPDATE` or `DELETE`. -- When `Sum` of data in table is out of range, `sqlite_fdw` will display `Infinity` value. It is different from PostgreSQL FDW, which will display `ERROR: value out of range: overflow` error. +- When `Sum` of data in table is out of range, `sqlite_fdw` will display `Infinity[`](https://www.postgresql.org/docs/current/datatype-boolean.html) value. It is different from PostgreSQL FDW, which will display `ERROR: value out of range: overflow` error. - For `numeric` data type, `sqlite_fdw` use `sqlite3_column_double` to get value, while SQLite shell uses `sqlite3_column_text` to get value. Those 2 APIs may return different numeric value. Therefore, for `numeric` data type, the value returned from `sqlite_fdw` may different from the value returned from SQLite shell. - `sqlite_fdw` can return implementation-dependent order for column if the column is not specified in `ORDER BY` clause. - When the column type is `varchar array`, if the string is shorter than the declared length, values of type character will be space-padded; values of type `character varying` will simply store the shorter string. +- [String literals for `boolean`](https://www.postgresql.org/docs/current/datatype-boolean.html) (`t`, `f`, `y`, `n`, `yes`, `no`, `on`, `off` etc. case insensetive) can be readed and filtred but cannot writed, because SQLite documentation recommends only `int` affinity values (`0` or `1`) for boolean data and usually text boolean data belongs to legacy datasets. Also see [Limitations](#limitations) @@ -134,12 +142,12 @@ SQLite `NULL` affinity always can be transparent converted for a nullable column |-------------:|:------------:|:------------:|:------------:|:------------:|:------------:|-------------:| | bool | V | ∅ | T | V+ | ∅ | INT | | bit(n) | V n<=64 | ∅ | ∅ | ∅ | ∅ | INT | -| bytea | b | b | ✔ | - | ? | BLOB | +| bytea | ∅ | ∅ | ✔ | - | ? | BLOB | | date | V | V | T | V+ | `NULL` | ? | | float4 | V+ | ✔ | T | - | `NULL` | REAL | | float8 | V+ | ✔ | T | - | `NULL` | REAL | -| int2 | ✔ | ? | T | - | `NULL` | INT | -| int4 | ✔ | ? | T | - | `NULL` | INT | +| int2 | V+ | ? | T | - | `NULL` | INT | +| int4 | V+ | ? | T | - | `NULL` | INT | | int8 | ✔ | ? | T | - | `NULL` | INT | | json | ? | ? | T | V+ | ? | TEXT | | name | ? | ? | T | V | `NULL` | TEXT | @@ -305,7 +313,7 @@ Following SQL isn't correct for SQLite: `Error: duplicate column name: a`, but i ); ``` Following SQLs is correct for both SQLite and PostgreSQL because there is no column -names with ASCII base latin letters *only*. +with names composed from ASCII base latin letters *only*. ```sql CREATE TABLE T_кир ( @@ -331,6 +339,19 @@ For SQLite there is no difference between SELECT * FROM "T"; -- №4 ``` For PostgreSQL the query with comment `№4` is independend query to table `T`, not to table `t` as other queries. +Please note this table name composed from ASCII base latin letters *only*. This is not applicable for other +alphabet systems or mixed names. This is because `toLower` operation in PostgreSQL is Unicode opration but +ASCII only operation in SQLite, hence other characters will not be changed. + +```sql + SELECT * FROM т; -- №5 + SELECT * FROM Т; -- №6 + SELECT * FROM "т"; -- №7 + SELECT * FROM "Т"; -- №8 +``` +In this case for PostgreSQL the query with comment `№8` is independend query to table `Т`, not to table `т` +as other queries. But for SQLite the queries with comments `№6` and `№8` belongs to table `Т`, and the queries with +comments `№5` and `№7` belongs to table `т`. If there is From f7172ebaf3f8e8000ab08c6c95366885b9bf79b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:34:30 +0300 Subject: [PATCH 12/27] Fix typo error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5247a770..ae8d7653 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Features - SQLite evaluates division by zero as `NULL`. It is different from PostgreSQL, which will display `Division by zero` error. - The data type of column of foreign table should match with data type of column in SQLite to avoid wrong result. For example, if the column of SQLite is `float` (which will be stored as `float8`), the column of foreign table should be `float8`, too. If the column of foreign table is `float4`, it may cause wrong result when `SELECT`. - For `key` option, user needs to specify the primary key column of SQLite table corresponding with the `key` option. If not, wrong result may occur when `UPDATE` or `DELETE`. -- When `Sum` of data in table is out of range, `sqlite_fdw` will display `Infinity[`](https://www.postgresql.org/docs/current/datatype-boolean.html) value. It is different from PostgreSQL FDW, which will display `ERROR: value out of range: overflow` error. +- When `Sum` of data in table is out of range, `sqlite_fdw` will display `Infinity` value. It is different from PostgreSQL FDW, which will display `ERROR: value out of range: overflow` error. - For `numeric` data type, `sqlite_fdw` use `sqlite3_column_double` to get value, while SQLite shell uses `sqlite3_column_text` to get value. Those 2 APIs may return different numeric value. Therefore, for `numeric` data type, the value returned from `sqlite_fdw` may different from the value returned from SQLite shell. - `sqlite_fdw` can return implementation-dependent order for column if the column is not specified in `ORDER BY` clause. - When the column type is `varchar array`, if the string is shorter than the declared length, values of type character will be space-padded; values of type `character varying` will simply store the shorter string. From f002985fc66e3c9f6a9135540a2a59212f0f3071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Tue, 21 Nov 2023 20:59:57 +0300 Subject: [PATCH 13/27] Fix tests: add type change --- expected/12.15/extra/bool.out | 293 +++++++++++++++------------------- expected/13.11/extra/bool.out | 293 +++++++++++++++------------------- expected/14.8/extra/bool.out | 293 +++++++++++++++------------------- expected/15.3/extra/bool.out | 293 +++++++++++++++------------------- expected/16.0/extra/bool.out | 293 +++++++++++++++------------------- sql/12.15/extra/bool.sql | 89 ++++++----- sql/13.11/extra/bool.sql | 89 ++++++----- sql/14.8/extra/bool.sql | 89 ++++++----- sql/15.3/extra/bool.sql | 89 ++++++----- sql/16.0/extra/bool.sql | 89 ++++++----- 10 files changed, 890 insertions(+), 1020 deletions(-) diff --git a/expected/12.15/extra/bool.out b/expected/12.15/extra/bool.out index 51efddf6..765ac4f9 100644 --- a/expected/12.15/extra/bool.out +++ b/expected/12.15/extra/bool.out @@ -1,11 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; @@ -16,90 +16,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); -ERROR: invalid input syntax for type boolean: "x" -LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); - ^ +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 30: SELECT * FROM "type_BOOLEAN"; - i | b -----+--- - 1 | t - 2 | f - 3 | t - 4 | f - 5 | t - 6 | f - 7 | t - 8 | t - 9 | t - 10 | f - 11 | f - 12 | f - 13 | f - 14 | f - 15 | t - 16 | t + i | b +----+------- + 1 | 1 + 2 | 0 + 3 | true + 4 | false + 5 | true + 6 | false + 7 | Yes + 8 | YeS + 9 | yes + 10 | no + 11 | No + 12 | nO + 13 | off + 14 | oFf + 15 | on + 16 | ON 17 | t - 18 | t - 19 | t - 20 | t - 21 | f + 18 | T + 19 | Y + 20 | y + 21 | F 22 | f - 24 | f - 25 | t + 23 | x + 24 | 0 + 25 | 1 26 | -(25 rows) +(26 rows) ---Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; QUERY PLAN @@ -109,7 +109,7 @@ SELECT * FROM "type_BOOLEAN"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN @@ -119,156 +119,129 @@ SELECT * FROM "type_BOOLEAN+"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; - i | b | t | l -----+---+---------+--- - 1 | t | integer | 1 - 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 - 24 | f | integer | 1 - 25 | t | integer | 1 - 26 | | null | -(25 rows) - ---Testcase 34 +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: +--Testcase 36: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 26 | | null | (25 rows) ---Testcase 36: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- 26 | | null | (1 row) ---Testcase 37: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 (24 rows) ---Testcase 38: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 - 3 | t | integer | 1 - 5 | t | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 + 3 | t | text | 4 + 5 | t | text | 4 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 25 | t | integer | 1 (13 rows) ---Testcase 39: +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- 2 | f | integer | 1 - 4 | f | integer | 1 - 6 | f | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 4 | f | text | 5 + 6 | f | text | 5 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 (11 rows) ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr diff --git a/expected/13.11/extra/bool.out b/expected/13.11/extra/bool.out index 51efddf6..765ac4f9 100644 --- a/expected/13.11/extra/bool.out +++ b/expected/13.11/extra/bool.out @@ -1,11 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; @@ -16,90 +16,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); -ERROR: invalid input syntax for type boolean: "x" -LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); - ^ +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 30: SELECT * FROM "type_BOOLEAN"; - i | b -----+--- - 1 | t - 2 | f - 3 | t - 4 | f - 5 | t - 6 | f - 7 | t - 8 | t - 9 | t - 10 | f - 11 | f - 12 | f - 13 | f - 14 | f - 15 | t - 16 | t + i | b +----+------- + 1 | 1 + 2 | 0 + 3 | true + 4 | false + 5 | true + 6 | false + 7 | Yes + 8 | YeS + 9 | yes + 10 | no + 11 | No + 12 | nO + 13 | off + 14 | oFf + 15 | on + 16 | ON 17 | t - 18 | t - 19 | t - 20 | t - 21 | f + 18 | T + 19 | Y + 20 | y + 21 | F 22 | f - 24 | f - 25 | t + 23 | x + 24 | 0 + 25 | 1 26 | -(25 rows) +(26 rows) ---Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; QUERY PLAN @@ -109,7 +109,7 @@ SELECT * FROM "type_BOOLEAN"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN @@ -119,156 +119,129 @@ SELECT * FROM "type_BOOLEAN+"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; - i | b | t | l -----+---+---------+--- - 1 | t | integer | 1 - 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 - 24 | f | integer | 1 - 25 | t | integer | 1 - 26 | | null | -(25 rows) - ---Testcase 34 +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: +--Testcase 36: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 26 | | null | (25 rows) ---Testcase 36: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- 26 | | null | (1 row) ---Testcase 37: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 (24 rows) ---Testcase 38: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 - 3 | t | integer | 1 - 5 | t | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 + 3 | t | text | 4 + 5 | t | text | 4 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 25 | t | integer | 1 (13 rows) ---Testcase 39: +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- 2 | f | integer | 1 - 4 | f | integer | 1 - 6 | f | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 4 | f | text | 5 + 6 | f | text | 5 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 (11 rows) ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr diff --git a/expected/14.8/extra/bool.out b/expected/14.8/extra/bool.out index 51efddf6..765ac4f9 100644 --- a/expected/14.8/extra/bool.out +++ b/expected/14.8/extra/bool.out @@ -1,11 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; @@ -16,90 +16,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); -ERROR: invalid input syntax for type boolean: "x" -LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); - ^ +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 30: SELECT * FROM "type_BOOLEAN"; - i | b -----+--- - 1 | t - 2 | f - 3 | t - 4 | f - 5 | t - 6 | f - 7 | t - 8 | t - 9 | t - 10 | f - 11 | f - 12 | f - 13 | f - 14 | f - 15 | t - 16 | t + i | b +----+------- + 1 | 1 + 2 | 0 + 3 | true + 4 | false + 5 | true + 6 | false + 7 | Yes + 8 | YeS + 9 | yes + 10 | no + 11 | No + 12 | nO + 13 | off + 14 | oFf + 15 | on + 16 | ON 17 | t - 18 | t - 19 | t - 20 | t - 21 | f + 18 | T + 19 | Y + 20 | y + 21 | F 22 | f - 24 | f - 25 | t + 23 | x + 24 | 0 + 25 | 1 26 | -(25 rows) +(26 rows) ---Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; QUERY PLAN @@ -109,7 +109,7 @@ SELECT * FROM "type_BOOLEAN"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN @@ -119,156 +119,129 @@ SELECT * FROM "type_BOOLEAN+"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; - i | b | t | l -----+---+---------+--- - 1 | t | integer | 1 - 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 - 24 | f | integer | 1 - 25 | t | integer | 1 - 26 | | null | -(25 rows) - ---Testcase 34 +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: +--Testcase 36: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 26 | | null | (25 rows) ---Testcase 36: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- 26 | | null | (1 row) ---Testcase 37: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 (24 rows) ---Testcase 38: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 - 3 | t | integer | 1 - 5 | t | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 + 3 | t | text | 4 + 5 | t | text | 4 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 25 | t | integer | 1 (13 rows) ---Testcase 39: +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- 2 | f | integer | 1 - 4 | f | integer | 1 - 6 | f | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 4 | f | text | 5 + 6 | f | text | 5 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 (11 rows) ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr diff --git a/expected/15.3/extra/bool.out b/expected/15.3/extra/bool.out index 51efddf6..765ac4f9 100644 --- a/expected/15.3/extra/bool.out +++ b/expected/15.3/extra/bool.out @@ -1,11 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; @@ -16,90 +16,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); -ERROR: invalid input syntax for type boolean: "x" -LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); - ^ +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 30: SELECT * FROM "type_BOOLEAN"; - i | b -----+--- - 1 | t - 2 | f - 3 | t - 4 | f - 5 | t - 6 | f - 7 | t - 8 | t - 9 | t - 10 | f - 11 | f - 12 | f - 13 | f - 14 | f - 15 | t - 16 | t + i | b +----+------- + 1 | 1 + 2 | 0 + 3 | true + 4 | false + 5 | true + 6 | false + 7 | Yes + 8 | YeS + 9 | yes + 10 | no + 11 | No + 12 | nO + 13 | off + 14 | oFf + 15 | on + 16 | ON 17 | t - 18 | t - 19 | t - 20 | t - 21 | f + 18 | T + 19 | Y + 20 | y + 21 | F 22 | f - 24 | f - 25 | t + 23 | x + 24 | 0 + 25 | 1 26 | -(25 rows) +(26 rows) ---Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; QUERY PLAN @@ -109,7 +109,7 @@ SELECT * FROM "type_BOOLEAN"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN @@ -119,156 +119,129 @@ SELECT * FROM "type_BOOLEAN+"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; - i | b | t | l -----+---+---------+--- - 1 | t | integer | 1 - 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 - 24 | f | integer | 1 - 25 | t | integer | 1 - 26 | | null | -(25 rows) - ---Testcase 34 +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: +--Testcase 36: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 26 | | null | (25 rows) ---Testcase 36: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- 26 | | null | (1 row) ---Testcase 37: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 (24 rows) ---Testcase 38: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 - 3 | t | integer | 1 - 5 | t | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 + 3 | t | text | 4 + 5 | t | text | 4 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 25 | t | integer | 1 (13 rows) ---Testcase 39: +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- 2 | f | integer | 1 - 4 | f | integer | 1 - 6 | f | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 4 | f | text | 5 + 6 | f | text | 5 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 (11 rows) ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr diff --git a/expected/16.0/extra/bool.out b/expected/16.0/extra/bool.out index 51efddf6..765ac4f9 100644 --- a/expected/16.0/extra/bool.out +++ b/expected/16.0/extra/bool.out @@ -1,11 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: CREATE FOREIGN TABLE "type_BOOLEAN" (i int OPTIONS (key 'true'), b bool) SERVER sqlite_svr; @@ -16,90 +16,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); -ERROR: invalid input syntax for type boolean: "x" -LINE 1: INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); - ^ +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +--Testcase 30: SELECT * FROM "type_BOOLEAN"; - i | b -----+--- - 1 | t - 2 | f - 3 | t - 4 | f - 5 | t - 6 | f - 7 | t - 8 | t - 9 | t - 10 | f - 11 | f - 12 | f - 13 | f - 14 | f - 15 | t - 16 | t + i | b +----+------- + 1 | 1 + 2 | 0 + 3 | true + 4 | false + 5 | true + 6 | false + 7 | Yes + 8 | YeS + 9 | yes + 10 | no + 11 | No + 12 | nO + 13 | off + 14 | oFf + 15 | on + 16 | ON 17 | t - 18 | t - 19 | t - 20 | t - 21 | f + 18 | T + 19 | Y + 20 | y + 21 | F 22 | f - 24 | f - 25 | t + 23 | x + 24 | 0 + 25 | 1 26 | -(25 rows) +(26 rows) ---Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; QUERY PLAN @@ -109,7 +109,7 @@ SELECT * FROM "type_BOOLEAN"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`) FROM main."type_BOOLEAN" (3 rows) ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; QUERY PLAN @@ -119,156 +119,129 @@ SELECT * FROM "type_BOOLEAN+"; SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" (3 rows) ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; - i | b | t | l -----+---+---------+--- - 1 | t | integer | 1 - 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 - 24 | f | integer | 1 - 25 | t | integer | 1 - 26 | | null | -(25 rows) - ---Testcase 34 +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: +--Testcase 36: SELECT * FROM "type_BOOLEAN+"; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 26 | | null | (25 rows) ---Testcase 36: +--Testcase 37: SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; i | b | t | l ----+---+------+--- 26 | | null | (1 row) ---Testcase 37: +--Testcase 38: SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 2 | f | integer | 1 - 3 | t | integer | 1 - 4 | f | integer | 1 - 5 | t | integer | 1 - 6 | f | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 25 | t | integer | 1 (24 rows) ---Testcase 38: +--Testcase 39: SELECT * FROM "type_BOOLEAN+" WHERE b; i | b | t | l ----+---+---------+--- 1 | t | integer | 1 - 3 | t | integer | 1 - 5 | t | integer | 1 - 7 | t | integer | 1 - 8 | t | integer | 1 - 9 | t | integer | 1 - 15 | t | integer | 1 - 16 | t | integer | 1 - 17 | t | integer | 1 - 18 | t | integer | 1 - 19 | t | integer | 1 - 20 | t | integer | 1 + 3 | t | text | 4 + 5 | t | text | 4 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 25 | t | integer | 1 (13 rows) ---Testcase 39: +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; i | b | t | l ----+---+---------+--- 2 | f | integer | 1 - 4 | f | integer | 1 - 6 | f | integer | 1 - 10 | f | integer | 1 - 11 | f | integer | 1 - 12 | f | integer | 1 - 13 | f | integer | 1 - 14 | f | integer | 1 - 21 | f | integer | 1 - 22 | f | integer | 1 + 4 | f | text | 5 + 6 | f | text | 5 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 21 | f | text | 1 + 22 | f | text | 1 24 | f | integer | 1 (11 rows) ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLEANpk.col sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to server sqlite_svr diff --git a/sql/12.15/extra/bool.sql b/sql/12.15/extra/bool.sql index 5552d902..222b0222 100644 --- a/sql/12.15/extra/bool.sql +++ b/sql/12.15/extra/bool.sql @@ -1,12 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); - ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -18,88 +17,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); --Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +SELECT * FROM "type_BOOLEAN"; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 34 +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: -SELECT * FROM "type_BOOLEAN+"; --Testcase 36: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +SELECT * FROM "type_BOOLEAN+"; --Testcase 37: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; --Testcase 38: -SELECT * FROM "type_BOOLEAN+" WHERE b; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; --Testcase 39: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/bool.sql b/sql/13.11/extra/bool.sql index 5552d902..222b0222 100644 --- a/sql/13.11/extra/bool.sql +++ b/sql/13.11/extra/bool.sql @@ -1,12 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); - ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -18,88 +17,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); --Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +SELECT * FROM "type_BOOLEAN"; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 34 +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: -SELECT * FROM "type_BOOLEAN+"; --Testcase 36: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +SELECT * FROM "type_BOOLEAN+"; --Testcase 37: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; --Testcase 38: -SELECT * FROM "type_BOOLEAN+" WHERE b; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; --Testcase 39: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/extra/bool.sql b/sql/14.8/extra/bool.sql index 5552d902..222b0222 100644 --- a/sql/14.8/extra/bool.sql +++ b/sql/14.8/extra/bool.sql @@ -1,12 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); - ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -18,88 +17,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); --Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +SELECT * FROM "type_BOOLEAN"; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 34 +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: -SELECT * FROM "type_BOOLEAN+"; --Testcase 36: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +SELECT * FROM "type_BOOLEAN+"; --Testcase 37: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; --Testcase 38: -SELECT * FROM "type_BOOLEAN+" WHERE b; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; --Testcase 39: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/extra/bool.sql b/sql/15.3/extra/bool.sql index 5552d902..222b0222 100644 --- a/sql/15.3/extra/bool.sql +++ b/sql/15.3/extra/bool.sql @@ -1,12 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); - ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -18,88 +17,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); --Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +SELECT * FROM "type_BOOLEAN"; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 34 +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: -SELECT * FROM "type_BOOLEAN+"; --Testcase 36: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +SELECT * FROM "type_BOOLEAN+"; --Testcase 37: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; --Testcase 38: -SELECT * FROM "type_BOOLEAN+" WHERE b; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; --Testcase 39: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/bool.sql b/sql/16.0/extra/bool.sql index 5552d902..222b0222 100644 --- a/sql/16.0/extra/bool.sql +++ b/sql/16.0/extra/bool.sql @@ -1,12 +1,11 @@ --SET log_min_messages TO DEBUG1; --SET client_min_messages TO DEBUG1; ---Testcase 44: +--Testcase 000: CREATE EXTENSION sqlite_fdw; ---Testcase 45: +--Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/tmp/sqlitefdw_test.db'); - ---Testcase 46: +--Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -18,88 +17,90 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (2, FALSE); --Testcase 04: CREATE FOREIGN TABLE "type_BOOLEAN+"( "i" int, "b" bool, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN+'); --Testcase 05: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE text; --Testcase 06: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (3, TRUE); --Testcase 07: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (4, FALSE); --Testcase 08: -INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (5, true); --Testcase 09: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); +INSERT INTO "type_BOOLEAN"(i, b) VALUES (6, false); --Testcase 10: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (7, 'Yes'); --Testcase 11: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (8, 'YeS'); --Testcase 12: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (9, 'yes'); --Testcase 13: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (10, 'no'); --Testcase 14: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (11, 'No'); --Testcase 15: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (12, 'nO'); --Testcase 16: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (13, 'off'); --Testcase 17: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (14, 'oFf'); --Testcase 18: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (15, 'on'); --Testcase 19: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (16, 'ON'); --Testcase 20: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (17, 't'); --Testcase 21: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (18, 'T'); --Testcase 22: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (19, 'Y'); --Testcase 23: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (20, 'y'); --Testcase 24: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (21, 'F'); --Testcase 25: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (22, 'f'); --Testcase 26: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (23, 'x'); --Testcase 27: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (24, '0'); --Testcase 28: -INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); +INSERT INTO "type_BOOLEAN" (i, b) VALUES (25, '1'); --Testcase 29: -SELECT * FROM "type_BOOLEAN"; +INSERT INTO "type_BOOLEAN" (i, b) VALUES (26, NULL); --Testcase 30: -ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +SELECT * FROM "type_BOOLEAN"; --Testcase 31: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 32: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN"; ---Testcase 32: +--Testcase 33: EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "type_BOOLEAN+"; ---Testcase 33: ERR - invalid text affinity because not ISO:SQL text input +--Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; ---Testcase 34 +--Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; ---Testcase 35: -SELECT * FROM "type_BOOLEAN+"; --Testcase 36: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; +SELECT * FROM "type_BOOLEAN+"; --Testcase 37: -SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NULL; --Testcase 38: -SELECT * FROM "type_BOOLEAN+" WHERE b; +SELECT * FROM "type_BOOLEAN+" WHERE b IS NOT NULL; --Testcase 39: +SELECT * FROM "type_BOOLEAN+" WHERE b; +--Testcase 40: SELECT * FROM "type_BOOLEAN+" WHERE NOT b; ---Testcase 40: -CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 41: -INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +CREATE FOREIGN TABLE "type_BOOLEANpk" (col bool OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 42: +INSERT INTO "type_BOOLEANpk" VALUES (TRUE); +--Testcase 43: INSERT INTO "type_BOOLEANpk" VALUES (FALSE); ---Testcase 43: ERR - primary key +--Testcase 44: ERR - primary key INSERT INTO "type_BOOLEANpk" VALUES (TRUE); ---Testcase 44: +--Testcase 45: DELETE FROM "type_BOOLEANpk"; ---Testcase 47: +--Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; From b78b5ed375265564fba2bb9d07d71669f89f8d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Wed, 29 Nov 2023 07:54:24 +0300 Subject: [PATCH 14/27] Revert README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index ae8d7653..a4489e00 100644 --- a/README.md +++ b/README.md @@ -636,8 +636,6 @@ Useful links License ------- -This FDW linensed under PostgreSQL-like license. - * Copyright © 2018 - 2024, TOSHIBA CORPORATION * Copyright © 2011 - 2016, EnterpriseDB Corporation From 2a2261e3bb97b737c260ff2471f3850b4df116e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 29 Nov 2023 22:45:11 +0300 Subject: [PATCH 15/27] Add operator tests, `UPDATE` and `DELETE` tests. --- expected/12.15/extra/bool.out | 3403 ++++++++++++++++++++++++++++++++- expected/12.15/type.out | 3 +- expected/13.11/extra/bool.out | 3403 ++++++++++++++++++++++++++++++++- expected/13.11/type.out | 3 +- expected/14.8/extra/bool.out | 3403 ++++++++++++++++++++++++++++++++- expected/14.8/type.out | 3 +- expected/15.3/extra/bool.out | 3403 ++++++++++++++++++++++++++++++++- expected/15.3/type.out | 3 +- expected/16.0/extra/bool.out | 3403 ++++++++++++++++++++++++++++++++- expected/16.0/type.out | 3 +- sql/12.15/extra/bool.sql | 77 + sql/13.11/extra/bool.sql | 77 + sql/14.8/extra/bool.sql | 77 + sql/15.3/extra/bool.sql | 77 + sql/16.0/extra/bool.sql | 77 + sql/init_data/init.sql | 8 + sqlite_data_norm.c | 13 +- 17 files changed, 17425 insertions(+), 11 deletions(-) diff --git a/expected/12.15/extra/bool.out b/expected/12.15/extra/bool.out index 765ac4f9..3d9bf96c 100644 --- a/expected/12.15/extra/bool.out +++ b/expected/12.15/extra/bool.out @@ -241,11 +241,3412 @@ ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLE sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; + QUERY PLAN +---------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; + QUERY PLAN +---------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; + QUERY PLAN +------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + QUERY PLAN +------------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" b + Output: i, b, t, l, (NOT b) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + i | b | t | l | nb +----+---+---------+---+---- + 1 | t | integer | 1 | f + 2 | f | integer | 1 | t + 3 | t | text | 4 | f + 4 | f | text | 5 | t + 5 | t | text | 4 | f + 6 | f | text | 5 | t + 7 | t | text | 3 | f + 8 | t | text | 3 | f + 9 | t | text | 3 | f + 10 | f | text | 2 | t + 11 | f | text | 2 | t + 12 | f | text | 2 | t + 13 | f | text | 3 | t + 14 | f | text | 3 | t + 15 | t | text | 2 | f + 16 | t | text | 2 | f + 17 | t | text | 1 | f + 18 | t | text | 1 | f + 19 | t | text | 1 | f + 20 | t | text | 1 | f + 21 | f | text | 1 | t + 22 | f | text | 1 | t + 24 | f | integer | 1 | t + 25 | t | integer | 1 | f + 26 | | null | | +(25 rows) + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | f | 4 | f + 71 | 4 | f | 5 | f + 72 | 4 | f | 6 | f + 73 | 4 | f | 7 | f + 74 | 4 | f | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | f | 15 | f + 82 | 4 | f | 16 | f + 83 | 4 | f | 17 | f + 84 | 4 | f | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | f | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | f | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | f | 4 | f + 93 | 5 | f | 5 | f + 94 | 5 | f | 6 | f + 95 | 5 | f | 7 | f + 96 | 5 | f | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | f | 15 | f + 104 | 5 | f | 16 | f + 105 | 5 | f | 17 | f + 106 | 5 | f | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | f | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | f | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | f | 4 | f + 115 | 6 | f | 5 | f + 116 | 6 | f | 6 | f + 117 | 6 | f | 7 | f + 118 | 6 | f | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | f | 15 | f + 126 | 6 | f | 16 | f + 127 | 6 | f | 17 | f + 128 | 6 | f | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | f | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | f | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | f | 4 | f + 137 | 7 | f | 5 | f + 138 | 7 | f | 6 | f + 139 | 7 | f | 7 | f + 140 | 7 | f | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | f | 15 | f + 148 | 7 | f | 16 | f + 149 | 7 | f | 17 | f + 150 | 7 | f | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | f | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | f | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | f | 4 | f + 159 | 8 | f | 5 | f + 160 | 8 | f | 6 | f + 161 | 8 | f | 7 | f + 162 | 8 | f | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | f | 15 | f + 170 | 8 | f | 16 | f + 171 | 8 | f | 17 | f + 172 | 8 | f | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | f | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | f | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | f | 4 | f + 313 | 15 | f | 5 | f + 314 | 15 | f | 6 | f + 315 | 15 | f | 7 | f + 316 | 15 | f | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | f | 15 | f + 324 | 15 | f | 16 | f + 325 | 15 | f | 17 | f + 326 | 15 | f | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | f | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | f | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | f | 4 | f + 335 | 16 | f | 5 | f + 336 | 16 | f | 6 | f + 337 | 16 | f | 7 | f + 338 | 16 | f | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | f | 15 | f + 346 | 16 | f | 16 | f + 347 | 16 | f | 17 | f + 348 | 16 | f | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | f | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | f | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | f | 4 | f + 357 | 17 | f | 5 | f + 358 | 17 | f | 6 | f + 359 | 17 | f | 7 | f + 360 | 17 | f | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | f | 15 | f + 368 | 17 | f | 16 | f + 369 | 17 | f | 17 | f + 370 | 17 | f | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | f | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | f | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | f | 4 | f + 379 | 18 | f | 5 | f + 380 | 18 | f | 6 | f + 381 | 18 | f | 7 | f + 382 | 18 | f | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | f | 15 | f + 390 | 18 | f | 16 | f + 391 | 18 | f | 17 | f + 392 | 18 | f | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | f | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | f | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | f | 4 | f + 423 | 20 | f | 5 | f + 424 | 20 | f | 6 | f + 425 | 20 | f | 7 | f + 426 | 20 | f | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | f | 15 | f + 434 | 20 | f | 16 | f + 435 | 20 | f | 17 | f + 436 | 20 | f | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | f | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | f | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" +(3 rows) + +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 70 | f | f | f | f + 71 | f | f | f | f + 72 | f | f | f | f + 73 | f | f | f | f + 74 | f | f | f | f + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 81 | f | f | f | f + 82 | f | f | f | f + 83 | f | f | f | f + 84 | f | f | f | f + 85 | f | t | f | t + 86 | f | f | f | f + 87 | f | t | f | t + 88 | f | | f | + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 92 | f | f | f | f + 93 | f | f | f | f + 94 | f | f | f | f + 95 | f | f | f | f + 96 | f | f | f | f + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 103 | f | f | f | f + 104 | f | f | f | f + 105 | f | f | f | f + 106 | f | f | f | f + 107 | f | t | f | t + 108 | f | f | f | f + 109 | f | t | f | t + 110 | f | | f | + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 114 | f | f | f | f + 115 | f | f | f | f + 116 | f | f | f | f + 117 | f | f | f | f + 118 | f | f | f | f + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 125 | f | f | f | f + 126 | f | f | f | f + 127 | f | f | f | f + 128 | f | f | f | f + 129 | f | t | f | t + 130 | f | f | f | f + 131 | f | t | f | t + 132 | f | | f | + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 136 | f | f | f | f + 137 | f | f | f | f + 138 | f | f | f | f + 139 | f | f | f | f + 140 | f | f | f | f + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 147 | f | f | f | f + 148 | f | f | f | f + 149 | f | f | f | f + 150 | f | f | f | f + 151 | f | t | f | t + 152 | f | f | f | f + 153 | f | t | f | t + 154 | f | | f | + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 158 | f | f | f | f + 159 | f | f | f | f + 160 | f | f | f | f + 161 | f | f | f | f + 162 | f | f | f | f + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 169 | f | f | f | f + 170 | f | f | f | f + 171 | f | f | f | f + 172 | f | f | f | f + 173 | f | t | f | t + 174 | f | f | f | f + 175 | f | t | f | t + 176 | f | | f | + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 312 | f | f | f | f + 313 | f | f | f | f + 314 | f | f | f | f + 315 | f | f | f | f + 316 | f | f | f | f + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 323 | f | f | f | f + 324 | f | f | f | f + 325 | f | f | f | f + 326 | f | f | f | f + 327 | f | t | f | t + 328 | f | f | f | f + 329 | f | t | f | t + 330 | f | | f | + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 334 | f | f | f | f + 335 | f | f | f | f + 336 | f | f | f | f + 337 | f | f | f | f + 338 | f | f | f | f + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 345 | f | f | f | f + 346 | f | f | f | f + 347 | f | f | f | f + 348 | f | f | f | f + 349 | f | t | f | t + 350 | f | f | f | f + 351 | f | t | f | t + 352 | f | | f | + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 356 | f | f | f | f + 357 | f | f | f | f + 358 | f | f | f | f + 359 | f | f | f | f + 360 | f | f | f | f + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 367 | f | f | f | f + 368 | f | f | f | f + 369 | f | f | f | f + 370 | f | f | f | f + 371 | f | t | f | t + 372 | f | f | f | f + 373 | f | t | f | t + 374 | f | | f | + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 378 | f | f | f | f + 379 | f | f | f | f + 380 | f | f | f | f + 381 | f | f | f | f + 382 | f | f | f | f + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 389 | f | f | f | f + 390 | f | f | f | f + 391 | f | f | f | f + 392 | f | f | f | f + 393 | f | t | f | t + 394 | f | f | f | f + 395 | f | t | f | t + 396 | f | | f | + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 422 | f | f | f | f + 423 | f | f | f | f + 424 | f | f | f | f + 425 | f | f | f | f + 426 | f | f | f | f + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 433 | f | f | f | f + 434 | f | f | f | f + 435 | f | f | f | f + 436 | f | f | f | f + 437 | f | t | f | t + 438 | f | f | f | f + 439 | f | t | f | t + 440 | f | | f | + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 466 | | f | f | + 467 | | f | f | + 468 | | f | f | + 469 | | f | f | + 470 | | f | f | + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 477 | | f | f | + 478 | | f | f | + 479 | | f | f | + 480 | | f | f | + 481 | | t | | t + 482 | | f | f | + 483 | | t | | t + 484 | | | | +(484 rows) + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 19 | t | t | t | t + 21 | t | t | t | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 41 | t | t | t | t + 43 | t | t | t | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 63 | t | t | t | t + 65 | t | t | t | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 195 | t | t | t | t + 197 | t | t | t | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 217 | t | t | t | t + 219 | t | t | t | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 239 | t | t | t | t + 241 | t | t | t | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 261 | t | t | t | t + 263 | t | t | t | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 283 | t | t | t | t + 285 | t | t | t | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 305 | t | t | t | t + 307 | t | t | t | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 415 | t | t | t | t + 417 | t | t | t | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 459 | t | t | t | t + 461 | t | t | t | t +(121 rows) + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 85 | f | t | f | t + 87 | f | t | f | t + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 107 | f | t | f | t + 109 | f | t | f | t + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 129 | f | t | f | t + 131 | f | t | f | t + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 151 | f | t | f | t + 153 | f | t | f | t + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 173 | f | t | f | t + 175 | f | t | f | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 327 | f | t | f | t + 329 | f | t | f | t + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 349 | f | t | f | t + 351 | f | t | f | t + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 371 | f | t | f | t + 373 | f | t | f | t + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 393 | f | t | f | t + 395 | f | t | f | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 437 | f | t | f | t + 439 | f | t | f | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 481 | | t | | t + 483 | | t | | t +(363 rows) + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | | 1 | t + 68 | 4 | | 2 | t + 69 | 4 | | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | | 9 | t + 76 | 4 | | 10 | t + 77 | 4 | | 11 | t + 78 | 4 | | 12 | t + 79 | 4 | | 13 | t + 80 | 4 | | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | | 21 | t + 88 | 4 | | 22 | + 89 | 5 | | 1 | t + 90 | 5 | | 2 | t + 91 | 5 | | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | | 9 | t + 98 | 5 | | 10 | t + 99 | 5 | | 11 | t + 100 | 5 | | 12 | t + 101 | 5 | | 13 | t + 102 | 5 | | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | | 21 | t + 110 | 5 | | 22 | + 111 | 6 | | 1 | t + 112 | 6 | | 2 | t + 113 | 6 | | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | | 9 | t + 120 | 6 | | 10 | t + 121 | 6 | | 11 | t + 122 | 6 | | 12 | t + 123 | 6 | | 13 | t + 124 | 6 | | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | | 21 | t + 132 | 6 | | 22 | + 133 | 7 | | 1 | t + 134 | 7 | | 2 | t + 135 | 7 | | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | | 9 | t + 142 | 7 | | 10 | t + 143 | 7 | | 11 | t + 144 | 7 | | 12 | t + 145 | 7 | | 13 | t + 146 | 7 | | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | | 21 | t + 154 | 7 | | 22 | + 155 | 8 | | 1 | t + 156 | 8 | | 2 | t + 157 | 8 | | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | | 9 | t + 164 | 8 | | 10 | t + 165 | 8 | | 11 | t + 166 | 8 | | 12 | t + 167 | 8 | | 13 | t + 168 | 8 | | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | | 21 | t + 176 | 8 | | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | | 1 | t + 310 | 15 | | 2 | t + 311 | 15 | | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | | 9 | t + 318 | 15 | | 10 | t + 319 | 15 | | 11 | t + 320 | 15 | | 12 | t + 321 | 15 | | 13 | t + 322 | 15 | | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | | 21 | t + 330 | 15 | | 22 | + 331 | 16 | | 1 | t + 332 | 16 | | 2 | t + 333 | 16 | | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | | 9 | t + 340 | 16 | | 10 | t + 341 | 16 | | 11 | t + 342 | 16 | | 12 | t + 343 | 16 | | 13 | t + 344 | 16 | | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | | 21 | t + 352 | 16 | | 22 | + 353 | 17 | | 1 | t + 354 | 17 | | 2 | t + 355 | 17 | | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | | 9 | t + 362 | 17 | | 10 | t + 363 | 17 | | 11 | t + 364 | 17 | | 12 | t + 365 | 17 | | 13 | t + 366 | 17 | | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | | 21 | t + 374 | 17 | | 22 | + 375 | 18 | | 1 | t + 376 | 18 | | 2 | t + 377 | 18 | | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | | 9 | t + 384 | 18 | | 10 | t + 385 | 18 | | 11 | t + 386 | 18 | | 12 | t + 387 | 18 | | 13 | t + 388 | 18 | | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | | 21 | t + 396 | 18 | | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | | 1 | t + 420 | 20 | | 2 | t + 421 | 20 | | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | | 9 | t + 428 | 20 | | 10 | t + 429 | 20 | | 11 | t + 430 | 20 | | 12 | t + 431 | 20 | | 13 | t + 432 | 20 | | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | | 21 | t + 440 | 20 | | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------- + Delete on public."type_BOOLEAN_oper" + -> Foreign Delete on public."type_BOOLEAN_oper" + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 19 | 1 | f | 19 | t + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 41 | 2 | f | 19 | t + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 63 | 3 | f | 19 | t + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 85 | 4 | f | 19 | t + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 107 | 5 | f | 19 | t + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 129 | 6 | f | 19 | t + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 151 | 7 | f | 19 | t + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 173 | 8 | f | 19 | t + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 195 | 9 | f | 19 | t + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 217 | 10 | f | 19 | t + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 239 | 11 | f | 19 | t + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 261 | 12 | f | 19 | t + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 283 | 13 | f | 19 | t + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 305 | 14 | f | 19 | t + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 327 | 15 | f | 19 | t + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 349 | 16 | f | 19 | t + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 371 | 17 | f | 19 | t + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 393 | 18 | f | 19 | t + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 415 | 19 | f | 19 | t + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 437 | 20 | f | 19 | t + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 459 | 21 | f | 19 | t + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 481 | 22 | f | 19 | t + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(264 rows) + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 5 other objects +NOTICE: drop cascades to 6 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" drop cascades to foreign table "type_BOOLEANpk" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to server sqlite2 diff --git a/expected/12.15/type.out b/expected/12.15/type.out index 2000de47..f97792aa 100644 --- a/expected/12.15/type.out +++ b/expected/12.15/type.out @@ -1266,7 +1266,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 49 other objects +NOTICE: drop cascades to 50 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1309,6 +1309,7 @@ drop cascades to foreign table fts_table_docsize drop cascades to foreign table fts_table_config drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BIT" diff --git a/expected/13.11/extra/bool.out b/expected/13.11/extra/bool.out index 765ac4f9..3d9bf96c 100644 --- a/expected/13.11/extra/bool.out +++ b/expected/13.11/extra/bool.out @@ -241,11 +241,3412 @@ ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLE sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; + QUERY PLAN +---------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; + QUERY PLAN +---------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; + QUERY PLAN +------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + QUERY PLAN +------------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" b + Output: i, b, t, l, (NOT b) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + i | b | t | l | nb +----+---+---------+---+---- + 1 | t | integer | 1 | f + 2 | f | integer | 1 | t + 3 | t | text | 4 | f + 4 | f | text | 5 | t + 5 | t | text | 4 | f + 6 | f | text | 5 | t + 7 | t | text | 3 | f + 8 | t | text | 3 | f + 9 | t | text | 3 | f + 10 | f | text | 2 | t + 11 | f | text | 2 | t + 12 | f | text | 2 | t + 13 | f | text | 3 | t + 14 | f | text | 3 | t + 15 | t | text | 2 | f + 16 | t | text | 2 | f + 17 | t | text | 1 | f + 18 | t | text | 1 | f + 19 | t | text | 1 | f + 20 | t | text | 1 | f + 21 | f | text | 1 | t + 22 | f | text | 1 | t + 24 | f | integer | 1 | t + 25 | t | integer | 1 | f + 26 | | null | | +(25 rows) + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | f | 4 | f + 71 | 4 | f | 5 | f + 72 | 4 | f | 6 | f + 73 | 4 | f | 7 | f + 74 | 4 | f | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | f | 15 | f + 82 | 4 | f | 16 | f + 83 | 4 | f | 17 | f + 84 | 4 | f | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | f | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | f | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | f | 4 | f + 93 | 5 | f | 5 | f + 94 | 5 | f | 6 | f + 95 | 5 | f | 7 | f + 96 | 5 | f | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | f | 15 | f + 104 | 5 | f | 16 | f + 105 | 5 | f | 17 | f + 106 | 5 | f | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | f | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | f | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | f | 4 | f + 115 | 6 | f | 5 | f + 116 | 6 | f | 6 | f + 117 | 6 | f | 7 | f + 118 | 6 | f | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | f | 15 | f + 126 | 6 | f | 16 | f + 127 | 6 | f | 17 | f + 128 | 6 | f | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | f | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | f | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | f | 4 | f + 137 | 7 | f | 5 | f + 138 | 7 | f | 6 | f + 139 | 7 | f | 7 | f + 140 | 7 | f | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | f | 15 | f + 148 | 7 | f | 16 | f + 149 | 7 | f | 17 | f + 150 | 7 | f | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | f | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | f | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | f | 4 | f + 159 | 8 | f | 5 | f + 160 | 8 | f | 6 | f + 161 | 8 | f | 7 | f + 162 | 8 | f | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | f | 15 | f + 170 | 8 | f | 16 | f + 171 | 8 | f | 17 | f + 172 | 8 | f | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | f | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | f | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | f | 4 | f + 313 | 15 | f | 5 | f + 314 | 15 | f | 6 | f + 315 | 15 | f | 7 | f + 316 | 15 | f | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | f | 15 | f + 324 | 15 | f | 16 | f + 325 | 15 | f | 17 | f + 326 | 15 | f | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | f | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | f | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | f | 4 | f + 335 | 16 | f | 5 | f + 336 | 16 | f | 6 | f + 337 | 16 | f | 7 | f + 338 | 16 | f | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | f | 15 | f + 346 | 16 | f | 16 | f + 347 | 16 | f | 17 | f + 348 | 16 | f | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | f | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | f | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | f | 4 | f + 357 | 17 | f | 5 | f + 358 | 17 | f | 6 | f + 359 | 17 | f | 7 | f + 360 | 17 | f | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | f | 15 | f + 368 | 17 | f | 16 | f + 369 | 17 | f | 17 | f + 370 | 17 | f | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | f | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | f | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | f | 4 | f + 379 | 18 | f | 5 | f + 380 | 18 | f | 6 | f + 381 | 18 | f | 7 | f + 382 | 18 | f | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | f | 15 | f + 390 | 18 | f | 16 | f + 391 | 18 | f | 17 | f + 392 | 18 | f | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | f | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | f | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | f | 4 | f + 423 | 20 | f | 5 | f + 424 | 20 | f | 6 | f + 425 | 20 | f | 7 | f + 426 | 20 | f | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | f | 15 | f + 434 | 20 | f | 16 | f + 435 | 20 | f | 17 | f + 436 | 20 | f | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | f | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | f | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" +(3 rows) + +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 70 | f | f | f | f + 71 | f | f | f | f + 72 | f | f | f | f + 73 | f | f | f | f + 74 | f | f | f | f + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 81 | f | f | f | f + 82 | f | f | f | f + 83 | f | f | f | f + 84 | f | f | f | f + 85 | f | t | f | t + 86 | f | f | f | f + 87 | f | t | f | t + 88 | f | | f | + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 92 | f | f | f | f + 93 | f | f | f | f + 94 | f | f | f | f + 95 | f | f | f | f + 96 | f | f | f | f + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 103 | f | f | f | f + 104 | f | f | f | f + 105 | f | f | f | f + 106 | f | f | f | f + 107 | f | t | f | t + 108 | f | f | f | f + 109 | f | t | f | t + 110 | f | | f | + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 114 | f | f | f | f + 115 | f | f | f | f + 116 | f | f | f | f + 117 | f | f | f | f + 118 | f | f | f | f + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 125 | f | f | f | f + 126 | f | f | f | f + 127 | f | f | f | f + 128 | f | f | f | f + 129 | f | t | f | t + 130 | f | f | f | f + 131 | f | t | f | t + 132 | f | | f | + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 136 | f | f | f | f + 137 | f | f | f | f + 138 | f | f | f | f + 139 | f | f | f | f + 140 | f | f | f | f + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 147 | f | f | f | f + 148 | f | f | f | f + 149 | f | f | f | f + 150 | f | f | f | f + 151 | f | t | f | t + 152 | f | f | f | f + 153 | f | t | f | t + 154 | f | | f | + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 158 | f | f | f | f + 159 | f | f | f | f + 160 | f | f | f | f + 161 | f | f | f | f + 162 | f | f | f | f + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 169 | f | f | f | f + 170 | f | f | f | f + 171 | f | f | f | f + 172 | f | f | f | f + 173 | f | t | f | t + 174 | f | f | f | f + 175 | f | t | f | t + 176 | f | | f | + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 312 | f | f | f | f + 313 | f | f | f | f + 314 | f | f | f | f + 315 | f | f | f | f + 316 | f | f | f | f + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 323 | f | f | f | f + 324 | f | f | f | f + 325 | f | f | f | f + 326 | f | f | f | f + 327 | f | t | f | t + 328 | f | f | f | f + 329 | f | t | f | t + 330 | f | | f | + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 334 | f | f | f | f + 335 | f | f | f | f + 336 | f | f | f | f + 337 | f | f | f | f + 338 | f | f | f | f + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 345 | f | f | f | f + 346 | f | f | f | f + 347 | f | f | f | f + 348 | f | f | f | f + 349 | f | t | f | t + 350 | f | f | f | f + 351 | f | t | f | t + 352 | f | | f | + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 356 | f | f | f | f + 357 | f | f | f | f + 358 | f | f | f | f + 359 | f | f | f | f + 360 | f | f | f | f + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 367 | f | f | f | f + 368 | f | f | f | f + 369 | f | f | f | f + 370 | f | f | f | f + 371 | f | t | f | t + 372 | f | f | f | f + 373 | f | t | f | t + 374 | f | | f | + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 378 | f | f | f | f + 379 | f | f | f | f + 380 | f | f | f | f + 381 | f | f | f | f + 382 | f | f | f | f + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 389 | f | f | f | f + 390 | f | f | f | f + 391 | f | f | f | f + 392 | f | f | f | f + 393 | f | t | f | t + 394 | f | f | f | f + 395 | f | t | f | t + 396 | f | | f | + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 422 | f | f | f | f + 423 | f | f | f | f + 424 | f | f | f | f + 425 | f | f | f | f + 426 | f | f | f | f + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 433 | f | f | f | f + 434 | f | f | f | f + 435 | f | f | f | f + 436 | f | f | f | f + 437 | f | t | f | t + 438 | f | f | f | f + 439 | f | t | f | t + 440 | f | | f | + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 466 | | f | f | + 467 | | f | f | + 468 | | f | f | + 469 | | f | f | + 470 | | f | f | + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 477 | | f | f | + 478 | | f | f | + 479 | | f | f | + 480 | | f | f | + 481 | | t | | t + 482 | | f | f | + 483 | | t | | t + 484 | | | | +(484 rows) + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 19 | t | t | t | t + 21 | t | t | t | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 41 | t | t | t | t + 43 | t | t | t | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 63 | t | t | t | t + 65 | t | t | t | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 195 | t | t | t | t + 197 | t | t | t | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 217 | t | t | t | t + 219 | t | t | t | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 239 | t | t | t | t + 241 | t | t | t | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 261 | t | t | t | t + 263 | t | t | t | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 283 | t | t | t | t + 285 | t | t | t | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 305 | t | t | t | t + 307 | t | t | t | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 415 | t | t | t | t + 417 | t | t | t | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 459 | t | t | t | t + 461 | t | t | t | t +(121 rows) + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 85 | f | t | f | t + 87 | f | t | f | t + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 107 | f | t | f | t + 109 | f | t | f | t + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 129 | f | t | f | t + 131 | f | t | f | t + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 151 | f | t | f | t + 153 | f | t | f | t + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 173 | f | t | f | t + 175 | f | t | f | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 327 | f | t | f | t + 329 | f | t | f | t + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 349 | f | t | f | t + 351 | f | t | f | t + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 371 | f | t | f | t + 373 | f | t | f | t + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 393 | f | t | f | t + 395 | f | t | f | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 437 | f | t | f | t + 439 | f | t | f | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 481 | | t | | t + 483 | | t | | t +(363 rows) + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | | 1 | t + 68 | 4 | | 2 | t + 69 | 4 | | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | | 9 | t + 76 | 4 | | 10 | t + 77 | 4 | | 11 | t + 78 | 4 | | 12 | t + 79 | 4 | | 13 | t + 80 | 4 | | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | | 21 | t + 88 | 4 | | 22 | + 89 | 5 | | 1 | t + 90 | 5 | | 2 | t + 91 | 5 | | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | | 9 | t + 98 | 5 | | 10 | t + 99 | 5 | | 11 | t + 100 | 5 | | 12 | t + 101 | 5 | | 13 | t + 102 | 5 | | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | | 21 | t + 110 | 5 | | 22 | + 111 | 6 | | 1 | t + 112 | 6 | | 2 | t + 113 | 6 | | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | | 9 | t + 120 | 6 | | 10 | t + 121 | 6 | | 11 | t + 122 | 6 | | 12 | t + 123 | 6 | | 13 | t + 124 | 6 | | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | | 21 | t + 132 | 6 | | 22 | + 133 | 7 | | 1 | t + 134 | 7 | | 2 | t + 135 | 7 | | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | | 9 | t + 142 | 7 | | 10 | t + 143 | 7 | | 11 | t + 144 | 7 | | 12 | t + 145 | 7 | | 13 | t + 146 | 7 | | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | | 21 | t + 154 | 7 | | 22 | + 155 | 8 | | 1 | t + 156 | 8 | | 2 | t + 157 | 8 | | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | | 9 | t + 164 | 8 | | 10 | t + 165 | 8 | | 11 | t + 166 | 8 | | 12 | t + 167 | 8 | | 13 | t + 168 | 8 | | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | | 21 | t + 176 | 8 | | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | | 1 | t + 310 | 15 | | 2 | t + 311 | 15 | | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | | 9 | t + 318 | 15 | | 10 | t + 319 | 15 | | 11 | t + 320 | 15 | | 12 | t + 321 | 15 | | 13 | t + 322 | 15 | | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | | 21 | t + 330 | 15 | | 22 | + 331 | 16 | | 1 | t + 332 | 16 | | 2 | t + 333 | 16 | | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | | 9 | t + 340 | 16 | | 10 | t + 341 | 16 | | 11 | t + 342 | 16 | | 12 | t + 343 | 16 | | 13 | t + 344 | 16 | | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | | 21 | t + 352 | 16 | | 22 | + 353 | 17 | | 1 | t + 354 | 17 | | 2 | t + 355 | 17 | | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | | 9 | t + 362 | 17 | | 10 | t + 363 | 17 | | 11 | t + 364 | 17 | | 12 | t + 365 | 17 | | 13 | t + 366 | 17 | | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | | 21 | t + 374 | 17 | | 22 | + 375 | 18 | | 1 | t + 376 | 18 | | 2 | t + 377 | 18 | | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | | 9 | t + 384 | 18 | | 10 | t + 385 | 18 | | 11 | t + 386 | 18 | | 12 | t + 387 | 18 | | 13 | t + 388 | 18 | | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | | 21 | t + 396 | 18 | | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | | 1 | t + 420 | 20 | | 2 | t + 421 | 20 | | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | | 9 | t + 428 | 20 | | 10 | t + 429 | 20 | | 11 | t + 430 | 20 | | 12 | t + 431 | 20 | | 13 | t + 432 | 20 | | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | | 21 | t + 440 | 20 | | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------- + Delete on public."type_BOOLEAN_oper" + -> Foreign Delete on public."type_BOOLEAN_oper" + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 19 | 1 | f | 19 | t + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 41 | 2 | f | 19 | t + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 63 | 3 | f | 19 | t + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 85 | 4 | f | 19 | t + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 107 | 5 | f | 19 | t + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 129 | 6 | f | 19 | t + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 151 | 7 | f | 19 | t + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 173 | 8 | f | 19 | t + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 195 | 9 | f | 19 | t + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 217 | 10 | f | 19 | t + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 239 | 11 | f | 19 | t + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 261 | 12 | f | 19 | t + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 283 | 13 | f | 19 | t + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 305 | 14 | f | 19 | t + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 327 | 15 | f | 19 | t + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 349 | 16 | f | 19 | t + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 371 | 17 | f | 19 | t + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 393 | 18 | f | 19 | t + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 415 | 19 | f | 19 | t + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 437 | 20 | f | 19 | t + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 459 | 21 | f | 19 | t + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 481 | 22 | f | 19 | t + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(264 rows) + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 5 other objects +NOTICE: drop cascades to 6 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" drop cascades to foreign table "type_BOOLEANpk" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to server sqlite2 diff --git a/expected/13.11/type.out b/expected/13.11/type.out index 710e1921..4d791a9b 100644 --- a/expected/13.11/type.out +++ b/expected/13.11/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 49 other objects +NOTICE: drop cascades to 50 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1351,6 +1351,7 @@ drop cascades to foreign table fts_table_docsize drop cascades to foreign table fts_table_config drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BIT" diff --git a/expected/14.8/extra/bool.out b/expected/14.8/extra/bool.out index 765ac4f9..3d9bf96c 100644 --- a/expected/14.8/extra/bool.out +++ b/expected/14.8/extra/bool.out @@ -241,11 +241,3412 @@ ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLE sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; + QUERY PLAN +---------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; + QUERY PLAN +---------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; + QUERY PLAN +------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + QUERY PLAN +------------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" b + Output: i, b, t, l, (NOT b) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + i | b | t | l | nb +----+---+---------+---+---- + 1 | t | integer | 1 | f + 2 | f | integer | 1 | t + 3 | t | text | 4 | f + 4 | f | text | 5 | t + 5 | t | text | 4 | f + 6 | f | text | 5 | t + 7 | t | text | 3 | f + 8 | t | text | 3 | f + 9 | t | text | 3 | f + 10 | f | text | 2 | t + 11 | f | text | 2 | t + 12 | f | text | 2 | t + 13 | f | text | 3 | t + 14 | f | text | 3 | t + 15 | t | text | 2 | f + 16 | t | text | 2 | f + 17 | t | text | 1 | f + 18 | t | text | 1 | f + 19 | t | text | 1 | f + 20 | t | text | 1 | f + 21 | f | text | 1 | t + 22 | f | text | 1 | t + 24 | f | integer | 1 | t + 25 | t | integer | 1 | f + 26 | | null | | +(25 rows) + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | f | 4 | f + 71 | 4 | f | 5 | f + 72 | 4 | f | 6 | f + 73 | 4 | f | 7 | f + 74 | 4 | f | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | f | 15 | f + 82 | 4 | f | 16 | f + 83 | 4 | f | 17 | f + 84 | 4 | f | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | f | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | f | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | f | 4 | f + 93 | 5 | f | 5 | f + 94 | 5 | f | 6 | f + 95 | 5 | f | 7 | f + 96 | 5 | f | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | f | 15 | f + 104 | 5 | f | 16 | f + 105 | 5 | f | 17 | f + 106 | 5 | f | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | f | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | f | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | f | 4 | f + 115 | 6 | f | 5 | f + 116 | 6 | f | 6 | f + 117 | 6 | f | 7 | f + 118 | 6 | f | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | f | 15 | f + 126 | 6 | f | 16 | f + 127 | 6 | f | 17 | f + 128 | 6 | f | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | f | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | f | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | f | 4 | f + 137 | 7 | f | 5 | f + 138 | 7 | f | 6 | f + 139 | 7 | f | 7 | f + 140 | 7 | f | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | f | 15 | f + 148 | 7 | f | 16 | f + 149 | 7 | f | 17 | f + 150 | 7 | f | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | f | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | f | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | f | 4 | f + 159 | 8 | f | 5 | f + 160 | 8 | f | 6 | f + 161 | 8 | f | 7 | f + 162 | 8 | f | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | f | 15 | f + 170 | 8 | f | 16 | f + 171 | 8 | f | 17 | f + 172 | 8 | f | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | f | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | f | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | f | 4 | f + 313 | 15 | f | 5 | f + 314 | 15 | f | 6 | f + 315 | 15 | f | 7 | f + 316 | 15 | f | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | f | 15 | f + 324 | 15 | f | 16 | f + 325 | 15 | f | 17 | f + 326 | 15 | f | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | f | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | f | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | f | 4 | f + 335 | 16 | f | 5 | f + 336 | 16 | f | 6 | f + 337 | 16 | f | 7 | f + 338 | 16 | f | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | f | 15 | f + 346 | 16 | f | 16 | f + 347 | 16 | f | 17 | f + 348 | 16 | f | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | f | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | f | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | f | 4 | f + 357 | 17 | f | 5 | f + 358 | 17 | f | 6 | f + 359 | 17 | f | 7 | f + 360 | 17 | f | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | f | 15 | f + 368 | 17 | f | 16 | f + 369 | 17 | f | 17 | f + 370 | 17 | f | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | f | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | f | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | f | 4 | f + 379 | 18 | f | 5 | f + 380 | 18 | f | 6 | f + 381 | 18 | f | 7 | f + 382 | 18 | f | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | f | 15 | f + 390 | 18 | f | 16 | f + 391 | 18 | f | 17 | f + 392 | 18 | f | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | f | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | f | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | f | 4 | f + 423 | 20 | f | 5 | f + 424 | 20 | f | 6 | f + 425 | 20 | f | 7 | f + 426 | 20 | f | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | f | 15 | f + 434 | 20 | f | 16 | f + 435 | 20 | f | 17 | f + 436 | 20 | f | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | f | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | f | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" +(3 rows) + +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 70 | f | f | f | f + 71 | f | f | f | f + 72 | f | f | f | f + 73 | f | f | f | f + 74 | f | f | f | f + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 81 | f | f | f | f + 82 | f | f | f | f + 83 | f | f | f | f + 84 | f | f | f | f + 85 | f | t | f | t + 86 | f | f | f | f + 87 | f | t | f | t + 88 | f | | f | + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 92 | f | f | f | f + 93 | f | f | f | f + 94 | f | f | f | f + 95 | f | f | f | f + 96 | f | f | f | f + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 103 | f | f | f | f + 104 | f | f | f | f + 105 | f | f | f | f + 106 | f | f | f | f + 107 | f | t | f | t + 108 | f | f | f | f + 109 | f | t | f | t + 110 | f | | f | + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 114 | f | f | f | f + 115 | f | f | f | f + 116 | f | f | f | f + 117 | f | f | f | f + 118 | f | f | f | f + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 125 | f | f | f | f + 126 | f | f | f | f + 127 | f | f | f | f + 128 | f | f | f | f + 129 | f | t | f | t + 130 | f | f | f | f + 131 | f | t | f | t + 132 | f | | f | + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 136 | f | f | f | f + 137 | f | f | f | f + 138 | f | f | f | f + 139 | f | f | f | f + 140 | f | f | f | f + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 147 | f | f | f | f + 148 | f | f | f | f + 149 | f | f | f | f + 150 | f | f | f | f + 151 | f | t | f | t + 152 | f | f | f | f + 153 | f | t | f | t + 154 | f | | f | + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 158 | f | f | f | f + 159 | f | f | f | f + 160 | f | f | f | f + 161 | f | f | f | f + 162 | f | f | f | f + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 169 | f | f | f | f + 170 | f | f | f | f + 171 | f | f | f | f + 172 | f | f | f | f + 173 | f | t | f | t + 174 | f | f | f | f + 175 | f | t | f | t + 176 | f | | f | + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 312 | f | f | f | f + 313 | f | f | f | f + 314 | f | f | f | f + 315 | f | f | f | f + 316 | f | f | f | f + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 323 | f | f | f | f + 324 | f | f | f | f + 325 | f | f | f | f + 326 | f | f | f | f + 327 | f | t | f | t + 328 | f | f | f | f + 329 | f | t | f | t + 330 | f | | f | + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 334 | f | f | f | f + 335 | f | f | f | f + 336 | f | f | f | f + 337 | f | f | f | f + 338 | f | f | f | f + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 345 | f | f | f | f + 346 | f | f | f | f + 347 | f | f | f | f + 348 | f | f | f | f + 349 | f | t | f | t + 350 | f | f | f | f + 351 | f | t | f | t + 352 | f | | f | + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 356 | f | f | f | f + 357 | f | f | f | f + 358 | f | f | f | f + 359 | f | f | f | f + 360 | f | f | f | f + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 367 | f | f | f | f + 368 | f | f | f | f + 369 | f | f | f | f + 370 | f | f | f | f + 371 | f | t | f | t + 372 | f | f | f | f + 373 | f | t | f | t + 374 | f | | f | + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 378 | f | f | f | f + 379 | f | f | f | f + 380 | f | f | f | f + 381 | f | f | f | f + 382 | f | f | f | f + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 389 | f | f | f | f + 390 | f | f | f | f + 391 | f | f | f | f + 392 | f | f | f | f + 393 | f | t | f | t + 394 | f | f | f | f + 395 | f | t | f | t + 396 | f | | f | + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 422 | f | f | f | f + 423 | f | f | f | f + 424 | f | f | f | f + 425 | f | f | f | f + 426 | f | f | f | f + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 433 | f | f | f | f + 434 | f | f | f | f + 435 | f | f | f | f + 436 | f | f | f | f + 437 | f | t | f | t + 438 | f | f | f | f + 439 | f | t | f | t + 440 | f | | f | + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 466 | | f | f | + 467 | | f | f | + 468 | | f | f | + 469 | | f | f | + 470 | | f | f | + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 477 | | f | f | + 478 | | f | f | + 479 | | f | f | + 480 | | f | f | + 481 | | t | | t + 482 | | f | f | + 483 | | t | | t + 484 | | | | +(484 rows) + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 19 | t | t | t | t + 21 | t | t | t | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 41 | t | t | t | t + 43 | t | t | t | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 63 | t | t | t | t + 65 | t | t | t | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 195 | t | t | t | t + 197 | t | t | t | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 217 | t | t | t | t + 219 | t | t | t | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 239 | t | t | t | t + 241 | t | t | t | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 261 | t | t | t | t + 263 | t | t | t | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 283 | t | t | t | t + 285 | t | t | t | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 305 | t | t | t | t + 307 | t | t | t | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 415 | t | t | t | t + 417 | t | t | t | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 459 | t | t | t | t + 461 | t | t | t | t +(121 rows) + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 85 | f | t | f | t + 87 | f | t | f | t + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 107 | f | t | f | t + 109 | f | t | f | t + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 129 | f | t | f | t + 131 | f | t | f | t + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 151 | f | t | f | t + 153 | f | t | f | t + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 173 | f | t | f | t + 175 | f | t | f | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 327 | f | t | f | t + 329 | f | t | f | t + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 349 | f | t | f | t + 351 | f | t | f | t + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 371 | f | t | f | t + 373 | f | t | f | t + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 393 | f | t | f | t + 395 | f | t | f | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 437 | f | t | f | t + 439 | f | t | f | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 481 | | t | | t + 483 | | t | | t +(363 rows) + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | | 1 | t + 68 | 4 | | 2 | t + 69 | 4 | | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | | 9 | t + 76 | 4 | | 10 | t + 77 | 4 | | 11 | t + 78 | 4 | | 12 | t + 79 | 4 | | 13 | t + 80 | 4 | | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | | 21 | t + 88 | 4 | | 22 | + 89 | 5 | | 1 | t + 90 | 5 | | 2 | t + 91 | 5 | | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | | 9 | t + 98 | 5 | | 10 | t + 99 | 5 | | 11 | t + 100 | 5 | | 12 | t + 101 | 5 | | 13 | t + 102 | 5 | | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | | 21 | t + 110 | 5 | | 22 | + 111 | 6 | | 1 | t + 112 | 6 | | 2 | t + 113 | 6 | | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | | 9 | t + 120 | 6 | | 10 | t + 121 | 6 | | 11 | t + 122 | 6 | | 12 | t + 123 | 6 | | 13 | t + 124 | 6 | | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | | 21 | t + 132 | 6 | | 22 | + 133 | 7 | | 1 | t + 134 | 7 | | 2 | t + 135 | 7 | | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | | 9 | t + 142 | 7 | | 10 | t + 143 | 7 | | 11 | t + 144 | 7 | | 12 | t + 145 | 7 | | 13 | t + 146 | 7 | | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | | 21 | t + 154 | 7 | | 22 | + 155 | 8 | | 1 | t + 156 | 8 | | 2 | t + 157 | 8 | | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | | 9 | t + 164 | 8 | | 10 | t + 165 | 8 | | 11 | t + 166 | 8 | | 12 | t + 167 | 8 | | 13 | t + 168 | 8 | | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | | 21 | t + 176 | 8 | | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | | 1 | t + 310 | 15 | | 2 | t + 311 | 15 | | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | | 9 | t + 318 | 15 | | 10 | t + 319 | 15 | | 11 | t + 320 | 15 | | 12 | t + 321 | 15 | | 13 | t + 322 | 15 | | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | | 21 | t + 330 | 15 | | 22 | + 331 | 16 | | 1 | t + 332 | 16 | | 2 | t + 333 | 16 | | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | | 9 | t + 340 | 16 | | 10 | t + 341 | 16 | | 11 | t + 342 | 16 | | 12 | t + 343 | 16 | | 13 | t + 344 | 16 | | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | | 21 | t + 352 | 16 | | 22 | + 353 | 17 | | 1 | t + 354 | 17 | | 2 | t + 355 | 17 | | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | | 9 | t + 362 | 17 | | 10 | t + 363 | 17 | | 11 | t + 364 | 17 | | 12 | t + 365 | 17 | | 13 | t + 366 | 17 | | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | | 21 | t + 374 | 17 | | 22 | + 375 | 18 | | 1 | t + 376 | 18 | | 2 | t + 377 | 18 | | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | | 9 | t + 384 | 18 | | 10 | t + 385 | 18 | | 11 | t + 386 | 18 | | 12 | t + 387 | 18 | | 13 | t + 388 | 18 | | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | | 21 | t + 396 | 18 | | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | | 1 | t + 420 | 20 | | 2 | t + 421 | 20 | | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | | 9 | t + 428 | 20 | | 10 | t + 429 | 20 | | 11 | t + 430 | 20 | | 12 | t + 431 | 20 | | 13 | t + 432 | 20 | | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | | 21 | t + 440 | 20 | | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------- + Delete on public."type_BOOLEAN_oper" + -> Foreign Delete on public."type_BOOLEAN_oper" + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 19 | 1 | f | 19 | t + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 41 | 2 | f | 19 | t + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 63 | 3 | f | 19 | t + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 85 | 4 | f | 19 | t + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 107 | 5 | f | 19 | t + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 129 | 6 | f | 19 | t + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 151 | 7 | f | 19 | t + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 173 | 8 | f | 19 | t + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 195 | 9 | f | 19 | t + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 217 | 10 | f | 19 | t + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 239 | 11 | f | 19 | t + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 261 | 12 | f | 19 | t + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 283 | 13 | f | 19 | t + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 305 | 14 | f | 19 | t + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 327 | 15 | f | 19 | t + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 349 | 16 | f | 19 | t + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 371 | 17 | f | 19 | t + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 393 | 18 | f | 19 | t + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 415 | 19 | f | 19 | t + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 437 | 20 | f | 19 | t + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 459 | 21 | f | 19 | t + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 481 | 22 | f | 19 | t + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(264 rows) + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 5 other objects +NOTICE: drop cascades to 6 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" drop cascades to foreign table "type_BOOLEANpk" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to server sqlite2 diff --git a/expected/14.8/type.out b/expected/14.8/type.out index 710e1921..4d791a9b 100644 --- a/expected/14.8/type.out +++ b/expected/14.8/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 49 other objects +NOTICE: drop cascades to 50 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1351,6 +1351,7 @@ drop cascades to foreign table fts_table_docsize drop cascades to foreign table fts_table_config drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BIT" diff --git a/expected/15.3/extra/bool.out b/expected/15.3/extra/bool.out index 765ac4f9..3d9bf96c 100644 --- a/expected/15.3/extra/bool.out +++ b/expected/15.3/extra/bool.out @@ -241,11 +241,3412 @@ ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLE sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; + QUERY PLAN +---------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; + QUERY PLAN +---------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; + QUERY PLAN +------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + QUERY PLAN +------------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" b + Output: i, b, t, l, (NOT b) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + i | b | t | l | nb +----+---+---------+---+---- + 1 | t | integer | 1 | f + 2 | f | integer | 1 | t + 3 | t | text | 4 | f + 4 | f | text | 5 | t + 5 | t | text | 4 | f + 6 | f | text | 5 | t + 7 | t | text | 3 | f + 8 | t | text | 3 | f + 9 | t | text | 3 | f + 10 | f | text | 2 | t + 11 | f | text | 2 | t + 12 | f | text | 2 | t + 13 | f | text | 3 | t + 14 | f | text | 3 | t + 15 | t | text | 2 | f + 16 | t | text | 2 | f + 17 | t | text | 1 | f + 18 | t | text | 1 | f + 19 | t | text | 1 | f + 20 | t | text | 1 | f + 21 | f | text | 1 | t + 22 | f | text | 1 | t + 24 | f | integer | 1 | t + 25 | t | integer | 1 | f + 26 | | null | | +(25 rows) + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | f | 4 | f + 71 | 4 | f | 5 | f + 72 | 4 | f | 6 | f + 73 | 4 | f | 7 | f + 74 | 4 | f | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | f | 15 | f + 82 | 4 | f | 16 | f + 83 | 4 | f | 17 | f + 84 | 4 | f | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | f | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | f | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | f | 4 | f + 93 | 5 | f | 5 | f + 94 | 5 | f | 6 | f + 95 | 5 | f | 7 | f + 96 | 5 | f | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | f | 15 | f + 104 | 5 | f | 16 | f + 105 | 5 | f | 17 | f + 106 | 5 | f | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | f | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | f | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | f | 4 | f + 115 | 6 | f | 5 | f + 116 | 6 | f | 6 | f + 117 | 6 | f | 7 | f + 118 | 6 | f | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | f | 15 | f + 126 | 6 | f | 16 | f + 127 | 6 | f | 17 | f + 128 | 6 | f | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | f | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | f | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | f | 4 | f + 137 | 7 | f | 5 | f + 138 | 7 | f | 6 | f + 139 | 7 | f | 7 | f + 140 | 7 | f | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | f | 15 | f + 148 | 7 | f | 16 | f + 149 | 7 | f | 17 | f + 150 | 7 | f | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | f | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | f | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | f | 4 | f + 159 | 8 | f | 5 | f + 160 | 8 | f | 6 | f + 161 | 8 | f | 7 | f + 162 | 8 | f | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | f | 15 | f + 170 | 8 | f | 16 | f + 171 | 8 | f | 17 | f + 172 | 8 | f | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | f | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | f | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | f | 4 | f + 313 | 15 | f | 5 | f + 314 | 15 | f | 6 | f + 315 | 15 | f | 7 | f + 316 | 15 | f | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | f | 15 | f + 324 | 15 | f | 16 | f + 325 | 15 | f | 17 | f + 326 | 15 | f | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | f | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | f | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | f | 4 | f + 335 | 16 | f | 5 | f + 336 | 16 | f | 6 | f + 337 | 16 | f | 7 | f + 338 | 16 | f | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | f | 15 | f + 346 | 16 | f | 16 | f + 347 | 16 | f | 17 | f + 348 | 16 | f | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | f | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | f | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | f | 4 | f + 357 | 17 | f | 5 | f + 358 | 17 | f | 6 | f + 359 | 17 | f | 7 | f + 360 | 17 | f | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | f | 15 | f + 368 | 17 | f | 16 | f + 369 | 17 | f | 17 | f + 370 | 17 | f | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | f | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | f | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | f | 4 | f + 379 | 18 | f | 5 | f + 380 | 18 | f | 6 | f + 381 | 18 | f | 7 | f + 382 | 18 | f | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | f | 15 | f + 390 | 18 | f | 16 | f + 391 | 18 | f | 17 | f + 392 | 18 | f | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | f | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | f | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | f | 4 | f + 423 | 20 | f | 5 | f + 424 | 20 | f | 6 | f + 425 | 20 | f | 7 | f + 426 | 20 | f | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | f | 15 | f + 434 | 20 | f | 16 | f + 435 | 20 | f | 17 | f + 436 | 20 | f | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | f | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | f | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" +(3 rows) + +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 70 | f | f | f | f + 71 | f | f | f | f + 72 | f | f | f | f + 73 | f | f | f | f + 74 | f | f | f | f + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 81 | f | f | f | f + 82 | f | f | f | f + 83 | f | f | f | f + 84 | f | f | f | f + 85 | f | t | f | t + 86 | f | f | f | f + 87 | f | t | f | t + 88 | f | | f | + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 92 | f | f | f | f + 93 | f | f | f | f + 94 | f | f | f | f + 95 | f | f | f | f + 96 | f | f | f | f + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 103 | f | f | f | f + 104 | f | f | f | f + 105 | f | f | f | f + 106 | f | f | f | f + 107 | f | t | f | t + 108 | f | f | f | f + 109 | f | t | f | t + 110 | f | | f | + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 114 | f | f | f | f + 115 | f | f | f | f + 116 | f | f | f | f + 117 | f | f | f | f + 118 | f | f | f | f + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 125 | f | f | f | f + 126 | f | f | f | f + 127 | f | f | f | f + 128 | f | f | f | f + 129 | f | t | f | t + 130 | f | f | f | f + 131 | f | t | f | t + 132 | f | | f | + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 136 | f | f | f | f + 137 | f | f | f | f + 138 | f | f | f | f + 139 | f | f | f | f + 140 | f | f | f | f + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 147 | f | f | f | f + 148 | f | f | f | f + 149 | f | f | f | f + 150 | f | f | f | f + 151 | f | t | f | t + 152 | f | f | f | f + 153 | f | t | f | t + 154 | f | | f | + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 158 | f | f | f | f + 159 | f | f | f | f + 160 | f | f | f | f + 161 | f | f | f | f + 162 | f | f | f | f + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 169 | f | f | f | f + 170 | f | f | f | f + 171 | f | f | f | f + 172 | f | f | f | f + 173 | f | t | f | t + 174 | f | f | f | f + 175 | f | t | f | t + 176 | f | | f | + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 312 | f | f | f | f + 313 | f | f | f | f + 314 | f | f | f | f + 315 | f | f | f | f + 316 | f | f | f | f + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 323 | f | f | f | f + 324 | f | f | f | f + 325 | f | f | f | f + 326 | f | f | f | f + 327 | f | t | f | t + 328 | f | f | f | f + 329 | f | t | f | t + 330 | f | | f | + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 334 | f | f | f | f + 335 | f | f | f | f + 336 | f | f | f | f + 337 | f | f | f | f + 338 | f | f | f | f + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 345 | f | f | f | f + 346 | f | f | f | f + 347 | f | f | f | f + 348 | f | f | f | f + 349 | f | t | f | t + 350 | f | f | f | f + 351 | f | t | f | t + 352 | f | | f | + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 356 | f | f | f | f + 357 | f | f | f | f + 358 | f | f | f | f + 359 | f | f | f | f + 360 | f | f | f | f + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 367 | f | f | f | f + 368 | f | f | f | f + 369 | f | f | f | f + 370 | f | f | f | f + 371 | f | t | f | t + 372 | f | f | f | f + 373 | f | t | f | t + 374 | f | | f | + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 378 | f | f | f | f + 379 | f | f | f | f + 380 | f | f | f | f + 381 | f | f | f | f + 382 | f | f | f | f + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 389 | f | f | f | f + 390 | f | f | f | f + 391 | f | f | f | f + 392 | f | f | f | f + 393 | f | t | f | t + 394 | f | f | f | f + 395 | f | t | f | t + 396 | f | | f | + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 422 | f | f | f | f + 423 | f | f | f | f + 424 | f | f | f | f + 425 | f | f | f | f + 426 | f | f | f | f + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 433 | f | f | f | f + 434 | f | f | f | f + 435 | f | f | f | f + 436 | f | f | f | f + 437 | f | t | f | t + 438 | f | f | f | f + 439 | f | t | f | t + 440 | f | | f | + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 466 | | f | f | + 467 | | f | f | + 468 | | f | f | + 469 | | f | f | + 470 | | f | f | + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 477 | | f | f | + 478 | | f | f | + 479 | | f | f | + 480 | | f | f | + 481 | | t | | t + 482 | | f | f | + 483 | | t | | t + 484 | | | | +(484 rows) + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 19 | t | t | t | t + 21 | t | t | t | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 41 | t | t | t | t + 43 | t | t | t | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 63 | t | t | t | t + 65 | t | t | t | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 195 | t | t | t | t + 197 | t | t | t | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 217 | t | t | t | t + 219 | t | t | t | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 239 | t | t | t | t + 241 | t | t | t | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 261 | t | t | t | t + 263 | t | t | t | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 283 | t | t | t | t + 285 | t | t | t | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 305 | t | t | t | t + 307 | t | t | t | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 415 | t | t | t | t + 417 | t | t | t | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 459 | t | t | t | t + 461 | t | t | t | t +(121 rows) + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 85 | f | t | f | t + 87 | f | t | f | t + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 107 | f | t | f | t + 109 | f | t | f | t + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 129 | f | t | f | t + 131 | f | t | f | t + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 151 | f | t | f | t + 153 | f | t | f | t + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 173 | f | t | f | t + 175 | f | t | f | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 327 | f | t | f | t + 329 | f | t | f | t + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 349 | f | t | f | t + 351 | f | t | f | t + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 371 | f | t | f | t + 373 | f | t | f | t + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 393 | f | t | f | t + 395 | f | t | f | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 437 | f | t | f | t + 439 | f | t | f | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 481 | | t | | t + 483 | | t | | t +(363 rows) + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | | 1 | t + 68 | 4 | | 2 | t + 69 | 4 | | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | | 9 | t + 76 | 4 | | 10 | t + 77 | 4 | | 11 | t + 78 | 4 | | 12 | t + 79 | 4 | | 13 | t + 80 | 4 | | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | | 21 | t + 88 | 4 | | 22 | + 89 | 5 | | 1 | t + 90 | 5 | | 2 | t + 91 | 5 | | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | | 9 | t + 98 | 5 | | 10 | t + 99 | 5 | | 11 | t + 100 | 5 | | 12 | t + 101 | 5 | | 13 | t + 102 | 5 | | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | | 21 | t + 110 | 5 | | 22 | + 111 | 6 | | 1 | t + 112 | 6 | | 2 | t + 113 | 6 | | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | | 9 | t + 120 | 6 | | 10 | t + 121 | 6 | | 11 | t + 122 | 6 | | 12 | t + 123 | 6 | | 13 | t + 124 | 6 | | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | | 21 | t + 132 | 6 | | 22 | + 133 | 7 | | 1 | t + 134 | 7 | | 2 | t + 135 | 7 | | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | | 9 | t + 142 | 7 | | 10 | t + 143 | 7 | | 11 | t + 144 | 7 | | 12 | t + 145 | 7 | | 13 | t + 146 | 7 | | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | | 21 | t + 154 | 7 | | 22 | + 155 | 8 | | 1 | t + 156 | 8 | | 2 | t + 157 | 8 | | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | | 9 | t + 164 | 8 | | 10 | t + 165 | 8 | | 11 | t + 166 | 8 | | 12 | t + 167 | 8 | | 13 | t + 168 | 8 | | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | | 21 | t + 176 | 8 | | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | | 1 | t + 310 | 15 | | 2 | t + 311 | 15 | | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | | 9 | t + 318 | 15 | | 10 | t + 319 | 15 | | 11 | t + 320 | 15 | | 12 | t + 321 | 15 | | 13 | t + 322 | 15 | | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | | 21 | t + 330 | 15 | | 22 | + 331 | 16 | | 1 | t + 332 | 16 | | 2 | t + 333 | 16 | | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | | 9 | t + 340 | 16 | | 10 | t + 341 | 16 | | 11 | t + 342 | 16 | | 12 | t + 343 | 16 | | 13 | t + 344 | 16 | | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | | 21 | t + 352 | 16 | | 22 | + 353 | 17 | | 1 | t + 354 | 17 | | 2 | t + 355 | 17 | | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | | 9 | t + 362 | 17 | | 10 | t + 363 | 17 | | 11 | t + 364 | 17 | | 12 | t + 365 | 17 | | 13 | t + 366 | 17 | | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | | 21 | t + 374 | 17 | | 22 | + 375 | 18 | | 1 | t + 376 | 18 | | 2 | t + 377 | 18 | | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | | 9 | t + 384 | 18 | | 10 | t + 385 | 18 | | 11 | t + 386 | 18 | | 12 | t + 387 | 18 | | 13 | t + 388 | 18 | | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | | 21 | t + 396 | 18 | | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | | 1 | t + 420 | 20 | | 2 | t + 421 | 20 | | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | | 9 | t + 428 | 20 | | 10 | t + 429 | 20 | | 11 | t + 430 | 20 | | 12 | t + 431 | 20 | | 13 | t + 432 | 20 | | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | | 21 | t + 440 | 20 | | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------- + Delete on public."type_BOOLEAN_oper" + -> Foreign Delete on public."type_BOOLEAN_oper" + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 19 | 1 | f | 19 | t + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 41 | 2 | f | 19 | t + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 63 | 3 | f | 19 | t + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 85 | 4 | f | 19 | t + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 107 | 5 | f | 19 | t + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 129 | 6 | f | 19 | t + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 151 | 7 | f | 19 | t + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 173 | 8 | f | 19 | t + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 195 | 9 | f | 19 | t + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 217 | 10 | f | 19 | t + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 239 | 11 | f | 19 | t + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 261 | 12 | f | 19 | t + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 283 | 13 | f | 19 | t + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 305 | 14 | f | 19 | t + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 327 | 15 | f | 19 | t + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 349 | 16 | f | 19 | t + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 371 | 17 | f | 19 | t + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 393 | 18 | f | 19 | t + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 415 | 19 | f | 19 | t + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 437 | 20 | f | 19 | t + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 459 | 21 | f | 19 | t + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 481 | 22 | f | 19 | t + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(264 rows) + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 5 other objects +NOTICE: drop cascades to 6 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" drop cascades to foreign table "type_BOOLEANpk" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to server sqlite2 diff --git a/expected/15.3/type.out b/expected/15.3/type.out index 710e1921..4d791a9b 100644 --- a/expected/15.3/type.out +++ b/expected/15.3/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 49 other objects +NOTICE: drop cascades to 50 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1351,6 +1351,7 @@ drop cascades to foreign table fts_table_docsize drop cascades to foreign table fts_table_config drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BIT" diff --git a/expected/16.0/extra/bool.out b/expected/16.0/extra/bool.out index 765ac4f9..3d9bf96c 100644 --- a/expected/16.0/extra/bool.out +++ b/expected/16.0/extra/bool.out @@ -241,11 +241,3412 @@ ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: type_BOOLE sql=INSERT INTO main."type_BOOLEANpk"(`col`) VALUES (?) --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" +HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + i | b | t | l +----+---+---------+--- + 1 | t | integer | 1 + 2 | f | integer | 1 + 3 | t | text | 4 + 4 | f | text | 5 + 5 | t | text | 4 + 6 | f | text | 5 + 7 | t | text | 3 + 8 | t | text | 3 + 9 | t | text | 3 + 10 | f | text | 2 + 11 | f | text | 2 + 12 | f | text | 2 + 13 | f | text | 3 + 14 | f | text | 3 + 15 | t | text | 2 + 16 | t | text | 2 + 17 | t | text | 1 + 18 | t | text | 1 + 19 | t | text | 1 + 20 | t | text | 1 + 21 | f | text | 1 + 22 | f | text | 1 + 24 | f | integer | 1 + 25 | t | integer | 1 + 26 | | null | +(25 rows) + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; + QUERY PLAN +---------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; + QUERY PLAN +---------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN" + -> Foreign Update on public."type_BOOLEAN" + SQLite query: UPDATE main."type_BOOLEAN" SET `b` = NULL WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; + QUERY PLAN +------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE (sqlite_fdw_bool(`b`)) +(3 rows) + +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + QUERY PLAN +------------------------------------------------------------------------------------------ + Delete on public."type_BOOLEAN" + -> Foreign Delete on public."type_BOOLEAN" + SQLite query: DELETE FROM main."type_BOOLEAN" WHERE ((NOT sqlite_fdw_bool(`b`))) +(3 rows) + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + QUERY PLAN +-------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN+" b + Output: i, b, t, l, (NOT b) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b`), `t`, `l` FROM main."type_BOOLEAN+" +(3 rows) + +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + i | b | t | l | nb +----+---+---------+---+---- + 1 | t | integer | 1 | f + 2 | f | integer | 1 | t + 3 | t | text | 4 | f + 4 | f | text | 5 | t + 5 | t | text | 4 | f + 6 | f | text | 5 | t + 7 | t | text | 3 | f + 8 | t | text | 3 | f + 9 | t | text | 3 | f + 10 | f | text | 2 | t + 11 | f | text | 2 | t + 12 | f | text | 2 | t + 13 | f | text | 3 | t + 14 | f | text | 3 | t + 15 | t | text | 2 | f + 16 | t | text | 2 | f + 17 | t | text | 1 | f + 18 | t | text | 1 | f + 19 | t | text | 1 | f + 20 | t | text | 1 | f + 21 | f | text | 1 | t + 22 | f | text | 1 | t + 24 | f | integer | 1 | t + 25 | t | integer | 1 | f + 26 | | null | | +(25 rows) + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | f | 4 | f + 71 | 4 | f | 5 | f + 72 | 4 | f | 6 | f + 73 | 4 | f | 7 | f + 74 | 4 | f | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | f | 15 | f + 82 | 4 | f | 16 | f + 83 | 4 | f | 17 | f + 84 | 4 | f | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | f | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | f | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | f | 4 | f + 93 | 5 | f | 5 | f + 94 | 5 | f | 6 | f + 95 | 5 | f | 7 | f + 96 | 5 | f | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | f | 15 | f + 104 | 5 | f | 16 | f + 105 | 5 | f | 17 | f + 106 | 5 | f | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | f | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | f | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | f | 4 | f + 115 | 6 | f | 5 | f + 116 | 6 | f | 6 | f + 117 | 6 | f | 7 | f + 118 | 6 | f | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | f | 15 | f + 126 | 6 | f | 16 | f + 127 | 6 | f | 17 | f + 128 | 6 | f | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | f | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | f | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | f | 4 | f + 137 | 7 | f | 5 | f + 138 | 7 | f | 6 | f + 139 | 7 | f | 7 | f + 140 | 7 | f | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | f | 15 | f + 148 | 7 | f | 16 | f + 149 | 7 | f | 17 | f + 150 | 7 | f | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | f | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | f | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | f | 4 | f + 159 | 8 | f | 5 | f + 160 | 8 | f | 6 | f + 161 | 8 | f | 7 | f + 162 | 8 | f | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | f | 15 | f + 170 | 8 | f | 16 | f + 171 | 8 | f | 17 | f + 172 | 8 | f | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | f | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | f | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | f | 4 | f + 313 | 15 | f | 5 | f + 314 | 15 | f | 6 | f + 315 | 15 | f | 7 | f + 316 | 15 | f | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | f | 15 | f + 324 | 15 | f | 16 | f + 325 | 15 | f | 17 | f + 326 | 15 | f | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | f | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | f | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | f | 4 | f + 335 | 16 | f | 5 | f + 336 | 16 | f | 6 | f + 337 | 16 | f | 7 | f + 338 | 16 | f | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | f | 15 | f + 346 | 16 | f | 16 | f + 347 | 16 | f | 17 | f + 348 | 16 | f | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | f | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | f | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | f | 4 | f + 357 | 17 | f | 5 | f + 358 | 17 | f | 6 | f + 359 | 17 | f | 7 | f + 360 | 17 | f | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | f | 15 | f + 368 | 17 | f | 16 | f + 369 | 17 | f | 17 | f + 370 | 17 | f | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | f | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | f | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | f | 4 | f + 379 | 18 | f | 5 | f + 380 | 18 | f | 6 | f + 381 | 18 | f | 7 | f + 382 | 18 | f | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | f | 15 | f + 390 | 18 | f | 16 | f + 391 | 18 | f | 17 | f + 392 | 18 | f | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | f | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | f | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | f | 4 | f + 423 | 20 | f | 5 | f + 424 | 20 | f | 6 | f + 425 | 20 | f | 7 | f + 426 | 20 | f | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | f | 15 | f + 434 | 20 | f | 16 | f + 435 | 20 | f | 17 | f + 436 | 20 | f | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | f | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | f | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" +(3 rows) + +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 70 | f | f | f | f + 71 | f | f | f | f + 72 | f | f | f | f + 73 | f | f | f | f + 74 | f | f | f | f + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 81 | f | f | f | f + 82 | f | f | f | f + 83 | f | f | f | f + 84 | f | f | f | f + 85 | f | t | f | t + 86 | f | f | f | f + 87 | f | t | f | t + 88 | f | | f | + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 92 | f | f | f | f + 93 | f | f | f | f + 94 | f | f | f | f + 95 | f | f | f | f + 96 | f | f | f | f + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 103 | f | f | f | f + 104 | f | f | f | f + 105 | f | f | f | f + 106 | f | f | f | f + 107 | f | t | f | t + 108 | f | f | f | f + 109 | f | t | f | t + 110 | f | | f | + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 114 | f | f | f | f + 115 | f | f | f | f + 116 | f | f | f | f + 117 | f | f | f | f + 118 | f | f | f | f + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 125 | f | f | f | f + 126 | f | f | f | f + 127 | f | f | f | f + 128 | f | f | f | f + 129 | f | t | f | t + 130 | f | f | f | f + 131 | f | t | f | t + 132 | f | | f | + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 136 | f | f | f | f + 137 | f | f | f | f + 138 | f | f | f | f + 139 | f | f | f | f + 140 | f | f | f | f + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 147 | f | f | f | f + 148 | f | f | f | f + 149 | f | f | f | f + 150 | f | f | f | f + 151 | f | t | f | t + 152 | f | f | f | f + 153 | f | t | f | t + 154 | f | | f | + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 158 | f | f | f | f + 159 | f | f | f | f + 160 | f | f | f | f + 161 | f | f | f | f + 162 | f | f | f | f + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 169 | f | f | f | f + 170 | f | f | f | f + 171 | f | f | f | f + 172 | f | f | f | f + 173 | f | t | f | t + 174 | f | f | f | f + 175 | f | t | f | t + 176 | f | | f | + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 312 | f | f | f | f + 313 | f | f | f | f + 314 | f | f | f | f + 315 | f | f | f | f + 316 | f | f | f | f + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 323 | f | f | f | f + 324 | f | f | f | f + 325 | f | f | f | f + 326 | f | f | f | f + 327 | f | t | f | t + 328 | f | f | f | f + 329 | f | t | f | t + 330 | f | | f | + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 334 | f | f | f | f + 335 | f | f | f | f + 336 | f | f | f | f + 337 | f | f | f | f + 338 | f | f | f | f + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 345 | f | f | f | f + 346 | f | f | f | f + 347 | f | f | f | f + 348 | f | f | f | f + 349 | f | t | f | t + 350 | f | f | f | f + 351 | f | t | f | t + 352 | f | | f | + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 356 | f | f | f | f + 357 | f | f | f | f + 358 | f | f | f | f + 359 | f | f | f | f + 360 | f | f | f | f + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 367 | f | f | f | f + 368 | f | f | f | f + 369 | f | f | f | f + 370 | f | f | f | f + 371 | f | t | f | t + 372 | f | f | f | f + 373 | f | t | f | t + 374 | f | | f | + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 378 | f | f | f | f + 379 | f | f | f | f + 380 | f | f | f | f + 381 | f | f | f | f + 382 | f | f | f | f + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 389 | f | f | f | f + 390 | f | f | f | f + 391 | f | f | f | f + 392 | f | f | f | f + 393 | f | t | f | t + 394 | f | f | f | f + 395 | f | t | f | t + 396 | f | | f | + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 422 | f | f | f | f + 423 | f | f | f | f + 424 | f | f | f | f + 425 | f | f | f | f + 426 | f | f | f | f + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 433 | f | f | f | f + 434 | f | f | f | f + 435 | f | f | f | f + 436 | f | f | f | f + 437 | f | t | f | t + 438 | f | f | f | f + 439 | f | t | f | t + 440 | f | | f | + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 466 | | f | f | + 467 | | f | f | + 468 | | f | f | + 469 | | f | f | + 470 | | f | f | + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 477 | | f | f | + 478 | | f | f | + 479 | | f | f | + 480 | | f | f | + 481 | | t | | t + 482 | | f | f | + 483 | | t | | t + 484 | | | | +(484 rows) + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 19 | t | t | t | t + 21 | t | t | t | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 41 | t | t | t | t + 43 | t | t | t | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 63 | t | t | t | t + 65 | t | t | t | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 195 | t | t | t | t + 197 | t | t | t | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 217 | t | t | t | t + 219 | t | t | t | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 239 | t | t | t | t + 241 | t | t | t | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 261 | t | t | t | t + 263 | t | t | t | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 283 | t | t | t | t + 285 | t | t | t | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 305 | t | t | t | t + 307 | t | t | t | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 415 | t | t | t | t + 417 | t | t | t | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 459 | t | t | t | t + 461 | t | t | t | t +(121 rows) + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_BOOLEAN_oper" + Output: i, b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + i | b1 | b2 | a | o +-----+----+----+---+--- + 1 | t | t | t | t + 2 | t | t | t | t + 3 | t | t | t | t + 4 | t | f | f | t + 5 | t | f | f | t + 6 | t | f | f | t + 7 | t | f | f | t + 8 | t | f | f | t + 9 | t | t | t | t + 10 | t | t | t | t + 11 | t | t | t | t + 12 | t | t | t | t + 13 | t | t | t | t + 14 | t | t | t | t + 15 | t | f | f | t + 16 | t | f | f | t + 17 | t | f | f | t + 18 | t | f | f | t + 19 | t | t | t | t + 20 | t | f | f | t + 21 | t | t | t | t + 22 | t | | | t + 23 | t | t | t | t + 24 | t | t | t | t + 25 | t | t | t | t + 26 | t | f | f | t + 27 | t | f | f | t + 28 | t | f | f | t + 29 | t | f | f | t + 30 | t | f | f | t + 31 | t | t | t | t + 32 | t | t | t | t + 33 | t | t | t | t + 34 | t | t | t | t + 35 | t | t | t | t + 36 | t | t | t | t + 37 | t | f | f | t + 38 | t | f | f | t + 39 | t | f | f | t + 40 | t | f | f | t + 41 | t | t | t | t + 42 | t | f | f | t + 43 | t | t | t | t + 44 | t | | | t + 45 | t | t | t | t + 46 | t | t | t | t + 47 | t | t | t | t + 48 | t | f | f | t + 49 | t | f | f | t + 50 | t | f | f | t + 51 | t | f | f | t + 52 | t | f | f | t + 53 | t | t | t | t + 54 | t | t | t | t + 55 | t | t | t | t + 56 | t | t | t | t + 57 | t | t | t | t + 58 | t | t | t | t + 59 | t | f | f | t + 60 | t | f | f | t + 61 | t | f | f | t + 62 | t | f | f | t + 63 | t | t | t | t + 64 | t | f | f | t + 65 | t | t | t | t + 66 | t | | | t + 67 | f | t | f | t + 68 | f | t | f | t + 69 | f | t | f | t + 75 | f | t | f | t + 76 | f | t | f | t + 77 | f | t | f | t + 78 | f | t | f | t + 79 | f | t | f | t + 80 | f | t | f | t + 85 | f | t | f | t + 87 | f | t | f | t + 89 | f | t | f | t + 90 | f | t | f | t + 91 | f | t | f | t + 97 | f | t | f | t + 98 | f | t | f | t + 99 | f | t | f | t + 100 | f | t | f | t + 101 | f | t | f | t + 102 | f | t | f | t + 107 | f | t | f | t + 109 | f | t | f | t + 111 | f | t | f | t + 112 | f | t | f | t + 113 | f | t | f | t + 119 | f | t | f | t + 120 | f | t | f | t + 121 | f | t | f | t + 122 | f | t | f | t + 123 | f | t | f | t + 124 | f | t | f | t + 129 | f | t | f | t + 131 | f | t | f | t + 133 | f | t | f | t + 134 | f | t | f | t + 135 | f | t | f | t + 141 | f | t | f | t + 142 | f | t | f | t + 143 | f | t | f | t + 144 | f | t | f | t + 145 | f | t | f | t + 146 | f | t | f | t + 151 | f | t | f | t + 153 | f | t | f | t + 155 | f | t | f | t + 156 | f | t | f | t + 157 | f | t | f | t + 163 | f | t | f | t + 164 | f | t | f | t + 165 | f | t | f | t + 166 | f | t | f | t + 167 | f | t | f | t + 168 | f | t | f | t + 173 | f | t | f | t + 175 | f | t | f | t + 177 | t | t | t | t + 178 | t | t | t | t + 179 | t | t | t | t + 180 | t | f | f | t + 181 | t | f | f | t + 182 | t | f | f | t + 183 | t | f | f | t + 184 | t | f | f | t + 185 | t | t | t | t + 186 | t | t | t | t + 187 | t | t | t | t + 188 | t | t | t | t + 189 | t | t | t | t + 190 | t | t | t | t + 191 | t | f | f | t + 192 | t | f | f | t + 193 | t | f | f | t + 194 | t | f | f | t + 195 | t | t | t | t + 196 | t | f | f | t + 197 | t | t | t | t + 198 | t | | | t + 199 | t | t | t | t + 200 | t | t | t | t + 201 | t | t | t | t + 202 | t | f | f | t + 203 | t | f | f | t + 204 | t | f | f | t + 205 | t | f | f | t + 206 | t | f | f | t + 207 | t | t | t | t + 208 | t | t | t | t + 209 | t | t | t | t + 210 | t | t | t | t + 211 | t | t | t | t + 212 | t | t | t | t + 213 | t | f | f | t + 214 | t | f | f | t + 215 | t | f | f | t + 216 | t | f | f | t + 217 | t | t | t | t + 218 | t | f | f | t + 219 | t | t | t | t + 220 | t | | | t + 221 | t | t | t | t + 222 | t | t | t | t + 223 | t | t | t | t + 224 | t | f | f | t + 225 | t | f | f | t + 226 | t | f | f | t + 227 | t | f | f | t + 228 | t | f | f | t + 229 | t | t | t | t + 230 | t | t | t | t + 231 | t | t | t | t + 232 | t | t | t | t + 233 | t | t | t | t + 234 | t | t | t | t + 235 | t | f | f | t + 236 | t | f | f | t + 237 | t | f | f | t + 238 | t | f | f | t + 239 | t | t | t | t + 240 | t | f | f | t + 241 | t | t | t | t + 242 | t | | | t + 243 | t | t | t | t + 244 | t | t | t | t + 245 | t | t | t | t + 246 | t | f | f | t + 247 | t | f | f | t + 248 | t | f | f | t + 249 | t | f | f | t + 250 | t | f | f | t + 251 | t | t | t | t + 252 | t | t | t | t + 253 | t | t | t | t + 254 | t | t | t | t + 255 | t | t | t | t + 256 | t | t | t | t + 257 | t | f | f | t + 258 | t | f | f | t + 259 | t | f | f | t + 260 | t | f | f | t + 261 | t | t | t | t + 262 | t | f | f | t + 263 | t | t | t | t + 264 | t | | | t + 265 | t | t | t | t + 266 | t | t | t | t + 267 | t | t | t | t + 268 | t | f | f | t + 269 | t | f | f | t + 270 | t | f | f | t + 271 | t | f | f | t + 272 | t | f | f | t + 273 | t | t | t | t + 274 | t | t | t | t + 275 | t | t | t | t + 276 | t | t | t | t + 277 | t | t | t | t + 278 | t | t | t | t + 279 | t | f | f | t + 280 | t | f | f | t + 281 | t | f | f | t + 282 | t | f | f | t + 283 | t | t | t | t + 284 | t | f | f | t + 285 | t | t | t | t + 286 | t | | | t + 287 | t | t | t | t + 288 | t | t | t | t + 289 | t | t | t | t + 290 | t | f | f | t + 291 | t | f | f | t + 292 | t | f | f | t + 293 | t | f | f | t + 294 | t | f | f | t + 295 | t | t | t | t + 296 | t | t | t | t + 297 | t | t | t | t + 298 | t | t | t | t + 299 | t | t | t | t + 300 | t | t | t | t + 301 | t | f | f | t + 302 | t | f | f | t + 303 | t | f | f | t + 304 | t | f | f | t + 305 | t | t | t | t + 306 | t | f | f | t + 307 | t | t | t | t + 308 | t | | | t + 309 | f | t | f | t + 310 | f | t | f | t + 311 | f | t | f | t + 317 | f | t | f | t + 318 | f | t | f | t + 319 | f | t | f | t + 320 | f | t | f | t + 321 | f | t | f | t + 322 | f | t | f | t + 327 | f | t | f | t + 329 | f | t | f | t + 331 | f | t | f | t + 332 | f | t | f | t + 333 | f | t | f | t + 339 | f | t | f | t + 340 | f | t | f | t + 341 | f | t | f | t + 342 | f | t | f | t + 343 | f | t | f | t + 344 | f | t | f | t + 349 | f | t | f | t + 351 | f | t | f | t + 353 | f | t | f | t + 354 | f | t | f | t + 355 | f | t | f | t + 361 | f | t | f | t + 362 | f | t | f | t + 363 | f | t | f | t + 364 | f | t | f | t + 365 | f | t | f | t + 366 | f | t | f | t + 371 | f | t | f | t + 373 | f | t | f | t + 375 | f | t | f | t + 376 | f | t | f | t + 377 | f | t | f | t + 383 | f | t | f | t + 384 | f | t | f | t + 385 | f | t | f | t + 386 | f | t | f | t + 387 | f | t | f | t + 388 | f | t | f | t + 393 | f | t | f | t + 395 | f | t | f | t + 397 | t | t | t | t + 398 | t | t | t | t + 399 | t | t | t | t + 400 | t | f | f | t + 401 | t | f | f | t + 402 | t | f | f | t + 403 | t | f | f | t + 404 | t | f | f | t + 405 | t | t | t | t + 406 | t | t | t | t + 407 | t | t | t | t + 408 | t | t | t | t + 409 | t | t | t | t + 410 | t | t | t | t + 411 | t | f | f | t + 412 | t | f | f | t + 413 | t | f | f | t + 414 | t | f | f | t + 415 | t | t | t | t + 416 | t | f | f | t + 417 | t | t | t | t + 418 | t | | | t + 419 | f | t | f | t + 420 | f | t | f | t + 421 | f | t | f | t + 427 | f | t | f | t + 428 | f | t | f | t + 429 | f | t | f | t + 430 | f | t | f | t + 431 | f | t | f | t + 432 | f | t | f | t + 437 | f | t | f | t + 439 | f | t | f | t + 441 | t | t | t | t + 442 | t | t | t | t + 443 | t | t | t | t + 444 | t | f | f | t + 445 | t | f | f | t + 446 | t | f | f | t + 447 | t | f | f | t + 448 | t | f | f | t + 449 | t | t | t | t + 450 | t | t | t | t + 451 | t | t | t | t + 452 | t | t | t | t + 453 | t | t | t | t + 454 | t | t | t | t + 455 | t | f | f | t + 456 | t | f | f | t + 457 | t | f | f | t + 458 | t | f | f | t + 459 | t | t | t | t + 460 | t | f | f | t + 461 | t | t | t | t + 462 | t | | | t + 463 | | t | | t + 464 | | t | | t + 465 | | t | | t + 471 | | t | | t + 472 | | t | | t + 473 | | t | | t + 474 | | t | | t + 475 | | t | | t + 476 | | t | | t + 481 | | t | | t + 483 | | t | | t +(363 rows) + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | t | 1 | t + 2 | 1 | t | 2 | t + 3 | 1 | t | 3 | t + 4 | 1 | t | 4 | f + 5 | 1 | t | 5 | f + 6 | 1 | t | 6 | f + 7 | 1 | t | 7 | f + 8 | 1 | t | 8 | f + 9 | 1 | t | 9 | t + 10 | 1 | t | 10 | t + 11 | 1 | t | 11 | t + 12 | 1 | t | 12 | t + 13 | 1 | t | 13 | t + 14 | 1 | t | 14 | t + 15 | 1 | t | 15 | f + 16 | 1 | t | 16 | f + 17 | 1 | t | 17 | f + 18 | 1 | t | 18 | f + 19 | 1 | t | 19 | t + 20 | 1 | t | 20 | f + 21 | 1 | t | 21 | t + 22 | 1 | t | 22 | + 23 | 2 | t | 1 | t + 24 | 2 | t | 2 | t + 25 | 2 | t | 3 | t + 26 | 2 | t | 4 | f + 27 | 2 | t | 5 | f + 28 | 2 | t | 6 | f + 29 | 2 | t | 7 | f + 30 | 2 | t | 8 | f + 31 | 2 | t | 9 | t + 32 | 2 | t | 10 | t + 33 | 2 | t | 11 | t + 34 | 2 | t | 12 | t + 35 | 2 | t | 13 | t + 36 | 2 | t | 14 | t + 37 | 2 | t | 15 | f + 38 | 2 | t | 16 | f + 39 | 2 | t | 17 | f + 40 | 2 | t | 18 | f + 41 | 2 | t | 19 | t + 42 | 2 | t | 20 | f + 43 | 2 | t | 21 | t + 44 | 2 | t | 22 | + 45 | 3 | t | 1 | t + 46 | 3 | t | 2 | t + 47 | 3 | t | 3 | t + 48 | 3 | t | 4 | f + 49 | 3 | t | 5 | f + 50 | 3 | t | 6 | f + 51 | 3 | t | 7 | f + 52 | 3 | t | 8 | f + 53 | 3 | t | 9 | t + 54 | 3 | t | 10 | t + 55 | 3 | t | 11 | t + 56 | 3 | t | 12 | t + 57 | 3 | t | 13 | t + 58 | 3 | t | 14 | t + 59 | 3 | t | 15 | f + 60 | 3 | t | 16 | f + 61 | 3 | t | 17 | f + 62 | 3 | t | 18 | f + 63 | 3 | t | 19 | t + 64 | 3 | t | 20 | f + 65 | 3 | t | 21 | t + 66 | 3 | t | 22 | + 67 | 4 | | 1 | t + 68 | 4 | | 2 | t + 69 | 4 | | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | | 9 | t + 76 | 4 | | 10 | t + 77 | 4 | | 11 | t + 78 | 4 | | 12 | t + 79 | 4 | | 13 | t + 80 | 4 | | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | | 21 | t + 88 | 4 | | 22 | + 89 | 5 | | 1 | t + 90 | 5 | | 2 | t + 91 | 5 | | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | | 9 | t + 98 | 5 | | 10 | t + 99 | 5 | | 11 | t + 100 | 5 | | 12 | t + 101 | 5 | | 13 | t + 102 | 5 | | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | | 21 | t + 110 | 5 | | 22 | + 111 | 6 | | 1 | t + 112 | 6 | | 2 | t + 113 | 6 | | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | | 9 | t + 120 | 6 | | 10 | t + 121 | 6 | | 11 | t + 122 | 6 | | 12 | t + 123 | 6 | | 13 | t + 124 | 6 | | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | | 21 | t + 132 | 6 | | 22 | + 133 | 7 | | 1 | t + 134 | 7 | | 2 | t + 135 | 7 | | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | | 9 | t + 142 | 7 | | 10 | t + 143 | 7 | | 11 | t + 144 | 7 | | 12 | t + 145 | 7 | | 13 | t + 146 | 7 | | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | | 21 | t + 154 | 7 | | 22 | + 155 | 8 | | 1 | t + 156 | 8 | | 2 | t + 157 | 8 | | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | | 9 | t + 164 | 8 | | 10 | t + 165 | 8 | | 11 | t + 166 | 8 | | 12 | t + 167 | 8 | | 13 | t + 168 | 8 | | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | | 21 | t + 176 | 8 | | 22 | + 177 | 9 | t | 1 | t + 178 | 9 | t | 2 | t + 179 | 9 | t | 3 | t + 180 | 9 | t | 4 | f + 181 | 9 | t | 5 | f + 182 | 9 | t | 6 | f + 183 | 9 | t | 7 | f + 184 | 9 | t | 8 | f + 185 | 9 | t | 9 | t + 186 | 9 | t | 10 | t + 187 | 9 | t | 11 | t + 188 | 9 | t | 12 | t + 189 | 9 | t | 13 | t + 190 | 9 | t | 14 | t + 191 | 9 | t | 15 | f + 192 | 9 | t | 16 | f + 193 | 9 | t | 17 | f + 194 | 9 | t | 18 | f + 195 | 9 | t | 19 | t + 196 | 9 | t | 20 | f + 197 | 9 | t | 21 | t + 198 | 9 | t | 22 | + 199 | 10 | t | 1 | t + 200 | 10 | t | 2 | t + 201 | 10 | t | 3 | t + 202 | 10 | t | 4 | f + 203 | 10 | t | 5 | f + 204 | 10 | t | 6 | f + 205 | 10 | t | 7 | f + 206 | 10 | t | 8 | f + 207 | 10 | t | 9 | t + 208 | 10 | t | 10 | t + 209 | 10 | t | 11 | t + 210 | 10 | t | 12 | t + 211 | 10 | t | 13 | t + 212 | 10 | t | 14 | t + 213 | 10 | t | 15 | f + 214 | 10 | t | 16 | f + 215 | 10 | t | 17 | f + 216 | 10 | t | 18 | f + 217 | 10 | t | 19 | t + 218 | 10 | t | 20 | f + 219 | 10 | t | 21 | t + 220 | 10 | t | 22 | + 221 | 11 | t | 1 | t + 222 | 11 | t | 2 | t + 223 | 11 | t | 3 | t + 224 | 11 | t | 4 | f + 225 | 11 | t | 5 | f + 226 | 11 | t | 6 | f + 227 | 11 | t | 7 | f + 228 | 11 | t | 8 | f + 229 | 11 | t | 9 | t + 230 | 11 | t | 10 | t + 231 | 11 | t | 11 | t + 232 | 11 | t | 12 | t + 233 | 11 | t | 13 | t + 234 | 11 | t | 14 | t + 235 | 11 | t | 15 | f + 236 | 11 | t | 16 | f + 237 | 11 | t | 17 | f + 238 | 11 | t | 18 | f + 239 | 11 | t | 19 | t + 240 | 11 | t | 20 | f + 241 | 11 | t | 21 | t + 242 | 11 | t | 22 | + 243 | 12 | t | 1 | t + 244 | 12 | t | 2 | t + 245 | 12 | t | 3 | t + 246 | 12 | t | 4 | f + 247 | 12 | t | 5 | f + 248 | 12 | t | 6 | f + 249 | 12 | t | 7 | f + 250 | 12 | t | 8 | f + 251 | 12 | t | 9 | t + 252 | 12 | t | 10 | t + 253 | 12 | t | 11 | t + 254 | 12 | t | 12 | t + 255 | 12 | t | 13 | t + 256 | 12 | t | 14 | t + 257 | 12 | t | 15 | f + 258 | 12 | t | 16 | f + 259 | 12 | t | 17 | f + 260 | 12 | t | 18 | f + 261 | 12 | t | 19 | t + 262 | 12 | t | 20 | f + 263 | 12 | t | 21 | t + 264 | 12 | t | 22 | + 265 | 13 | t | 1 | t + 266 | 13 | t | 2 | t + 267 | 13 | t | 3 | t + 268 | 13 | t | 4 | f + 269 | 13 | t | 5 | f + 270 | 13 | t | 6 | f + 271 | 13 | t | 7 | f + 272 | 13 | t | 8 | f + 273 | 13 | t | 9 | t + 274 | 13 | t | 10 | t + 275 | 13 | t | 11 | t + 276 | 13 | t | 12 | t + 277 | 13 | t | 13 | t + 278 | 13 | t | 14 | t + 279 | 13 | t | 15 | f + 280 | 13 | t | 16 | f + 281 | 13 | t | 17 | f + 282 | 13 | t | 18 | f + 283 | 13 | t | 19 | t + 284 | 13 | t | 20 | f + 285 | 13 | t | 21 | t + 286 | 13 | t | 22 | + 287 | 14 | t | 1 | t + 288 | 14 | t | 2 | t + 289 | 14 | t | 3 | t + 290 | 14 | t | 4 | f + 291 | 14 | t | 5 | f + 292 | 14 | t | 6 | f + 293 | 14 | t | 7 | f + 294 | 14 | t | 8 | f + 295 | 14 | t | 9 | t + 296 | 14 | t | 10 | t + 297 | 14 | t | 11 | t + 298 | 14 | t | 12 | t + 299 | 14 | t | 13 | t + 300 | 14 | t | 14 | t + 301 | 14 | t | 15 | f + 302 | 14 | t | 16 | f + 303 | 14 | t | 17 | f + 304 | 14 | t | 18 | f + 305 | 14 | t | 19 | t + 306 | 14 | t | 20 | f + 307 | 14 | t | 21 | t + 308 | 14 | t | 22 | + 309 | 15 | | 1 | t + 310 | 15 | | 2 | t + 311 | 15 | | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | | 9 | t + 318 | 15 | | 10 | t + 319 | 15 | | 11 | t + 320 | 15 | | 12 | t + 321 | 15 | | 13 | t + 322 | 15 | | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | | 21 | t + 330 | 15 | | 22 | + 331 | 16 | | 1 | t + 332 | 16 | | 2 | t + 333 | 16 | | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | | 9 | t + 340 | 16 | | 10 | t + 341 | 16 | | 11 | t + 342 | 16 | | 12 | t + 343 | 16 | | 13 | t + 344 | 16 | | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | | 21 | t + 352 | 16 | | 22 | + 353 | 17 | | 1 | t + 354 | 17 | | 2 | t + 355 | 17 | | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | | 9 | t + 362 | 17 | | 10 | t + 363 | 17 | | 11 | t + 364 | 17 | | 12 | t + 365 | 17 | | 13 | t + 366 | 17 | | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | | 21 | t + 374 | 17 | | 22 | + 375 | 18 | | 1 | t + 376 | 18 | | 2 | t + 377 | 18 | | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | | 9 | t + 384 | 18 | | 10 | t + 385 | 18 | | 11 | t + 386 | 18 | | 12 | t + 387 | 18 | | 13 | t + 388 | 18 | | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | | 21 | t + 396 | 18 | | 22 | + 397 | 19 | t | 1 | t + 398 | 19 | t | 2 | t + 399 | 19 | t | 3 | t + 400 | 19 | t | 4 | f + 401 | 19 | t | 5 | f + 402 | 19 | t | 6 | f + 403 | 19 | t | 7 | f + 404 | 19 | t | 8 | f + 405 | 19 | t | 9 | t + 406 | 19 | t | 10 | t + 407 | 19 | t | 11 | t + 408 | 19 | t | 12 | t + 409 | 19 | t | 13 | t + 410 | 19 | t | 14 | t + 411 | 19 | t | 15 | f + 412 | 19 | t | 16 | f + 413 | 19 | t | 17 | f + 414 | 19 | t | 18 | f + 415 | 19 | t | 19 | t + 416 | 19 | t | 20 | f + 417 | 19 | t | 21 | t + 418 | 19 | t | 22 | + 419 | 20 | | 1 | t + 420 | 20 | | 2 | t + 421 | 20 | | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | | 9 | t + 428 | 20 | | 10 | t + 429 | 20 | | 11 | t + 430 | 20 | | 12 | t + 431 | 20 | | 13 | t + 432 | 20 | | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | | 21 | t + 440 | 20 | | 22 | + 441 | 21 | t | 1 | t + 442 | 21 | t | 2 | t + 443 | 21 | t | 3 | t + 444 | 21 | t | 4 | f + 445 | 21 | t | 5 | f + 446 | 21 | t | 6 | f + 447 | 21 | t | 7 | f + 448 | 21 | t | 8 | f + 449 | 21 | t | 9 | t + 450 | 21 | t | 10 | t + 451 | 21 | t | 11 | t + 452 | 21 | t | 12 | t + 453 | 21 | t | 13 | t + 454 | 21 | t | 14 | t + 455 | 21 | t | 15 | f + 456 | 21 | t | 16 | f + 457 | 21 | t | 17 | f + 458 | 21 | t | 18 | f + 459 | 21 | t | 19 | t + 460 | 21 | t | 20 | f + 461 | 21 | t | 21 | t + 462 | 21 | t | 22 | + 463 | 22 | | 1 | t + 464 | 22 | | 2 | t + 465 | 22 | | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | | 9 | t + 472 | 22 | | 10 | t + 473 | 22 | | 11 | t + 474 | 22 | | 12 | t + 475 | 22 | | 13 | t + 476 | 22 | | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) +(3 rows) + +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------- + Delete on public."type_BOOLEAN_oper" + -> Foreign Delete on public."type_BOOLEAN_oper" + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) +(3 rows) + +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 4 | 1 | f | 4 | f + 5 | 1 | f | 5 | f + 6 | 1 | f | 6 | f + 7 | 1 | f | 7 | f + 8 | 1 | f | 8 | f + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 15 | 1 | f | 15 | f + 16 | 1 | f | 16 | f + 17 | 1 | f | 17 | f + 18 | 1 | f | 18 | f + 19 | 1 | f | 19 | t + 20 | 1 | f | 20 | f + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 26 | 2 | f | 4 | f + 27 | 2 | f | 5 | f + 28 | 2 | f | 6 | f + 29 | 2 | f | 7 | f + 30 | 2 | f | 8 | f + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 37 | 2 | f | 15 | f + 38 | 2 | f | 16 | f + 39 | 2 | f | 17 | f + 40 | 2 | f | 18 | f + 41 | 2 | f | 19 | t + 42 | 2 | f | 20 | f + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 48 | 3 | f | 4 | f + 49 | 3 | f | 5 | f + 50 | 3 | f | 6 | f + 51 | 3 | f | 7 | f + 52 | 3 | f | 8 | f + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 59 | 3 | f | 15 | f + 60 | 3 | f | 16 | f + 61 | 3 | f | 17 | f + 62 | 3 | f | 18 | f + 63 | 3 | f | 19 | t + 64 | 3 | f | 20 | f + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 70 | 4 | | 4 | f + 71 | 4 | | 5 | f + 72 | 4 | | 6 | f + 73 | 4 | | 7 | f + 74 | 4 | | 8 | f + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 81 | 4 | | 15 | f + 82 | 4 | | 16 | f + 83 | 4 | | 17 | f + 84 | 4 | | 18 | f + 85 | 4 | f | 19 | t + 86 | 4 | | 20 | f + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 92 | 5 | | 4 | f + 93 | 5 | | 5 | f + 94 | 5 | | 6 | f + 95 | 5 | | 7 | f + 96 | 5 | | 8 | f + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 103 | 5 | | 15 | f + 104 | 5 | | 16 | f + 105 | 5 | | 17 | f + 106 | 5 | | 18 | f + 107 | 5 | f | 19 | t + 108 | 5 | | 20 | f + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 114 | 6 | | 4 | f + 115 | 6 | | 5 | f + 116 | 6 | | 6 | f + 117 | 6 | | 7 | f + 118 | 6 | | 8 | f + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 125 | 6 | | 15 | f + 126 | 6 | | 16 | f + 127 | 6 | | 17 | f + 128 | 6 | | 18 | f + 129 | 6 | f | 19 | t + 130 | 6 | | 20 | f + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 136 | 7 | | 4 | f + 137 | 7 | | 5 | f + 138 | 7 | | 6 | f + 139 | 7 | | 7 | f + 140 | 7 | | 8 | f + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 147 | 7 | | 15 | f + 148 | 7 | | 16 | f + 149 | 7 | | 17 | f + 150 | 7 | | 18 | f + 151 | 7 | f | 19 | t + 152 | 7 | | 20 | f + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 158 | 8 | | 4 | f + 159 | 8 | | 5 | f + 160 | 8 | | 6 | f + 161 | 8 | | 7 | f + 162 | 8 | | 8 | f + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 169 | 8 | | 15 | f + 170 | 8 | | 16 | f + 171 | 8 | | 17 | f + 172 | 8 | | 18 | f + 173 | 8 | f | 19 | t + 174 | 8 | | 20 | f + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 180 | 9 | f | 4 | f + 181 | 9 | f | 5 | f + 182 | 9 | f | 6 | f + 183 | 9 | f | 7 | f + 184 | 9 | f | 8 | f + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 191 | 9 | f | 15 | f + 192 | 9 | f | 16 | f + 193 | 9 | f | 17 | f + 194 | 9 | f | 18 | f + 195 | 9 | f | 19 | t + 196 | 9 | f | 20 | f + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 202 | 10 | f | 4 | f + 203 | 10 | f | 5 | f + 204 | 10 | f | 6 | f + 205 | 10 | f | 7 | f + 206 | 10 | f | 8 | f + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 213 | 10 | f | 15 | f + 214 | 10 | f | 16 | f + 215 | 10 | f | 17 | f + 216 | 10 | f | 18 | f + 217 | 10 | f | 19 | t + 218 | 10 | f | 20 | f + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 224 | 11 | f | 4 | f + 225 | 11 | f | 5 | f + 226 | 11 | f | 6 | f + 227 | 11 | f | 7 | f + 228 | 11 | f | 8 | f + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 235 | 11 | f | 15 | f + 236 | 11 | f | 16 | f + 237 | 11 | f | 17 | f + 238 | 11 | f | 18 | f + 239 | 11 | f | 19 | t + 240 | 11 | f | 20 | f + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 246 | 12 | f | 4 | f + 247 | 12 | f | 5 | f + 248 | 12 | f | 6 | f + 249 | 12 | f | 7 | f + 250 | 12 | f | 8 | f + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 257 | 12 | f | 15 | f + 258 | 12 | f | 16 | f + 259 | 12 | f | 17 | f + 260 | 12 | f | 18 | f + 261 | 12 | f | 19 | t + 262 | 12 | f | 20 | f + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 268 | 13 | f | 4 | f + 269 | 13 | f | 5 | f + 270 | 13 | f | 6 | f + 271 | 13 | f | 7 | f + 272 | 13 | f | 8 | f + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 279 | 13 | f | 15 | f + 280 | 13 | f | 16 | f + 281 | 13 | f | 17 | f + 282 | 13 | f | 18 | f + 283 | 13 | f | 19 | t + 284 | 13 | f | 20 | f + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 290 | 14 | f | 4 | f + 291 | 14 | f | 5 | f + 292 | 14 | f | 6 | f + 293 | 14 | f | 7 | f + 294 | 14 | f | 8 | f + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 301 | 14 | f | 15 | f + 302 | 14 | f | 16 | f + 303 | 14 | f | 17 | f + 304 | 14 | f | 18 | f + 305 | 14 | f | 19 | t + 306 | 14 | f | 20 | f + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 312 | 15 | | 4 | f + 313 | 15 | | 5 | f + 314 | 15 | | 6 | f + 315 | 15 | | 7 | f + 316 | 15 | | 8 | f + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 323 | 15 | | 15 | f + 324 | 15 | | 16 | f + 325 | 15 | | 17 | f + 326 | 15 | | 18 | f + 327 | 15 | f | 19 | t + 328 | 15 | | 20 | f + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 334 | 16 | | 4 | f + 335 | 16 | | 5 | f + 336 | 16 | | 6 | f + 337 | 16 | | 7 | f + 338 | 16 | | 8 | f + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 345 | 16 | | 15 | f + 346 | 16 | | 16 | f + 347 | 16 | | 17 | f + 348 | 16 | | 18 | f + 349 | 16 | f | 19 | t + 350 | 16 | | 20 | f + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 356 | 17 | | 4 | f + 357 | 17 | | 5 | f + 358 | 17 | | 6 | f + 359 | 17 | | 7 | f + 360 | 17 | | 8 | f + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 367 | 17 | | 15 | f + 368 | 17 | | 16 | f + 369 | 17 | | 17 | f + 370 | 17 | | 18 | f + 371 | 17 | f | 19 | t + 372 | 17 | | 20 | f + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 378 | 18 | | 4 | f + 379 | 18 | | 5 | f + 380 | 18 | | 6 | f + 381 | 18 | | 7 | f + 382 | 18 | | 8 | f + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 389 | 18 | | 15 | f + 390 | 18 | | 16 | f + 391 | 18 | | 17 | f + 392 | 18 | | 18 | f + 393 | 18 | f | 19 | t + 394 | 18 | | 20 | f + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 400 | 19 | f | 4 | f + 401 | 19 | f | 5 | f + 402 | 19 | f | 6 | f + 403 | 19 | f | 7 | f + 404 | 19 | f | 8 | f + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 411 | 19 | f | 15 | f + 412 | 19 | f | 16 | f + 413 | 19 | f | 17 | f + 414 | 19 | f | 18 | f + 415 | 19 | f | 19 | t + 416 | 19 | f | 20 | f + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 422 | 20 | | 4 | f + 423 | 20 | | 5 | f + 424 | 20 | | 6 | f + 425 | 20 | | 7 | f + 426 | 20 | | 8 | f + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 433 | 20 | | 15 | f + 434 | 20 | | 16 | f + 435 | 20 | | 17 | f + 436 | 20 | | 18 | f + 437 | 20 | f | 19 | t + 438 | 20 | | 20 | f + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 444 | 21 | f | 4 | f + 445 | 21 | f | 5 | f + 446 | 21 | f | 6 | f + 447 | 21 | f | 7 | f + 448 | 21 | f | 8 | f + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 455 | 21 | f | 15 | f + 456 | 21 | f | 16 | f + 457 | 21 | f | 17 | f + 458 | 21 | f | 18 | f + 459 | 21 | f | 19 | t + 460 | 21 | f | 20 | f + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 466 | 22 | | 4 | f + 467 | 22 | | 5 | f + 468 | 22 | | 6 | f + 469 | 22 | | 7 | f + 470 | 22 | | 8 | f + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 477 | 22 | | 15 | f + 478 | 22 | | 16 | f + 479 | 22 | | 17 | f + 480 | 22 | | 18 | f + 481 | 22 | f | 19 | t + 482 | 22 | | 20 | f + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(484 rows) + +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + i | i1 | b1 | i2 | b2 +-----+----+----+----+---- + 1 | 1 | f | 1 | t + 2 | 1 | f | 2 | t + 3 | 1 | f | 3 | t + 9 | 1 | f | 9 | t + 10 | 1 | f | 10 | t + 11 | 1 | f | 11 | t + 12 | 1 | f | 12 | t + 13 | 1 | f | 13 | t + 14 | 1 | f | 14 | t + 19 | 1 | f | 19 | t + 21 | 1 | f | 21 | t + 22 | 1 | f | 22 | + 23 | 2 | f | 1 | t + 24 | 2 | f | 2 | t + 25 | 2 | f | 3 | t + 31 | 2 | f | 9 | t + 32 | 2 | f | 10 | t + 33 | 2 | f | 11 | t + 34 | 2 | f | 12 | t + 35 | 2 | f | 13 | t + 36 | 2 | f | 14 | t + 41 | 2 | f | 19 | t + 43 | 2 | f | 21 | t + 44 | 2 | f | 22 | + 45 | 3 | f | 1 | t + 46 | 3 | f | 2 | t + 47 | 3 | f | 3 | t + 53 | 3 | f | 9 | t + 54 | 3 | f | 10 | t + 55 | 3 | f | 11 | t + 56 | 3 | f | 12 | t + 57 | 3 | f | 13 | t + 58 | 3 | f | 14 | t + 63 | 3 | f | 19 | t + 65 | 3 | f | 21 | t + 66 | 3 | f | 22 | + 67 | 4 | f | 1 | t + 68 | 4 | f | 2 | t + 69 | 4 | f | 3 | t + 75 | 4 | f | 9 | t + 76 | 4 | f | 10 | t + 77 | 4 | f | 11 | t + 78 | 4 | f | 12 | t + 79 | 4 | f | 13 | t + 80 | 4 | f | 14 | t + 85 | 4 | f | 19 | t + 87 | 4 | f | 21 | t + 88 | 4 | | 22 | + 89 | 5 | f | 1 | t + 90 | 5 | f | 2 | t + 91 | 5 | f | 3 | t + 97 | 5 | f | 9 | t + 98 | 5 | f | 10 | t + 99 | 5 | f | 11 | t + 100 | 5 | f | 12 | t + 101 | 5 | f | 13 | t + 102 | 5 | f | 14 | t + 107 | 5 | f | 19 | t + 109 | 5 | f | 21 | t + 110 | 5 | | 22 | + 111 | 6 | f | 1 | t + 112 | 6 | f | 2 | t + 113 | 6 | f | 3 | t + 119 | 6 | f | 9 | t + 120 | 6 | f | 10 | t + 121 | 6 | f | 11 | t + 122 | 6 | f | 12 | t + 123 | 6 | f | 13 | t + 124 | 6 | f | 14 | t + 129 | 6 | f | 19 | t + 131 | 6 | f | 21 | t + 132 | 6 | | 22 | + 133 | 7 | f | 1 | t + 134 | 7 | f | 2 | t + 135 | 7 | f | 3 | t + 141 | 7 | f | 9 | t + 142 | 7 | f | 10 | t + 143 | 7 | f | 11 | t + 144 | 7 | f | 12 | t + 145 | 7 | f | 13 | t + 146 | 7 | f | 14 | t + 151 | 7 | f | 19 | t + 153 | 7 | f | 21 | t + 154 | 7 | | 22 | + 155 | 8 | f | 1 | t + 156 | 8 | f | 2 | t + 157 | 8 | f | 3 | t + 163 | 8 | f | 9 | t + 164 | 8 | f | 10 | t + 165 | 8 | f | 11 | t + 166 | 8 | f | 12 | t + 167 | 8 | f | 13 | t + 168 | 8 | f | 14 | t + 173 | 8 | f | 19 | t + 175 | 8 | f | 21 | t + 176 | 8 | | 22 | + 177 | 9 | f | 1 | t + 178 | 9 | f | 2 | t + 179 | 9 | f | 3 | t + 185 | 9 | f | 9 | t + 186 | 9 | f | 10 | t + 187 | 9 | f | 11 | t + 188 | 9 | f | 12 | t + 189 | 9 | f | 13 | t + 190 | 9 | f | 14 | t + 195 | 9 | f | 19 | t + 197 | 9 | f | 21 | t + 198 | 9 | f | 22 | + 199 | 10 | f | 1 | t + 200 | 10 | f | 2 | t + 201 | 10 | f | 3 | t + 207 | 10 | f | 9 | t + 208 | 10 | f | 10 | t + 209 | 10 | f | 11 | t + 210 | 10 | f | 12 | t + 211 | 10 | f | 13 | t + 212 | 10 | f | 14 | t + 217 | 10 | f | 19 | t + 219 | 10 | f | 21 | t + 220 | 10 | f | 22 | + 221 | 11 | f | 1 | t + 222 | 11 | f | 2 | t + 223 | 11 | f | 3 | t + 229 | 11 | f | 9 | t + 230 | 11 | f | 10 | t + 231 | 11 | f | 11 | t + 232 | 11 | f | 12 | t + 233 | 11 | f | 13 | t + 234 | 11 | f | 14 | t + 239 | 11 | f | 19 | t + 241 | 11 | f | 21 | t + 242 | 11 | f | 22 | + 243 | 12 | f | 1 | t + 244 | 12 | f | 2 | t + 245 | 12 | f | 3 | t + 251 | 12 | f | 9 | t + 252 | 12 | f | 10 | t + 253 | 12 | f | 11 | t + 254 | 12 | f | 12 | t + 255 | 12 | f | 13 | t + 256 | 12 | f | 14 | t + 261 | 12 | f | 19 | t + 263 | 12 | f | 21 | t + 264 | 12 | f | 22 | + 265 | 13 | f | 1 | t + 266 | 13 | f | 2 | t + 267 | 13 | f | 3 | t + 273 | 13 | f | 9 | t + 274 | 13 | f | 10 | t + 275 | 13 | f | 11 | t + 276 | 13 | f | 12 | t + 277 | 13 | f | 13 | t + 278 | 13 | f | 14 | t + 283 | 13 | f | 19 | t + 285 | 13 | f | 21 | t + 286 | 13 | f | 22 | + 287 | 14 | f | 1 | t + 288 | 14 | f | 2 | t + 289 | 14 | f | 3 | t + 295 | 14 | f | 9 | t + 296 | 14 | f | 10 | t + 297 | 14 | f | 11 | t + 298 | 14 | f | 12 | t + 299 | 14 | f | 13 | t + 300 | 14 | f | 14 | t + 305 | 14 | f | 19 | t + 307 | 14 | f | 21 | t + 308 | 14 | f | 22 | + 309 | 15 | f | 1 | t + 310 | 15 | f | 2 | t + 311 | 15 | f | 3 | t + 317 | 15 | f | 9 | t + 318 | 15 | f | 10 | t + 319 | 15 | f | 11 | t + 320 | 15 | f | 12 | t + 321 | 15 | f | 13 | t + 322 | 15 | f | 14 | t + 327 | 15 | f | 19 | t + 329 | 15 | f | 21 | t + 330 | 15 | | 22 | + 331 | 16 | f | 1 | t + 332 | 16 | f | 2 | t + 333 | 16 | f | 3 | t + 339 | 16 | f | 9 | t + 340 | 16 | f | 10 | t + 341 | 16 | f | 11 | t + 342 | 16 | f | 12 | t + 343 | 16 | f | 13 | t + 344 | 16 | f | 14 | t + 349 | 16 | f | 19 | t + 351 | 16 | f | 21 | t + 352 | 16 | | 22 | + 353 | 17 | f | 1 | t + 354 | 17 | f | 2 | t + 355 | 17 | f | 3 | t + 361 | 17 | f | 9 | t + 362 | 17 | f | 10 | t + 363 | 17 | f | 11 | t + 364 | 17 | f | 12 | t + 365 | 17 | f | 13 | t + 366 | 17 | f | 14 | t + 371 | 17 | f | 19 | t + 373 | 17 | f | 21 | t + 374 | 17 | | 22 | + 375 | 18 | f | 1 | t + 376 | 18 | f | 2 | t + 377 | 18 | f | 3 | t + 383 | 18 | f | 9 | t + 384 | 18 | f | 10 | t + 385 | 18 | f | 11 | t + 386 | 18 | f | 12 | t + 387 | 18 | f | 13 | t + 388 | 18 | f | 14 | t + 393 | 18 | f | 19 | t + 395 | 18 | f | 21 | t + 396 | 18 | | 22 | + 397 | 19 | f | 1 | t + 398 | 19 | f | 2 | t + 399 | 19 | f | 3 | t + 405 | 19 | f | 9 | t + 406 | 19 | f | 10 | t + 407 | 19 | f | 11 | t + 408 | 19 | f | 12 | t + 409 | 19 | f | 13 | t + 410 | 19 | f | 14 | t + 415 | 19 | f | 19 | t + 417 | 19 | f | 21 | t + 418 | 19 | f | 22 | + 419 | 20 | f | 1 | t + 420 | 20 | f | 2 | t + 421 | 20 | f | 3 | t + 427 | 20 | f | 9 | t + 428 | 20 | f | 10 | t + 429 | 20 | f | 11 | t + 430 | 20 | f | 12 | t + 431 | 20 | f | 13 | t + 432 | 20 | f | 14 | t + 437 | 20 | f | 19 | t + 439 | 20 | f | 21 | t + 440 | 20 | | 22 | + 441 | 21 | f | 1 | t + 442 | 21 | f | 2 | t + 443 | 21 | f | 3 | t + 449 | 21 | f | 9 | t + 450 | 21 | f | 10 | t + 451 | 21 | f | 11 | t + 452 | 21 | f | 12 | t + 453 | 21 | f | 13 | t + 454 | 21 | f | 14 | t + 459 | 21 | f | 19 | t + 461 | 21 | f | 21 | t + 462 | 21 | f | 22 | + 463 | 22 | f | 1 | t + 464 | 22 | f | 2 | t + 465 | 22 | f | 3 | t + 471 | 22 | f | 9 | t + 472 | 22 | f | 10 | t + 473 | 22 | f | 11 | t + 474 | 22 | f | 12 | t + 475 | 22 | f | 13 | t + 476 | 22 | f | 14 | t + 481 | 22 | f | 19 | t + 483 | 22 | f | 21 | t + 484 | 22 | | 22 | +(264 rows) + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 5 other objects +NOTICE: drop cascades to 6 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BOOLEAN+" drop cascades to foreign table "type_BOOLEANpk" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to server sqlite2 diff --git a/expected/16.0/type.out b/expected/16.0/type.out index 710e1921..4d791a9b 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -1308,7 +1308,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 49 other objects +NOTICE: drop cascades to 50 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1351,6 +1351,7 @@ drop cascades to foreign table fts_table_docsize drop cascades to foreign table fts_table_config drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" +drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" drop cascades to foreign table "type_BIT" diff --git a/sql/12.15/extra/bool.sql b/sql/12.15/extra/bool.sql index 222b0222..9f0f198f 100644 --- a/sql/12.15/extra/bool.sql +++ b/sql/12.15/extra/bool.sql @@ -102,5 +102,82 @@ INSERT INTO "type_BOOLEANpk" VALUES (TRUE); --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/bool.sql b/sql/13.11/extra/bool.sql index 222b0222..9f0f198f 100644 --- a/sql/13.11/extra/bool.sql +++ b/sql/13.11/extra/bool.sql @@ -102,5 +102,82 @@ INSERT INTO "type_BOOLEANpk" VALUES (TRUE); --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/extra/bool.sql b/sql/14.8/extra/bool.sql index 222b0222..9f0f198f 100644 --- a/sql/14.8/extra/bool.sql +++ b/sql/14.8/extra/bool.sql @@ -102,5 +102,82 @@ INSERT INTO "type_BOOLEANpk" VALUES (TRUE); --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/extra/bool.sql b/sql/15.3/extra/bool.sql index 222b0222..9f0f198f 100644 --- a/sql/15.3/extra/bool.sql +++ b/sql/15.3/extra/bool.sql @@ -102,5 +102,82 @@ INSERT INTO "type_BOOLEANpk" VALUES (TRUE); --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/bool.sql b/sql/16.0/extra/bool.sql index 222b0222..9f0f198f 100644 --- a/sql/16.0/extra/bool.sql +++ b/sql/16.0/extra/bool.sql @@ -102,5 +102,82 @@ INSERT INTO "type_BOOLEANpk" VALUES (TRUE); --Testcase 45: DELETE FROM "type_BOOLEANpk"; +--Testcase 46: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE float8; +--Testcase 47: +INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); +--Testcase 48: +ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; +--Testcase 49: ERR - invalid float for bool column +SELECT * FROM "type_BOOLEAN+"; +--Testcase 50 +DELETE FROM "type_BOOLEAN" WHERE i = 27; +--Testcase 51: +SELECT * FROM "type_BOOLEAN+"; + +--Testcase 52: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE b; +--Testcase 53: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN" SET b = NULL WHERE NOT b; +--Testcase 54: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE b; +--Testcase 55: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN" WHERE NOT b; + +--Testcase 56: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; +--Testcase 57: +SELECT *, NOT b nb FROM "type_BOOLEAN+" b; + +--Testcase 58: +CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smallint, b1 boolean, i2 smallint, b2 boolean) SERVER sqlite_svr OPTIONS (table 'type_BOOLEAN_oper'); +--Testcase 59: see INIT.SQL with mixed affinity boolean data +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 60: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +--Testcase 61: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + +--Testcase 62: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 63: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + +--Testcase 64: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +--Testcase 65: +SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + +--Testcase 66: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; +--Testcase 67: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 68: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 69: +EXPLAIN (VERBOSE, COSTS OFF) +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 71: +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 72: +DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +--Testcase 73: +SELECT * FROM "type_BOOLEAN_oper"; +--Testcase 74: +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 75: +SELECT * FROM "type_BOOLEAN_oper"; + --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/init_data/init.sql b/sql/init_data/init.sql index 440cf509..dd6f2f31 100644 --- a/sql/init_data/init.sql +++ b/sql/init_data/init.sql @@ -94,4 +94,12 @@ INSERT INTO "Unicode data" (i, t) VALUES ('cze', 'Zvlášť zákeřný učeň s INSERT INTO "Unicode data" (i, t) VALUES ('ara', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ'); INSERT INTO "Unicode data" (i, t) VALUES ('heb', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם'); + +CREATE TABLE "type_BOOLEAN_oper" AS +WITH booldata AS ( + SELECT row_number() over () i, column1 AS b + FROM (VALUES ('Yes'), ('YeS'), ('yes'), ('no'),('No'), ('nO'), ('off'),('oFf'),('on'),('ON'),('t'),('T'),('Y'),('y'),('F'),('f'),('n'),(0),(1),('0'),('1'), (NULL)) + ) +SELECT ROW_NUMBER() OVER () i, t1.i i1, t1.b b1, t2.i i2, t2.b b2 FROM booldata t1 INNER JOIN booldata t2 ON 1; + analyze; diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index 017a5316..5c543a80 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -232,7 +232,18 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar { sqlite3_result_int(context, 0); return; - } + } + /* rare but possible cases */ + if (strcasecmp(t, "1") == 0) + { + sqlite3_result_int(context, 1); + return; + } + if (strcasecmp(t, "0") == 0) + { + sqlite3_result_int(context, 0); + return; + } } if ( l == 2 ) { From 6ff3790a8a7970f26cfb11e4d4472f24a678cb85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:25:14 +0300 Subject: [PATCH 16/27] Revert License --- License | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/License b/License index 37bc8333..89fdb39a 100644 --- a/License +++ b/License @@ -1,8 +1,6 @@ -SQLite Foreign Data Wrapper for PostgreSQL linensed under -The PostgreSQL Licence -(for the newest text see https://opensource.org/license/postgresql/) +SQLite Foreign Data Wrapper for PostgreSQL -Copyright (c) 2018 - 2024, TOSHIBA CORPORATION +Copyright (c) 2018, TOSHIBA CORPORATION Copyright (c) 2011 - 2016, EnterpriseDB Corporation Permission to use, copy, modify, and distribute this software and its From 6ccdf191564693acfe56375bde3d7a6265b65b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 30 Nov 2023 11:52:49 +0300 Subject: [PATCH 17/27] Reduce operation tests to unique combinations --- expected/12.15/extra/bool.out | 4053 +++++++-------------------------- expected/13.11/extra/bool.out | 4053 +++++++-------------------------- expected/14.8/extra/bool.out | 4053 +++++++-------------------------- expected/15.3/extra/bool.out | 4053 +++++++-------------------------- expected/16.0/extra/bool.out | 4053 +++++++-------------------------- sql/12.15/extra/bool.sql | 39 +- sql/13.11/extra/bool.sql | 39 +- sql/14.8/extra/bool.sql | 39 +- sql/15.3/extra/bool.sql | 39 +- sql/16.0/extra/bool.sql | 39 +- sql/init_data/init.sql | 5 +- 11 files changed, 4299 insertions(+), 16166 deletions(-) diff --git a/expected/12.15/extra/bool.out b/expected/12.15/extra/bool.out index 3d9bf96c..4083dbca 100644 --- a/expected/12.15/extra/bool.out +++ b/expected/12.15/extra/bool.out @@ -374,2000 +374,830 @@ SELECT * FROM "type_BOOLEAN_oper"; 1 | 1 | t | 1 | t 2 | 1 | t | 2 | t 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f + 4 | 1 | t | 4 | t + 5 | 1 | t | 5 | t + 6 | 1 | t | 6 | t + 7 | 1 | t | 7 | t + 8 | 1 | t | 8 | t 9 | 1 | t | 9 | t 10 | 1 | t | 10 | t 11 | 1 | t | 11 | t 12 | 1 | t | 12 | t 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t + 14 | 1 | t | 14 | f 15 | 1 | t | 15 | f 16 | 1 | t | 16 | f 17 | 1 | t | 17 | f 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t + 19 | 1 | t | 19 | f 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | f | 4 | f - 71 | 4 | f | 5 | f - 72 | 4 | f | 6 | f - 73 | 4 | f | 7 | f - 74 | 4 | f | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | f | 15 | f - 82 | 4 | f | 16 | f - 83 | 4 | f | 17 | f - 84 | 4 | f | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | f | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | f | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | f | 4 | f - 93 | 5 | f | 5 | f - 94 | 5 | f | 6 | f - 95 | 5 | f | 7 | f - 96 | 5 | f | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | f | 15 | f - 104 | 5 | f | 16 | f - 105 | 5 | f | 17 | f - 106 | 5 | f | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | f | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | f | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | f | 4 | f - 115 | 6 | f | 5 | f - 116 | 6 | f | 6 | f - 117 | 6 | f | 7 | f - 118 | 6 | f | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | f | 15 | f - 126 | 6 | f | 16 | f - 127 | 6 | f | 17 | f - 128 | 6 | f | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | f | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | f | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | f | 4 | f - 137 | 7 | f | 5 | f - 138 | 7 | f | 6 | f - 139 | 7 | f | 7 | f - 140 | 7 | f | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | f | 15 | f - 148 | 7 | f | 16 | f - 149 | 7 | f | 17 | f - 150 | 7 | f | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | f | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | f | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | f | 4 | f - 159 | 8 | f | 5 | f - 160 | 8 | f | 6 | f - 161 | 8 | f | 7 | f - 162 | 8 | f | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | f | 15 | f - 170 | 8 | f | 16 | f - 171 | 8 | f | 17 | f - 172 | 8 | f | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | f | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | f | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | f | 4 | f - 313 | 15 | f | 5 | f - 314 | 15 | f | 6 | f - 315 | 15 | f | 7 | f - 316 | 15 | f | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | f | 15 | f - 324 | 15 | f | 16 | f - 325 | 15 | f | 17 | f - 326 | 15 | f | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | f | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | f | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | f | 4 | f - 335 | 16 | f | 5 | f - 336 | 16 | f | 6 | f - 337 | 16 | f | 7 | f - 338 | 16 | f | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | f | 15 | f - 346 | 16 | f | 16 | f - 347 | 16 | f | 17 | f - 348 | 16 | f | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | f | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | f | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | f | 4 | f - 357 | 17 | f | 5 | f - 358 | 17 | f | 6 | f - 359 | 17 | f | 7 | f - 360 | 17 | f | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | f | 15 | f - 368 | 17 | f | 16 | f - 369 | 17 | f | 17 | f - 370 | 17 | f | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | f | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | f | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | f | 4 | f - 379 | 18 | f | 5 | f - 380 | 18 | f | 6 | f - 381 | 18 | f | 7 | f - 382 | 18 | f | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | f | 15 | f - 390 | 18 | f | 16 | f - 391 | 18 | f | 17 | f - 392 | 18 | f | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | f | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | f | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | f | 4 | f - 423 | 20 | f | 5 | f - 424 | 20 | f | 6 | f - 425 | 20 | f | 7 | f - 426 | 20 | f | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | f | 15 | f - 434 | 20 | f | 16 | f - 435 | 20 | f | 17 | f - 436 | 20 | f | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | f | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | f | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + 21 | 1 | t | 21 | f + 22 | 1 | t | 22 | f + 23 | 1 | t | 23 | f + 24 | 1 | t | 24 | f + 25 | 1 | t | 25 | f + 26 | 1 | t | 26 | f + 27 | 1 | t | 27 | + 28 | 2 | t | 1 | t + 29 | 2 | t | 2 | t + 30 | 2 | t | 3 | t + 31 | 2 | t | 4 | t + 32 | 2 | t | 5 | t + 33 | 2 | t | 6 | t + 34 | 2 | t | 7 | t + 35 | 2 | t | 8 | t + 36 | 2 | t | 9 | t + 37 | 2 | t | 10 | t + 38 | 2 | t | 11 | t + 39 | 2 | t | 12 | t + 40 | 2 | t | 13 | t + 41 | 2 | t | 14 | f + 42 | 2 | t | 15 | f + 43 | 2 | t | 16 | f + 44 | 2 | t | 17 | f + 45 | 2 | t | 18 | f + 46 | 2 | t | 19 | f + 47 | 2 | t | 20 | f + 48 | 2 | t | 21 | f + 49 | 2 | t | 22 | f + 50 | 2 | t | 23 | f + 51 | 2 | t | 24 | f + 52 | 2 | t | 25 | f + 53 | 2 | t | 26 | f + 54 | 2 | t | 27 | + 55 | 3 | t | 1 | t + 56 | 3 | t | 2 | t + 57 | 3 | t | 3 | t + 58 | 3 | t | 4 | t + 59 | 3 | t | 5 | t + 60 | 3 | t | 6 | t + 61 | 3 | t | 7 | t + 62 | 3 | t | 8 | t + 63 | 3 | t | 9 | t + 64 | 3 | t | 10 | t + 65 | 3 | t | 11 | t + 66 | 3 | t | 12 | t + 67 | 3 | t | 13 | t + 68 | 3 | t | 14 | f + 69 | 3 | t | 15 | f + 70 | 3 | t | 16 | f + 71 | 3 | t | 17 | f + 72 | 3 | t | 18 | f + 73 | 3 | t | 19 | f + 74 | 3 | t | 20 | f + 75 | 3 | t | 21 | f + 76 | 3 | t | 22 | f + 77 | 3 | t | 23 | f + 78 | 3 | t | 24 | f + 79 | 3 | t | 25 | f + 80 | 3 | t | 26 | f + 81 | 3 | t | 27 | + 82 | 4 | t | 1 | t + 83 | 4 | t | 2 | t + 84 | 4 | t | 3 | t + 85 | 4 | t | 4 | t + 86 | 4 | t | 5 | t + 87 | 4 | t | 6 | t + 88 | 4 | t | 7 | t + 89 | 4 | t | 8 | t + 90 | 4 | t | 9 | t + 91 | 4 | t | 10 | t + 92 | 4 | t | 11 | t + 93 | 4 | t | 12 | t + 94 | 4 | t | 13 | t + 95 | 4 | t | 14 | f + 96 | 4 | t | 15 | f + 97 | 4 | t | 16 | f + 98 | 4 | t | 17 | f + 99 | 4 | t | 18 | f + 100 | 4 | t | 19 | f + 101 | 4 | t | 20 | f + 102 | 4 | t | 21 | f + 103 | 4 | t | 22 | f + 104 | 4 | t | 23 | f + 105 | 4 | t | 24 | f + 106 | 4 | t | 25 | f + 107 | 4 | t | 26 | f + 108 | 4 | t | 27 | + 109 | 5 | t | 1 | t + 110 | 5 | t | 2 | t + 111 | 5 | t | 3 | t + 112 | 5 | t | 4 | t + 113 | 5 | t | 5 | t + 114 | 5 | t | 6 | t + 115 | 5 | t | 7 | t + 116 | 5 | t | 8 | t + 117 | 5 | t | 9 | t + 118 | 5 | t | 10 | t + 119 | 5 | t | 11 | t + 120 | 5 | t | 12 | t + 121 | 5 | t | 13 | t + 122 | 5 | t | 14 | f + 123 | 5 | t | 15 | f + 124 | 5 | t | 16 | f + 125 | 5 | t | 17 | f + 126 | 5 | t | 18 | f + 127 | 5 | t | 19 | f + 128 | 5 | t | 20 | f + 129 | 5 | t | 21 | f + 130 | 5 | t | 22 | f + 131 | 5 | t | 23 | f + 132 | 5 | t | 24 | f + 133 | 5 | t | 25 | f + 134 | 5 | t | 26 | f + 135 | 5 | t | 27 | + 136 | 6 | t | 1 | t + 137 | 6 | t | 2 | t + 138 | 6 | t | 3 | t + 139 | 6 | t | 4 | t + 140 | 6 | t | 5 | t + 141 | 6 | t | 6 | t + 142 | 6 | t | 7 | t + 143 | 6 | t | 8 | t + 144 | 6 | t | 9 | t + 145 | 6 | t | 10 | t + 146 | 6 | t | 11 | t + 147 | 6 | t | 12 | t + 148 | 6 | t | 13 | t + 149 | 6 | t | 14 | f + 150 | 6 | t | 15 | f + 151 | 6 | t | 16 | f + 152 | 6 | t | 17 | f + 153 | 6 | t | 18 | f + 154 | 6 | t | 19 | f + 155 | 6 | t | 20 | f + 156 | 6 | t | 21 | f + 157 | 6 | t | 22 | f + 158 | 6 | t | 23 | f + 159 | 6 | t | 24 | f + 160 | 6 | t | 25 | f + 161 | 6 | t | 26 | f + 162 | 6 | t | 27 | + 163 | 7 | t | 1 | t + 164 | 7 | t | 2 | t + 165 | 7 | t | 3 | t + 166 | 7 | t | 4 | t + 167 | 7 | t | 5 | t + 168 | 7 | t | 6 | t + 169 | 7 | t | 7 | t + 170 | 7 | t | 8 | t + 171 | 7 | t | 9 | t + 172 | 7 | t | 10 | t + 173 | 7 | t | 11 | t + 174 | 7 | t | 12 | t + 175 | 7 | t | 13 | t + 176 | 7 | t | 14 | f + 177 | 7 | t | 15 | f + 178 | 7 | t | 16 | f + 179 | 7 | t | 17 | f + 180 | 7 | t | 18 | f + 181 | 7 | t | 19 | f + 182 | 7 | t | 20 | f + 183 | 7 | t | 21 | f + 184 | 7 | t | 22 | f + 185 | 7 | t | 23 | f + 186 | 7 | t | 24 | f + 187 | 7 | t | 25 | f + 188 | 7 | t | 26 | f + 189 | 7 | t | 27 | + 190 | 8 | t | 1 | t + 191 | 8 | t | 2 | t + 192 | 8 | t | 3 | t + 193 | 8 | t | 4 | t + 194 | 8 | t | 5 | t + 195 | 8 | t | 6 | t + 196 | 8 | t | 7 | t + 197 | 8 | t | 8 | t + 198 | 8 | t | 9 | t + 199 | 8 | t | 10 | t + 200 | 8 | t | 11 | t + 201 | 8 | t | 12 | t + 202 | 8 | t | 13 | t + 203 | 8 | t | 14 | f + 204 | 8 | t | 15 | f + 205 | 8 | t | 16 | f + 206 | 8 | t | 17 | f + 207 | 8 | t | 18 | f + 208 | 8 | t | 19 | f + 209 | 8 | t | 20 | f + 210 | 8 | t | 21 | f + 211 | 8 | t | 22 | f + 212 | 8 | t | 23 | f + 213 | 8 | t | 24 | f + 214 | 8 | t | 25 | f + 215 | 8 | t | 26 | f + 216 | 8 | t | 27 | + 217 | 9 | t | 1 | t + 218 | 9 | t | 2 | t + 219 | 9 | t | 3 | t + 220 | 9 | t | 4 | t + 221 | 9 | t | 5 | t + 222 | 9 | t | 6 | t + 223 | 9 | t | 7 | t + 224 | 9 | t | 8 | t + 225 | 9 | t | 9 | t + 226 | 9 | t | 10 | t + 227 | 9 | t | 11 | t + 228 | 9 | t | 12 | t + 229 | 9 | t | 13 | t + 230 | 9 | t | 14 | f + 231 | 9 | t | 15 | f + 232 | 9 | t | 16 | f + 233 | 9 | t | 17 | f + 234 | 9 | t | 18 | f + 235 | 9 | t | 19 | f + 236 | 9 | t | 20 | f + 237 | 9 | t | 21 | f + 238 | 9 | t | 22 | f + 239 | 9 | t | 23 | f + 240 | 9 | t | 24 | f + 241 | 9 | t | 25 | f + 242 | 9 | t | 26 | f + 243 | 9 | t | 27 | + 244 | 10 | t | 1 | t + 245 | 10 | t | 2 | t + 246 | 10 | t | 3 | t + 247 | 10 | t | 4 | t + 248 | 10 | t | 5 | t + 249 | 10 | t | 6 | t + 250 | 10 | t | 7 | t + 251 | 10 | t | 8 | t + 252 | 10 | t | 9 | t + 253 | 10 | t | 10 | t + 254 | 10 | t | 11 | t + 255 | 10 | t | 12 | t + 256 | 10 | t | 13 | t + 257 | 10 | t | 14 | f + 258 | 10 | t | 15 | f + 259 | 10 | t | 16 | f + 260 | 10 | t | 17 | f + 261 | 10 | t | 18 | f + 262 | 10 | t | 19 | f + 263 | 10 | t | 20 | f + 264 | 10 | t | 21 | f + 265 | 10 | t | 22 | f + 266 | 10 | t | 23 | f + 267 | 10 | t | 24 | f + 268 | 10 | t | 25 | f + 269 | 10 | t | 26 | f + 270 | 10 | t | 27 | + 271 | 11 | t | 1 | t + 272 | 11 | t | 2 | t + 273 | 11 | t | 3 | t + 274 | 11 | t | 4 | t + 275 | 11 | t | 5 | t + 276 | 11 | t | 6 | t + 277 | 11 | t | 7 | t + 278 | 11 | t | 8 | t + 279 | 11 | t | 9 | t + 280 | 11 | t | 10 | t + 281 | 11 | t | 11 | t + 282 | 11 | t | 12 | t + 283 | 11 | t | 13 | t + 284 | 11 | t | 14 | f + 285 | 11 | t | 15 | f + 286 | 11 | t | 16 | f + 287 | 11 | t | 17 | f + 288 | 11 | t | 18 | f + 289 | 11 | t | 19 | f + 290 | 11 | t | 20 | f + 291 | 11 | t | 21 | f + 292 | 11 | t | 22 | f + 293 | 11 | t | 23 | f + 294 | 11 | t | 24 | f + 295 | 11 | t | 25 | f + 296 | 11 | t | 26 | f + 297 | 11 | t | 27 | + 298 | 12 | t | 1 | t + 299 | 12 | t | 2 | t + 300 | 12 | t | 3 | t + 301 | 12 | t | 4 | t + 302 | 12 | t | 5 | t + 303 | 12 | t | 6 | t + 304 | 12 | t | 7 | t + 305 | 12 | t | 8 | t + 306 | 12 | t | 9 | t + 307 | 12 | t | 10 | t + 308 | 12 | t | 11 | t + 309 | 12 | t | 12 | t + 310 | 12 | t | 13 | t + 311 | 12 | t | 14 | f + 312 | 12 | t | 15 | f + 313 | 12 | t | 16 | f + 314 | 12 | t | 17 | f + 315 | 12 | t | 18 | f + 316 | 12 | t | 19 | f + 317 | 12 | t | 20 | f + 318 | 12 | t | 21 | f + 319 | 12 | t | 22 | f + 320 | 12 | t | 23 | f + 321 | 12 | t | 24 | f + 322 | 12 | t | 25 | f + 323 | 12 | t | 26 | f + 324 | 12 | t | 27 | + 325 | 13 | t | 1 | t + 326 | 13 | t | 2 | t + 327 | 13 | t | 3 | t + 328 | 13 | t | 4 | t + 329 | 13 | t | 5 | t + 330 | 13 | t | 6 | t + 331 | 13 | t | 7 | t + 332 | 13 | t | 8 | t + 333 | 13 | t | 9 | t + 334 | 13 | t | 10 | t + 335 | 13 | t | 11 | t + 336 | 13 | t | 12 | t + 337 | 13 | t | 13 | t + 338 | 13 | t | 14 | f + 339 | 13 | t | 15 | f + 340 | 13 | t | 16 | f + 341 | 13 | t | 17 | f + 342 | 13 | t | 18 | f + 343 | 13 | t | 19 | f + 344 | 13 | t | 20 | f + 345 | 13 | t | 21 | f + 346 | 13 | t | 22 | f + 347 | 13 | t | 23 | f + 348 | 13 | t | 24 | f + 349 | 13 | t | 25 | f + 350 | 13 | t | 26 | f + 351 | 13 | t | 27 | + 352 | 14 | f | 1 | t + 353 | 14 | f | 2 | t + 354 | 14 | f | 3 | t + 355 | 14 | f | 4 | t + 356 | 14 | f | 5 | t + 357 | 14 | f | 6 | t + 358 | 14 | f | 7 | t + 359 | 14 | f | 8 | t + 360 | 14 | f | 9 | t + 361 | 14 | f | 10 | t + 362 | 14 | f | 11 | t + 363 | 14 | f | 12 | t + 364 | 14 | f | 13 | t + 365 | 14 | f | 14 | f + 366 | 14 | f | 15 | f + 367 | 14 | f | 16 | f + 368 | 14 | f | 17 | f + 369 | 14 | f | 18 | f + 370 | 14 | f | 19 | f + 371 | 14 | f | 20 | f + 372 | 14 | f | 21 | f + 373 | 14 | f | 22 | f + 374 | 14 | f | 23 | f + 375 | 14 | f | 24 | f + 376 | 14 | f | 25 | f + 377 | 14 | f | 26 | f + 378 | 14 | f | 27 | + 379 | 15 | f | 1 | t + 380 | 15 | f | 2 | t + 381 | 15 | f | 3 | t + 382 | 15 | f | 4 | t + 383 | 15 | f | 5 | t + 384 | 15 | f | 6 | t + 385 | 15 | f | 7 | t + 386 | 15 | f | 8 | t + 387 | 15 | f | 9 | t + 388 | 15 | f | 10 | t + 389 | 15 | f | 11 | t + 390 | 15 | f | 12 | t + 391 | 15 | f | 13 | t + 392 | 15 | f | 14 | f + 393 | 15 | f | 15 | f + 394 | 15 | f | 16 | f + 395 | 15 | f | 17 | f + 396 | 15 | f | 18 | f + 397 | 15 | f | 19 | f + 398 | 15 | f | 20 | f + 399 | 15 | f | 21 | f + 400 | 15 | f | 22 | f + 401 | 15 | f | 23 | f + 402 | 15 | f | 24 | f + 403 | 15 | f | 25 | f + 404 | 15 | f | 26 | f + 405 | 15 | f | 27 | + 406 | 16 | f | 1 | t + 407 | 16 | f | 2 | t + 408 | 16 | f | 3 | t + 409 | 16 | f | 4 | t + 410 | 16 | f | 5 | t + 411 | 16 | f | 6 | t + 412 | 16 | f | 7 | t + 413 | 16 | f | 8 | t + 414 | 16 | f | 9 | t + 415 | 16 | f | 10 | t + 416 | 16 | f | 11 | t + 417 | 16 | f | 12 | t + 418 | 16 | f | 13 | t + 419 | 16 | f | 14 | f + 420 | 16 | f | 15 | f + 421 | 16 | f | 16 | f + 422 | 16 | f | 17 | f + 423 | 16 | f | 18 | f + 424 | 16 | f | 19 | f + 425 | 16 | f | 20 | f + 426 | 16 | f | 21 | f + 427 | 16 | f | 22 | f + 428 | 16 | f | 23 | f + 429 | 16 | f | 24 | f + 430 | 16 | f | 25 | f + 431 | 16 | f | 26 | f + 432 | 16 | f | 27 | + 433 | 17 | f | 1 | t + 434 | 17 | f | 2 | t + 435 | 17 | f | 3 | t + 436 | 17 | f | 4 | t + 437 | 17 | f | 5 | t + 438 | 17 | f | 6 | t + 439 | 17 | f | 7 | t + 440 | 17 | f | 8 | t + 441 | 17 | f | 9 | t + 442 | 17 | f | 10 | t + 443 | 17 | f | 11 | t + 444 | 17 | f | 12 | t + 445 | 17 | f | 13 | t + 446 | 17 | f | 14 | f + 447 | 17 | f | 15 | f + 448 | 17 | f | 16 | f + 449 | 17 | f | 17 | f + 450 | 17 | f | 18 | f + 451 | 17 | f | 19 | f + 452 | 17 | f | 20 | f + 453 | 17 | f | 21 | f + 454 | 17 | f | 22 | f + 455 | 17 | f | 23 | f + 456 | 17 | f | 24 | f + 457 | 17 | f | 25 | f + 458 | 17 | f | 26 | f + 459 | 17 | f | 27 | + 460 | 18 | f | 1 | t + 461 | 18 | f | 2 | t + 462 | 18 | f | 3 | t + 463 | 18 | f | 4 | t + 464 | 18 | f | 5 | t + 465 | 18 | f | 6 | t + 466 | 18 | f | 7 | t + 467 | 18 | f | 8 | t + 468 | 18 | f | 9 | t + 469 | 18 | f | 10 | t + 470 | 18 | f | 11 | t + 471 | 18 | f | 12 | t + 472 | 18 | f | 13 | t + 473 | 18 | f | 14 | f + 474 | 18 | f | 15 | f + 475 | 18 | f | 16 | f + 476 | 18 | f | 17 | f + 477 | 18 | f | 18 | f + 478 | 18 | f | 19 | f + 479 | 18 | f | 20 | f + 480 | 18 | f | 21 | f + 481 | 18 | f | 22 | f + 482 | 18 | f | 23 | f + 483 | 18 | f | 24 | f + 484 | 18 | f | 25 | f + 485 | 18 | f | 26 | f + 486 | 18 | f | 27 | + 487 | 19 | f | 1 | t + 488 | 19 | f | 2 | t + 489 | 19 | f | 3 | t + 490 | 19 | f | 4 | t + 491 | 19 | f | 5 | t + 492 | 19 | f | 6 | t + 493 | 19 | f | 7 | t + 494 | 19 | f | 8 | t + 495 | 19 | f | 9 | t + 496 | 19 | f | 10 | t + 497 | 19 | f | 11 | t + 498 | 19 | f | 12 | t + 499 | 19 | f | 13 | t + 500 | 19 | f | 14 | f + 501 | 19 | f | 15 | f + 502 | 19 | f | 16 | f + 503 | 19 | f | 17 | f + 504 | 19 | f | 18 | f + 505 | 19 | f | 19 | f + 506 | 19 | f | 20 | f + 507 | 19 | f | 21 | f + 508 | 19 | f | 22 | f + 509 | 19 | f | 23 | f + 510 | 19 | f | 24 | f + 511 | 19 | f | 25 | f + 512 | 19 | f | 26 | f + 513 | 19 | f | 27 | + 514 | 20 | f | 1 | t + 515 | 20 | f | 2 | t + 516 | 20 | f | 3 | t + 517 | 20 | f | 4 | t + 518 | 20 | f | 5 | t + 519 | 20 | f | 6 | t + 520 | 20 | f | 7 | t + 521 | 20 | f | 8 | t + 522 | 20 | f | 9 | t + 523 | 20 | f | 10 | t + 524 | 20 | f | 11 | t + 525 | 20 | f | 12 | t + 526 | 20 | f | 13 | t + 527 | 20 | f | 14 | f + 528 | 20 | f | 15 | f + 529 | 20 | f | 16 | f + 530 | 20 | f | 17 | f + 531 | 20 | f | 18 | f + 532 | 20 | f | 19 | f + 533 | 20 | f | 20 | f + 534 | 20 | f | 21 | f + 535 | 20 | f | 22 | f + 536 | 20 | f | 23 | f + 537 | 20 | f | 24 | f + 538 | 20 | f | 25 | f + 539 | 20 | f | 26 | f + 540 | 20 | f | 27 | + 541 | 21 | f | 1 | t + 542 | 21 | f | 2 | t + 543 | 21 | f | 3 | t + 544 | 21 | f | 4 | t + 545 | 21 | f | 5 | t + 546 | 21 | f | 6 | t + 547 | 21 | f | 7 | t + 548 | 21 | f | 8 | t + 549 | 21 | f | 9 | t + 550 | 21 | f | 10 | t + 551 | 21 | f | 11 | t + 552 | 21 | f | 12 | t + 553 | 21 | f | 13 | t + 554 | 21 | f | 14 | f + 555 | 21 | f | 15 | f + 556 | 21 | f | 16 | f + 557 | 21 | f | 17 | f + 558 | 21 | f | 18 | f + 559 | 21 | f | 19 | f + 560 | 21 | f | 20 | f + 561 | 21 | f | 21 | f + 562 | 21 | f | 22 | f + 563 | 21 | f | 23 | f + 564 | 21 | f | 24 | f + 565 | 21 | f | 25 | f + 566 | 21 | f | 26 | f + 567 | 21 | f | 27 | + 568 | 22 | f | 1 | t + 569 | 22 | f | 2 | t + 570 | 22 | f | 3 | t + 571 | 22 | f | 4 | t + 572 | 22 | f | 5 | t + 573 | 22 | f | 6 | t + 574 | 22 | f | 7 | t + 575 | 22 | f | 8 | t + 576 | 22 | f | 9 | t + 577 | 22 | f | 10 | t + 578 | 22 | f | 11 | t + 579 | 22 | f | 12 | t + 580 | 22 | f | 13 | t + 581 | 22 | f | 14 | f + 582 | 22 | f | 15 | f + 583 | 22 | f | 16 | f + 584 | 22 | f | 17 | f + 585 | 22 | f | 18 | f + 586 | 22 | f | 19 | f + 587 | 22 | f | 20 | f + 588 | 22 | f | 21 | f + 589 | 22 | f | 22 | f + 590 | 22 | f | 23 | f + 591 | 22 | f | 24 | f + 592 | 22 | f | 25 | f + 593 | 22 | f | 26 | f + 594 | 22 | f | 27 | + 595 | 23 | f | 1 | t + 596 | 23 | f | 2 | t + 597 | 23 | f | 3 | t + 598 | 23 | f | 4 | t + 599 | 23 | f | 5 | t + 600 | 23 | f | 6 | t + 601 | 23 | f | 7 | t + 602 | 23 | f | 8 | t + 603 | 23 | f | 9 | t + 604 | 23 | f | 10 | t + 605 | 23 | f | 11 | t + 606 | 23 | f | 12 | t + 607 | 23 | f | 13 | t + 608 | 23 | f | 14 | f + 609 | 23 | f | 15 | f + 610 | 23 | f | 16 | f + 611 | 23 | f | 17 | f + 612 | 23 | f | 18 | f + 613 | 23 | f | 19 | f + 614 | 23 | f | 20 | f + 615 | 23 | f | 21 | f + 616 | 23 | f | 22 | f + 617 | 23 | f | 23 | f + 618 | 23 | f | 24 | f + 619 | 23 | f | 25 | f + 620 | 23 | f | 26 | f + 621 | 23 | f | 27 | + 622 | 24 | f | 1 | t + 623 | 24 | f | 2 | t + 624 | 24 | f | 3 | t + 625 | 24 | f | 4 | t + 626 | 24 | f | 5 | t + 627 | 24 | f | 6 | t + 628 | 24 | f | 7 | t + 629 | 24 | f | 8 | t + 630 | 24 | f | 9 | t + 631 | 24 | f | 10 | t + 632 | 24 | f | 11 | t + 633 | 24 | f | 12 | t + 634 | 24 | f | 13 | t + 635 | 24 | f | 14 | f + 636 | 24 | f | 15 | f + 637 | 24 | f | 16 | f + 638 | 24 | f | 17 | f + 639 | 24 | f | 18 | f + 640 | 24 | f | 19 | f + 641 | 24 | f | 20 | f + 642 | 24 | f | 21 | f + 643 | 24 | f | 22 | f + 644 | 24 | f | 23 | f + 645 | 24 | f | 24 | f + 646 | 24 | f | 25 | f + 647 | 24 | f | 26 | f + 648 | 24 | f | 27 | + 649 | 25 | f | 1 | t + 650 | 25 | f | 2 | t + 651 | 25 | f | 3 | t + 652 | 25 | f | 4 | t + 653 | 25 | f | 5 | t + 654 | 25 | f | 6 | t + 655 | 25 | f | 7 | t + 656 | 25 | f | 8 | t + 657 | 25 | f | 9 | t + 658 | 25 | f | 10 | t + 659 | 25 | f | 11 | t + 660 | 25 | f | 12 | t + 661 | 25 | f | 13 | t + 662 | 25 | f | 14 | f + 663 | 25 | f | 15 | f + 664 | 25 | f | 16 | f + 665 | 25 | f | 17 | f + 666 | 25 | f | 18 | f + 667 | 25 | f | 19 | f + 668 | 25 | f | 20 | f + 669 | 25 | f | 21 | f + 670 | 25 | f | 22 | f + 671 | 25 | f | 23 | f + 672 | 25 | f | 24 | f + 673 | 25 | f | 25 | f + 674 | 25 | f | 26 | f + 675 | 25 | f | 27 | + 676 | 26 | f | 1 | t + 677 | 26 | f | 2 | t + 678 | 26 | f | 3 | t + 679 | 26 | f | 4 | t + 680 | 26 | f | 5 | t + 681 | 26 | f | 6 | t + 682 | 26 | f | 7 | t + 683 | 26 | f | 8 | t + 684 | 26 | f | 9 | t + 685 | 26 | f | 10 | t + 686 | 26 | f | 11 | t + 687 | 26 | f | 12 | t + 688 | 26 | f | 13 | t + 689 | 26 | f | 14 | f + 690 | 26 | f | 15 | f + 691 | 26 | f | 16 | f + 692 | 26 | f | 17 | f + 693 | 26 | f | 18 | f + 694 | 26 | f | 19 | f + 695 | 26 | f | 20 | f + 696 | 26 | f | 21 | f + 697 | 26 | f | 22 | f + 698 | 26 | f | 23 | f + 699 | 26 | f | 24 | f + 700 | 26 | f | 25 | f + 701 | 26 | f | 26 | f + 702 | 26 | f | 27 | + 703 | 27 | | 1 | t + 704 | 27 | | 2 | t + 705 | 27 | | 3 | t + 706 | 27 | | 4 | t + 707 | 27 | | 5 | t + 708 | 27 | | 6 | t + 709 | 27 | | 7 | t + 710 | 27 | | 8 | t + 711 | 27 | | 9 | t + 712 | 27 | | 10 | t + 713 | 27 | | 11 | t + 714 | 27 | | 12 | t + 715 | 27 | | 13 | t + 716 | 27 | | 14 | f + 717 | 27 | | 15 | f + 718 | 27 | | 16 | f + 719 | 27 | | 17 | f + 720 | 27 | | 18 | f + 721 | 27 | | 19 | f + 722 | 27 | | 20 | f + 723 | 27 | | 21 | f + 724 | 27 | | 22 | f + 725 | 27 | | 23 | f + 726 | 27 | | 24 | f + 727 | 27 | | 25 | f + 728 | 27 | | 26 | f + 729 | 27 | | 27 | +(729 rows) --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - QUERY PLAN --------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 70 | f | f | f | f - 71 | f | f | f | f - 72 | f | f | f | f - 73 | f | f | f | f - 74 | f | f | f | f - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 81 | f | f | f | f - 82 | f | f | f | f - 83 | f | f | f | f - 84 | f | f | f | f - 85 | f | t | f | t - 86 | f | f | f | f - 87 | f | t | f | t - 88 | f | | f | - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 92 | f | f | f | f - 93 | f | f | f | f - 94 | f | f | f | f - 95 | f | f | f | f - 96 | f | f | f | f - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 103 | f | f | f | f - 104 | f | f | f | f - 105 | f | f | f | f - 106 | f | f | f | f - 107 | f | t | f | t - 108 | f | f | f | f - 109 | f | t | f | t - 110 | f | | f | - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 114 | f | f | f | f - 115 | f | f | f | f - 116 | f | f | f | f - 117 | f | f | f | f - 118 | f | f | f | f - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 125 | f | f | f | f - 126 | f | f | f | f - 127 | f | f | f | f - 128 | f | f | f | f - 129 | f | t | f | t - 130 | f | f | f | f - 131 | f | t | f | t - 132 | f | | f | - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 136 | f | f | f | f - 137 | f | f | f | f - 138 | f | f | f | f - 139 | f | f | f | f - 140 | f | f | f | f - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 147 | f | f | f | f - 148 | f | f | f | f - 149 | f | f | f | f - 150 | f | f | f | f - 151 | f | t | f | t - 152 | f | f | f | f - 153 | f | t | f | t - 154 | f | | f | - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 158 | f | f | f | f - 159 | f | f | f | f - 160 | f | f | f | f - 161 | f | f | f | f - 162 | f | f | f | f - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 169 | f | f | f | f - 170 | f | f | f | f - 171 | f | f | f | f - 172 | f | f | f | f - 173 | f | t | f | t - 174 | f | f | f | f - 175 | f | t | f | t - 176 | f | | f | - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 312 | f | f | f | f - 313 | f | f | f | f - 314 | f | f | f | f - 315 | f | f | f | f - 316 | f | f | f | f - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 323 | f | f | f | f - 324 | f | f | f | f - 325 | f | f | f | f - 326 | f | f | f | f - 327 | f | t | f | t - 328 | f | f | f | f - 329 | f | t | f | t - 330 | f | | f | - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 334 | f | f | f | f - 335 | f | f | f | f - 336 | f | f | f | f - 337 | f | f | f | f - 338 | f | f | f | f - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 345 | f | f | f | f - 346 | f | f | f | f - 347 | f | f | f | f - 348 | f | f | f | f - 349 | f | t | f | t - 350 | f | f | f | f - 351 | f | t | f | t - 352 | f | | f | - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 356 | f | f | f | f - 357 | f | f | f | f - 358 | f | f | f | f - 359 | f | f | f | f - 360 | f | f | f | f - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 367 | f | f | f | f - 368 | f | f | f | f - 369 | f | f | f | f - 370 | f | f | f | f - 371 | f | t | f | t - 372 | f | f | f | f - 373 | f | t | f | t - 374 | f | | f | - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 378 | f | f | f | f - 379 | f | f | f | f - 380 | f | f | f | f - 381 | f | f | f | f - 382 | f | f | f | f - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 389 | f | f | f | f - 390 | f | f | f | f - 391 | f | f | f | f - 392 | f | f | f | f - 393 | f | t | f | t - 394 | f | f | f | f - 395 | f | t | f | t - 396 | f | | f | - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 422 | f | f | f | f - 423 | f | f | f | f - 424 | f | f | f | f - 425 | f | f | f | f - 426 | f | f | f | f - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 433 | f | f | f | f - 434 | f | f | f | f - 435 | f | f | f | f - 436 | f | f | f | f - 437 | f | t | f | t - 438 | f | f | f | f - 439 | f | t | f | t - 440 | f | | f | - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 466 | | f | f | - 467 | | f | f | - 468 | | f | f | - 469 | | f | f | - 470 | | f | f | - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 477 | | f | f | - 478 | | f | f | - 479 | | f | f | - 480 | | f | f | - 481 | | t | | t - 482 | | f | f | - 483 | | t | | t - 484 | | | | -(484 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + b1 | b2 | a | o +----+----+---+--- + f | f | f | f + f | t | f | t + f | | f | + t | f | f | t + t | t | t | t + t | | | t + | f | f | + | t | | t + | | | +(9 rows) --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 19 | t | t | t | t - 21 | t | t | t | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 41 | t | t | t | t - 43 | t | t | t | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 63 | t | t | t | t - 65 | t | t | t | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 195 | t | t | t | t - 197 | t | t | t | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 217 | t | t | t | t - 219 | t | t | t | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 239 | t | t | t | t - 241 | t | t | t | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 261 | t | t | t | t - 263 | t | t | t | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 283 | t | t | t | t - 285 | t | t | t | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 305 | t | t | t | t - 307 | t | t | t | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 415 | t | t | t | t - 417 | t | t | t | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 459 | t | t | t | t - 461 | t | t | t | t -(121 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + b1 | b2 | a | o +----+----+---+--- + t | t | t | t +(1 row) --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 85 | f | t | f | t - 87 | f | t | f | t - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 107 | f | t | f | t - 109 | f | t | f | t - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 129 | f | t | f | t - 131 | f | t | f | t - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 151 | f | t | f | t - 153 | f | t | f | t - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 173 | f | t | f | t - 175 | f | t | f | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 327 | f | t | f | t - 329 | f | t | f | t - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 349 | f | t | f | t - 351 | f | t | f | t - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 371 | f | t | f | t - 373 | f | t | f | t - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 393 | f | t | f | t - 395 | f | t | f | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 437 | f | t | f | t - 439 | f | t | f | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 481 | | t | | t - 483 | | t | | t -(363 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + b1 | b2 | a | o +----+----+---+--- + f | t | f | t + t | f | f | t + t | t | t | t + t | | | t + | t | | t +(5 rows) --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; ---Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | t | 1 | t - 2 | 1 | t | 2 | t - 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f - 9 | 1 | t | 9 | t - 10 | 1 | t | 10 | t - 11 | 1 | t | 11 | t - 12 | 1 | t | 12 | t - 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t - 15 | 1 | t | 15 | f - 16 | 1 | t | 16 | f - 17 | 1 | t | 17 | f - 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t - 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | | 1 | t - 68 | 4 | | 2 | t - 69 | 4 | | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | | 9 | t - 76 | 4 | | 10 | t - 77 | 4 | | 11 | t - 78 | 4 | | 12 | t - 79 | 4 | | 13 | t - 80 | 4 | | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | | 21 | t - 88 | 4 | | 22 | - 89 | 5 | | 1 | t - 90 | 5 | | 2 | t - 91 | 5 | | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | | 9 | t - 98 | 5 | | 10 | t - 99 | 5 | | 11 | t - 100 | 5 | | 12 | t - 101 | 5 | | 13 | t - 102 | 5 | | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | | 21 | t - 110 | 5 | | 22 | - 111 | 6 | | 1 | t - 112 | 6 | | 2 | t - 113 | 6 | | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | | 9 | t - 120 | 6 | | 10 | t - 121 | 6 | | 11 | t - 122 | 6 | | 12 | t - 123 | 6 | | 13 | t - 124 | 6 | | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | | 21 | t - 132 | 6 | | 22 | - 133 | 7 | | 1 | t - 134 | 7 | | 2 | t - 135 | 7 | | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | | 9 | t - 142 | 7 | | 10 | t - 143 | 7 | | 11 | t - 144 | 7 | | 12 | t - 145 | 7 | | 13 | t - 146 | 7 | | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | | 21 | t - 154 | 7 | | 22 | - 155 | 8 | | 1 | t - 156 | 8 | | 2 | t - 157 | 8 | | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | | 9 | t - 164 | 8 | | 10 | t - 165 | 8 | | 11 | t - 166 | 8 | | 12 | t - 167 | 8 | | 13 | t - 168 | 8 | | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | | 21 | t - 176 | 8 | | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | | 1 | t - 310 | 15 | | 2 | t - 311 | 15 | | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | | 9 | t - 318 | 15 | | 10 | t - 319 | 15 | | 11 | t - 320 | 15 | | 12 | t - 321 | 15 | | 13 | t - 322 | 15 | | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | | 21 | t - 330 | 15 | | 22 | - 331 | 16 | | 1 | t - 332 | 16 | | 2 | t - 333 | 16 | | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | | 9 | t - 340 | 16 | | 10 | t - 341 | 16 | | 11 | t - 342 | 16 | | 12 | t - 343 | 16 | | 13 | t - 344 | 16 | | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | | 21 | t - 352 | 16 | | 22 | - 353 | 17 | | 1 | t - 354 | 17 | | 2 | t - 355 | 17 | | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | | 9 | t - 362 | 17 | | 10 | t - 363 | 17 | | 11 | t - 364 | 17 | | 12 | t - 365 | 17 | | 13 | t - 366 | 17 | | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | | 21 | t - 374 | 17 | | 22 | - 375 | 18 | | 1 | t - 376 | 18 | | 2 | t - 377 | 18 | | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | | 9 | t - 384 | 18 | | 10 | t - 385 | 18 | | 11 | t - 386 | 18 | | 12 | t - 387 | 18 | | 13 | t - 388 | 18 | | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | | 21 | t - 396 | 18 | | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | | 1 | t - 420 | 20 | | 2 | t - 421 | 20 | | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | | 9 | t - 428 | 20 | | 10 | t - 429 | 20 | | 11 | t - 430 | 20 | | 12 | t - 431 | 20 | | 13 | t - 432 | 20 | | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | | 21 | t - 440 | 20 | | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + QUERY PLAN +----------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = NULL WHERE ((NOT sqlite_fdw_bool(`b1`))) +(3 rows) +--Testcase 67: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + t | f + t | t + t | + | f + | t + | +(6 rows) + --Testcase 69: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; QUERY PLAN @@ -2377,1269 +1207,58 @@ UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) (3 rows) ---Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - --Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | t + f | + | f + | +(5 rows) + +--Testcase 72: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------- +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------- Delete on public."type_BOOLEAN_oper" -> Foreign Delete on public."type_BOOLEAN_oper" - SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE ((NOT sqlite_fdw_bool(`b1`))) AND (sqlite_fdw_bool(`b2`)) (3 rows) ---Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | + | f + | +(4 rows) + --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 19 | 1 | f | 19 | t - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 41 | 2 | f | 19 | t - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 63 | 3 | f | 19 | t - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 85 | 4 | f | 19 | t - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 107 | 5 | f | 19 | t - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 129 | 6 | f | 19 | t - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 151 | 7 | f | 19 | t - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 173 | 8 | f | 19 | t - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 195 | 9 | f | 19 | t - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 217 | 10 | f | 19 | t - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 239 | 11 | f | 19 | t - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 261 | 12 | f | 19 | t - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 283 | 13 | f | 19 | t - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 305 | 14 | f | 19 | t - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 327 | 15 | f | 19 | t - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 349 | 16 | f | 19 | t - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 371 | 17 | f | 19 | t - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 393 | 18 | f | 19 | t - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 415 | 19 | f | 19 | t - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 437 | 20 | f | 19 | t - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 459 | 21 | f | 19 | t - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 481 | 22 | f | 19 | t - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(264 rows) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) + +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/13.11/extra/bool.out b/expected/13.11/extra/bool.out index 3d9bf96c..4083dbca 100644 --- a/expected/13.11/extra/bool.out +++ b/expected/13.11/extra/bool.out @@ -374,2000 +374,830 @@ SELECT * FROM "type_BOOLEAN_oper"; 1 | 1 | t | 1 | t 2 | 1 | t | 2 | t 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f + 4 | 1 | t | 4 | t + 5 | 1 | t | 5 | t + 6 | 1 | t | 6 | t + 7 | 1 | t | 7 | t + 8 | 1 | t | 8 | t 9 | 1 | t | 9 | t 10 | 1 | t | 10 | t 11 | 1 | t | 11 | t 12 | 1 | t | 12 | t 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t + 14 | 1 | t | 14 | f 15 | 1 | t | 15 | f 16 | 1 | t | 16 | f 17 | 1 | t | 17 | f 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t + 19 | 1 | t | 19 | f 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | f | 4 | f - 71 | 4 | f | 5 | f - 72 | 4 | f | 6 | f - 73 | 4 | f | 7 | f - 74 | 4 | f | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | f | 15 | f - 82 | 4 | f | 16 | f - 83 | 4 | f | 17 | f - 84 | 4 | f | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | f | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | f | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | f | 4 | f - 93 | 5 | f | 5 | f - 94 | 5 | f | 6 | f - 95 | 5 | f | 7 | f - 96 | 5 | f | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | f | 15 | f - 104 | 5 | f | 16 | f - 105 | 5 | f | 17 | f - 106 | 5 | f | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | f | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | f | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | f | 4 | f - 115 | 6 | f | 5 | f - 116 | 6 | f | 6 | f - 117 | 6 | f | 7 | f - 118 | 6 | f | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | f | 15 | f - 126 | 6 | f | 16 | f - 127 | 6 | f | 17 | f - 128 | 6 | f | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | f | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | f | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | f | 4 | f - 137 | 7 | f | 5 | f - 138 | 7 | f | 6 | f - 139 | 7 | f | 7 | f - 140 | 7 | f | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | f | 15 | f - 148 | 7 | f | 16 | f - 149 | 7 | f | 17 | f - 150 | 7 | f | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | f | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | f | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | f | 4 | f - 159 | 8 | f | 5 | f - 160 | 8 | f | 6 | f - 161 | 8 | f | 7 | f - 162 | 8 | f | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | f | 15 | f - 170 | 8 | f | 16 | f - 171 | 8 | f | 17 | f - 172 | 8 | f | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | f | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | f | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | f | 4 | f - 313 | 15 | f | 5 | f - 314 | 15 | f | 6 | f - 315 | 15 | f | 7 | f - 316 | 15 | f | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | f | 15 | f - 324 | 15 | f | 16 | f - 325 | 15 | f | 17 | f - 326 | 15 | f | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | f | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | f | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | f | 4 | f - 335 | 16 | f | 5 | f - 336 | 16 | f | 6 | f - 337 | 16 | f | 7 | f - 338 | 16 | f | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | f | 15 | f - 346 | 16 | f | 16 | f - 347 | 16 | f | 17 | f - 348 | 16 | f | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | f | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | f | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | f | 4 | f - 357 | 17 | f | 5 | f - 358 | 17 | f | 6 | f - 359 | 17 | f | 7 | f - 360 | 17 | f | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | f | 15 | f - 368 | 17 | f | 16 | f - 369 | 17 | f | 17 | f - 370 | 17 | f | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | f | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | f | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | f | 4 | f - 379 | 18 | f | 5 | f - 380 | 18 | f | 6 | f - 381 | 18 | f | 7 | f - 382 | 18 | f | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | f | 15 | f - 390 | 18 | f | 16 | f - 391 | 18 | f | 17 | f - 392 | 18 | f | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | f | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | f | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | f | 4 | f - 423 | 20 | f | 5 | f - 424 | 20 | f | 6 | f - 425 | 20 | f | 7 | f - 426 | 20 | f | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | f | 15 | f - 434 | 20 | f | 16 | f - 435 | 20 | f | 17 | f - 436 | 20 | f | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | f | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | f | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + 21 | 1 | t | 21 | f + 22 | 1 | t | 22 | f + 23 | 1 | t | 23 | f + 24 | 1 | t | 24 | f + 25 | 1 | t | 25 | f + 26 | 1 | t | 26 | f + 27 | 1 | t | 27 | + 28 | 2 | t | 1 | t + 29 | 2 | t | 2 | t + 30 | 2 | t | 3 | t + 31 | 2 | t | 4 | t + 32 | 2 | t | 5 | t + 33 | 2 | t | 6 | t + 34 | 2 | t | 7 | t + 35 | 2 | t | 8 | t + 36 | 2 | t | 9 | t + 37 | 2 | t | 10 | t + 38 | 2 | t | 11 | t + 39 | 2 | t | 12 | t + 40 | 2 | t | 13 | t + 41 | 2 | t | 14 | f + 42 | 2 | t | 15 | f + 43 | 2 | t | 16 | f + 44 | 2 | t | 17 | f + 45 | 2 | t | 18 | f + 46 | 2 | t | 19 | f + 47 | 2 | t | 20 | f + 48 | 2 | t | 21 | f + 49 | 2 | t | 22 | f + 50 | 2 | t | 23 | f + 51 | 2 | t | 24 | f + 52 | 2 | t | 25 | f + 53 | 2 | t | 26 | f + 54 | 2 | t | 27 | + 55 | 3 | t | 1 | t + 56 | 3 | t | 2 | t + 57 | 3 | t | 3 | t + 58 | 3 | t | 4 | t + 59 | 3 | t | 5 | t + 60 | 3 | t | 6 | t + 61 | 3 | t | 7 | t + 62 | 3 | t | 8 | t + 63 | 3 | t | 9 | t + 64 | 3 | t | 10 | t + 65 | 3 | t | 11 | t + 66 | 3 | t | 12 | t + 67 | 3 | t | 13 | t + 68 | 3 | t | 14 | f + 69 | 3 | t | 15 | f + 70 | 3 | t | 16 | f + 71 | 3 | t | 17 | f + 72 | 3 | t | 18 | f + 73 | 3 | t | 19 | f + 74 | 3 | t | 20 | f + 75 | 3 | t | 21 | f + 76 | 3 | t | 22 | f + 77 | 3 | t | 23 | f + 78 | 3 | t | 24 | f + 79 | 3 | t | 25 | f + 80 | 3 | t | 26 | f + 81 | 3 | t | 27 | + 82 | 4 | t | 1 | t + 83 | 4 | t | 2 | t + 84 | 4 | t | 3 | t + 85 | 4 | t | 4 | t + 86 | 4 | t | 5 | t + 87 | 4 | t | 6 | t + 88 | 4 | t | 7 | t + 89 | 4 | t | 8 | t + 90 | 4 | t | 9 | t + 91 | 4 | t | 10 | t + 92 | 4 | t | 11 | t + 93 | 4 | t | 12 | t + 94 | 4 | t | 13 | t + 95 | 4 | t | 14 | f + 96 | 4 | t | 15 | f + 97 | 4 | t | 16 | f + 98 | 4 | t | 17 | f + 99 | 4 | t | 18 | f + 100 | 4 | t | 19 | f + 101 | 4 | t | 20 | f + 102 | 4 | t | 21 | f + 103 | 4 | t | 22 | f + 104 | 4 | t | 23 | f + 105 | 4 | t | 24 | f + 106 | 4 | t | 25 | f + 107 | 4 | t | 26 | f + 108 | 4 | t | 27 | + 109 | 5 | t | 1 | t + 110 | 5 | t | 2 | t + 111 | 5 | t | 3 | t + 112 | 5 | t | 4 | t + 113 | 5 | t | 5 | t + 114 | 5 | t | 6 | t + 115 | 5 | t | 7 | t + 116 | 5 | t | 8 | t + 117 | 5 | t | 9 | t + 118 | 5 | t | 10 | t + 119 | 5 | t | 11 | t + 120 | 5 | t | 12 | t + 121 | 5 | t | 13 | t + 122 | 5 | t | 14 | f + 123 | 5 | t | 15 | f + 124 | 5 | t | 16 | f + 125 | 5 | t | 17 | f + 126 | 5 | t | 18 | f + 127 | 5 | t | 19 | f + 128 | 5 | t | 20 | f + 129 | 5 | t | 21 | f + 130 | 5 | t | 22 | f + 131 | 5 | t | 23 | f + 132 | 5 | t | 24 | f + 133 | 5 | t | 25 | f + 134 | 5 | t | 26 | f + 135 | 5 | t | 27 | + 136 | 6 | t | 1 | t + 137 | 6 | t | 2 | t + 138 | 6 | t | 3 | t + 139 | 6 | t | 4 | t + 140 | 6 | t | 5 | t + 141 | 6 | t | 6 | t + 142 | 6 | t | 7 | t + 143 | 6 | t | 8 | t + 144 | 6 | t | 9 | t + 145 | 6 | t | 10 | t + 146 | 6 | t | 11 | t + 147 | 6 | t | 12 | t + 148 | 6 | t | 13 | t + 149 | 6 | t | 14 | f + 150 | 6 | t | 15 | f + 151 | 6 | t | 16 | f + 152 | 6 | t | 17 | f + 153 | 6 | t | 18 | f + 154 | 6 | t | 19 | f + 155 | 6 | t | 20 | f + 156 | 6 | t | 21 | f + 157 | 6 | t | 22 | f + 158 | 6 | t | 23 | f + 159 | 6 | t | 24 | f + 160 | 6 | t | 25 | f + 161 | 6 | t | 26 | f + 162 | 6 | t | 27 | + 163 | 7 | t | 1 | t + 164 | 7 | t | 2 | t + 165 | 7 | t | 3 | t + 166 | 7 | t | 4 | t + 167 | 7 | t | 5 | t + 168 | 7 | t | 6 | t + 169 | 7 | t | 7 | t + 170 | 7 | t | 8 | t + 171 | 7 | t | 9 | t + 172 | 7 | t | 10 | t + 173 | 7 | t | 11 | t + 174 | 7 | t | 12 | t + 175 | 7 | t | 13 | t + 176 | 7 | t | 14 | f + 177 | 7 | t | 15 | f + 178 | 7 | t | 16 | f + 179 | 7 | t | 17 | f + 180 | 7 | t | 18 | f + 181 | 7 | t | 19 | f + 182 | 7 | t | 20 | f + 183 | 7 | t | 21 | f + 184 | 7 | t | 22 | f + 185 | 7 | t | 23 | f + 186 | 7 | t | 24 | f + 187 | 7 | t | 25 | f + 188 | 7 | t | 26 | f + 189 | 7 | t | 27 | + 190 | 8 | t | 1 | t + 191 | 8 | t | 2 | t + 192 | 8 | t | 3 | t + 193 | 8 | t | 4 | t + 194 | 8 | t | 5 | t + 195 | 8 | t | 6 | t + 196 | 8 | t | 7 | t + 197 | 8 | t | 8 | t + 198 | 8 | t | 9 | t + 199 | 8 | t | 10 | t + 200 | 8 | t | 11 | t + 201 | 8 | t | 12 | t + 202 | 8 | t | 13 | t + 203 | 8 | t | 14 | f + 204 | 8 | t | 15 | f + 205 | 8 | t | 16 | f + 206 | 8 | t | 17 | f + 207 | 8 | t | 18 | f + 208 | 8 | t | 19 | f + 209 | 8 | t | 20 | f + 210 | 8 | t | 21 | f + 211 | 8 | t | 22 | f + 212 | 8 | t | 23 | f + 213 | 8 | t | 24 | f + 214 | 8 | t | 25 | f + 215 | 8 | t | 26 | f + 216 | 8 | t | 27 | + 217 | 9 | t | 1 | t + 218 | 9 | t | 2 | t + 219 | 9 | t | 3 | t + 220 | 9 | t | 4 | t + 221 | 9 | t | 5 | t + 222 | 9 | t | 6 | t + 223 | 9 | t | 7 | t + 224 | 9 | t | 8 | t + 225 | 9 | t | 9 | t + 226 | 9 | t | 10 | t + 227 | 9 | t | 11 | t + 228 | 9 | t | 12 | t + 229 | 9 | t | 13 | t + 230 | 9 | t | 14 | f + 231 | 9 | t | 15 | f + 232 | 9 | t | 16 | f + 233 | 9 | t | 17 | f + 234 | 9 | t | 18 | f + 235 | 9 | t | 19 | f + 236 | 9 | t | 20 | f + 237 | 9 | t | 21 | f + 238 | 9 | t | 22 | f + 239 | 9 | t | 23 | f + 240 | 9 | t | 24 | f + 241 | 9 | t | 25 | f + 242 | 9 | t | 26 | f + 243 | 9 | t | 27 | + 244 | 10 | t | 1 | t + 245 | 10 | t | 2 | t + 246 | 10 | t | 3 | t + 247 | 10 | t | 4 | t + 248 | 10 | t | 5 | t + 249 | 10 | t | 6 | t + 250 | 10 | t | 7 | t + 251 | 10 | t | 8 | t + 252 | 10 | t | 9 | t + 253 | 10 | t | 10 | t + 254 | 10 | t | 11 | t + 255 | 10 | t | 12 | t + 256 | 10 | t | 13 | t + 257 | 10 | t | 14 | f + 258 | 10 | t | 15 | f + 259 | 10 | t | 16 | f + 260 | 10 | t | 17 | f + 261 | 10 | t | 18 | f + 262 | 10 | t | 19 | f + 263 | 10 | t | 20 | f + 264 | 10 | t | 21 | f + 265 | 10 | t | 22 | f + 266 | 10 | t | 23 | f + 267 | 10 | t | 24 | f + 268 | 10 | t | 25 | f + 269 | 10 | t | 26 | f + 270 | 10 | t | 27 | + 271 | 11 | t | 1 | t + 272 | 11 | t | 2 | t + 273 | 11 | t | 3 | t + 274 | 11 | t | 4 | t + 275 | 11 | t | 5 | t + 276 | 11 | t | 6 | t + 277 | 11 | t | 7 | t + 278 | 11 | t | 8 | t + 279 | 11 | t | 9 | t + 280 | 11 | t | 10 | t + 281 | 11 | t | 11 | t + 282 | 11 | t | 12 | t + 283 | 11 | t | 13 | t + 284 | 11 | t | 14 | f + 285 | 11 | t | 15 | f + 286 | 11 | t | 16 | f + 287 | 11 | t | 17 | f + 288 | 11 | t | 18 | f + 289 | 11 | t | 19 | f + 290 | 11 | t | 20 | f + 291 | 11 | t | 21 | f + 292 | 11 | t | 22 | f + 293 | 11 | t | 23 | f + 294 | 11 | t | 24 | f + 295 | 11 | t | 25 | f + 296 | 11 | t | 26 | f + 297 | 11 | t | 27 | + 298 | 12 | t | 1 | t + 299 | 12 | t | 2 | t + 300 | 12 | t | 3 | t + 301 | 12 | t | 4 | t + 302 | 12 | t | 5 | t + 303 | 12 | t | 6 | t + 304 | 12 | t | 7 | t + 305 | 12 | t | 8 | t + 306 | 12 | t | 9 | t + 307 | 12 | t | 10 | t + 308 | 12 | t | 11 | t + 309 | 12 | t | 12 | t + 310 | 12 | t | 13 | t + 311 | 12 | t | 14 | f + 312 | 12 | t | 15 | f + 313 | 12 | t | 16 | f + 314 | 12 | t | 17 | f + 315 | 12 | t | 18 | f + 316 | 12 | t | 19 | f + 317 | 12 | t | 20 | f + 318 | 12 | t | 21 | f + 319 | 12 | t | 22 | f + 320 | 12 | t | 23 | f + 321 | 12 | t | 24 | f + 322 | 12 | t | 25 | f + 323 | 12 | t | 26 | f + 324 | 12 | t | 27 | + 325 | 13 | t | 1 | t + 326 | 13 | t | 2 | t + 327 | 13 | t | 3 | t + 328 | 13 | t | 4 | t + 329 | 13 | t | 5 | t + 330 | 13 | t | 6 | t + 331 | 13 | t | 7 | t + 332 | 13 | t | 8 | t + 333 | 13 | t | 9 | t + 334 | 13 | t | 10 | t + 335 | 13 | t | 11 | t + 336 | 13 | t | 12 | t + 337 | 13 | t | 13 | t + 338 | 13 | t | 14 | f + 339 | 13 | t | 15 | f + 340 | 13 | t | 16 | f + 341 | 13 | t | 17 | f + 342 | 13 | t | 18 | f + 343 | 13 | t | 19 | f + 344 | 13 | t | 20 | f + 345 | 13 | t | 21 | f + 346 | 13 | t | 22 | f + 347 | 13 | t | 23 | f + 348 | 13 | t | 24 | f + 349 | 13 | t | 25 | f + 350 | 13 | t | 26 | f + 351 | 13 | t | 27 | + 352 | 14 | f | 1 | t + 353 | 14 | f | 2 | t + 354 | 14 | f | 3 | t + 355 | 14 | f | 4 | t + 356 | 14 | f | 5 | t + 357 | 14 | f | 6 | t + 358 | 14 | f | 7 | t + 359 | 14 | f | 8 | t + 360 | 14 | f | 9 | t + 361 | 14 | f | 10 | t + 362 | 14 | f | 11 | t + 363 | 14 | f | 12 | t + 364 | 14 | f | 13 | t + 365 | 14 | f | 14 | f + 366 | 14 | f | 15 | f + 367 | 14 | f | 16 | f + 368 | 14 | f | 17 | f + 369 | 14 | f | 18 | f + 370 | 14 | f | 19 | f + 371 | 14 | f | 20 | f + 372 | 14 | f | 21 | f + 373 | 14 | f | 22 | f + 374 | 14 | f | 23 | f + 375 | 14 | f | 24 | f + 376 | 14 | f | 25 | f + 377 | 14 | f | 26 | f + 378 | 14 | f | 27 | + 379 | 15 | f | 1 | t + 380 | 15 | f | 2 | t + 381 | 15 | f | 3 | t + 382 | 15 | f | 4 | t + 383 | 15 | f | 5 | t + 384 | 15 | f | 6 | t + 385 | 15 | f | 7 | t + 386 | 15 | f | 8 | t + 387 | 15 | f | 9 | t + 388 | 15 | f | 10 | t + 389 | 15 | f | 11 | t + 390 | 15 | f | 12 | t + 391 | 15 | f | 13 | t + 392 | 15 | f | 14 | f + 393 | 15 | f | 15 | f + 394 | 15 | f | 16 | f + 395 | 15 | f | 17 | f + 396 | 15 | f | 18 | f + 397 | 15 | f | 19 | f + 398 | 15 | f | 20 | f + 399 | 15 | f | 21 | f + 400 | 15 | f | 22 | f + 401 | 15 | f | 23 | f + 402 | 15 | f | 24 | f + 403 | 15 | f | 25 | f + 404 | 15 | f | 26 | f + 405 | 15 | f | 27 | + 406 | 16 | f | 1 | t + 407 | 16 | f | 2 | t + 408 | 16 | f | 3 | t + 409 | 16 | f | 4 | t + 410 | 16 | f | 5 | t + 411 | 16 | f | 6 | t + 412 | 16 | f | 7 | t + 413 | 16 | f | 8 | t + 414 | 16 | f | 9 | t + 415 | 16 | f | 10 | t + 416 | 16 | f | 11 | t + 417 | 16 | f | 12 | t + 418 | 16 | f | 13 | t + 419 | 16 | f | 14 | f + 420 | 16 | f | 15 | f + 421 | 16 | f | 16 | f + 422 | 16 | f | 17 | f + 423 | 16 | f | 18 | f + 424 | 16 | f | 19 | f + 425 | 16 | f | 20 | f + 426 | 16 | f | 21 | f + 427 | 16 | f | 22 | f + 428 | 16 | f | 23 | f + 429 | 16 | f | 24 | f + 430 | 16 | f | 25 | f + 431 | 16 | f | 26 | f + 432 | 16 | f | 27 | + 433 | 17 | f | 1 | t + 434 | 17 | f | 2 | t + 435 | 17 | f | 3 | t + 436 | 17 | f | 4 | t + 437 | 17 | f | 5 | t + 438 | 17 | f | 6 | t + 439 | 17 | f | 7 | t + 440 | 17 | f | 8 | t + 441 | 17 | f | 9 | t + 442 | 17 | f | 10 | t + 443 | 17 | f | 11 | t + 444 | 17 | f | 12 | t + 445 | 17 | f | 13 | t + 446 | 17 | f | 14 | f + 447 | 17 | f | 15 | f + 448 | 17 | f | 16 | f + 449 | 17 | f | 17 | f + 450 | 17 | f | 18 | f + 451 | 17 | f | 19 | f + 452 | 17 | f | 20 | f + 453 | 17 | f | 21 | f + 454 | 17 | f | 22 | f + 455 | 17 | f | 23 | f + 456 | 17 | f | 24 | f + 457 | 17 | f | 25 | f + 458 | 17 | f | 26 | f + 459 | 17 | f | 27 | + 460 | 18 | f | 1 | t + 461 | 18 | f | 2 | t + 462 | 18 | f | 3 | t + 463 | 18 | f | 4 | t + 464 | 18 | f | 5 | t + 465 | 18 | f | 6 | t + 466 | 18 | f | 7 | t + 467 | 18 | f | 8 | t + 468 | 18 | f | 9 | t + 469 | 18 | f | 10 | t + 470 | 18 | f | 11 | t + 471 | 18 | f | 12 | t + 472 | 18 | f | 13 | t + 473 | 18 | f | 14 | f + 474 | 18 | f | 15 | f + 475 | 18 | f | 16 | f + 476 | 18 | f | 17 | f + 477 | 18 | f | 18 | f + 478 | 18 | f | 19 | f + 479 | 18 | f | 20 | f + 480 | 18 | f | 21 | f + 481 | 18 | f | 22 | f + 482 | 18 | f | 23 | f + 483 | 18 | f | 24 | f + 484 | 18 | f | 25 | f + 485 | 18 | f | 26 | f + 486 | 18 | f | 27 | + 487 | 19 | f | 1 | t + 488 | 19 | f | 2 | t + 489 | 19 | f | 3 | t + 490 | 19 | f | 4 | t + 491 | 19 | f | 5 | t + 492 | 19 | f | 6 | t + 493 | 19 | f | 7 | t + 494 | 19 | f | 8 | t + 495 | 19 | f | 9 | t + 496 | 19 | f | 10 | t + 497 | 19 | f | 11 | t + 498 | 19 | f | 12 | t + 499 | 19 | f | 13 | t + 500 | 19 | f | 14 | f + 501 | 19 | f | 15 | f + 502 | 19 | f | 16 | f + 503 | 19 | f | 17 | f + 504 | 19 | f | 18 | f + 505 | 19 | f | 19 | f + 506 | 19 | f | 20 | f + 507 | 19 | f | 21 | f + 508 | 19 | f | 22 | f + 509 | 19 | f | 23 | f + 510 | 19 | f | 24 | f + 511 | 19 | f | 25 | f + 512 | 19 | f | 26 | f + 513 | 19 | f | 27 | + 514 | 20 | f | 1 | t + 515 | 20 | f | 2 | t + 516 | 20 | f | 3 | t + 517 | 20 | f | 4 | t + 518 | 20 | f | 5 | t + 519 | 20 | f | 6 | t + 520 | 20 | f | 7 | t + 521 | 20 | f | 8 | t + 522 | 20 | f | 9 | t + 523 | 20 | f | 10 | t + 524 | 20 | f | 11 | t + 525 | 20 | f | 12 | t + 526 | 20 | f | 13 | t + 527 | 20 | f | 14 | f + 528 | 20 | f | 15 | f + 529 | 20 | f | 16 | f + 530 | 20 | f | 17 | f + 531 | 20 | f | 18 | f + 532 | 20 | f | 19 | f + 533 | 20 | f | 20 | f + 534 | 20 | f | 21 | f + 535 | 20 | f | 22 | f + 536 | 20 | f | 23 | f + 537 | 20 | f | 24 | f + 538 | 20 | f | 25 | f + 539 | 20 | f | 26 | f + 540 | 20 | f | 27 | + 541 | 21 | f | 1 | t + 542 | 21 | f | 2 | t + 543 | 21 | f | 3 | t + 544 | 21 | f | 4 | t + 545 | 21 | f | 5 | t + 546 | 21 | f | 6 | t + 547 | 21 | f | 7 | t + 548 | 21 | f | 8 | t + 549 | 21 | f | 9 | t + 550 | 21 | f | 10 | t + 551 | 21 | f | 11 | t + 552 | 21 | f | 12 | t + 553 | 21 | f | 13 | t + 554 | 21 | f | 14 | f + 555 | 21 | f | 15 | f + 556 | 21 | f | 16 | f + 557 | 21 | f | 17 | f + 558 | 21 | f | 18 | f + 559 | 21 | f | 19 | f + 560 | 21 | f | 20 | f + 561 | 21 | f | 21 | f + 562 | 21 | f | 22 | f + 563 | 21 | f | 23 | f + 564 | 21 | f | 24 | f + 565 | 21 | f | 25 | f + 566 | 21 | f | 26 | f + 567 | 21 | f | 27 | + 568 | 22 | f | 1 | t + 569 | 22 | f | 2 | t + 570 | 22 | f | 3 | t + 571 | 22 | f | 4 | t + 572 | 22 | f | 5 | t + 573 | 22 | f | 6 | t + 574 | 22 | f | 7 | t + 575 | 22 | f | 8 | t + 576 | 22 | f | 9 | t + 577 | 22 | f | 10 | t + 578 | 22 | f | 11 | t + 579 | 22 | f | 12 | t + 580 | 22 | f | 13 | t + 581 | 22 | f | 14 | f + 582 | 22 | f | 15 | f + 583 | 22 | f | 16 | f + 584 | 22 | f | 17 | f + 585 | 22 | f | 18 | f + 586 | 22 | f | 19 | f + 587 | 22 | f | 20 | f + 588 | 22 | f | 21 | f + 589 | 22 | f | 22 | f + 590 | 22 | f | 23 | f + 591 | 22 | f | 24 | f + 592 | 22 | f | 25 | f + 593 | 22 | f | 26 | f + 594 | 22 | f | 27 | + 595 | 23 | f | 1 | t + 596 | 23 | f | 2 | t + 597 | 23 | f | 3 | t + 598 | 23 | f | 4 | t + 599 | 23 | f | 5 | t + 600 | 23 | f | 6 | t + 601 | 23 | f | 7 | t + 602 | 23 | f | 8 | t + 603 | 23 | f | 9 | t + 604 | 23 | f | 10 | t + 605 | 23 | f | 11 | t + 606 | 23 | f | 12 | t + 607 | 23 | f | 13 | t + 608 | 23 | f | 14 | f + 609 | 23 | f | 15 | f + 610 | 23 | f | 16 | f + 611 | 23 | f | 17 | f + 612 | 23 | f | 18 | f + 613 | 23 | f | 19 | f + 614 | 23 | f | 20 | f + 615 | 23 | f | 21 | f + 616 | 23 | f | 22 | f + 617 | 23 | f | 23 | f + 618 | 23 | f | 24 | f + 619 | 23 | f | 25 | f + 620 | 23 | f | 26 | f + 621 | 23 | f | 27 | + 622 | 24 | f | 1 | t + 623 | 24 | f | 2 | t + 624 | 24 | f | 3 | t + 625 | 24 | f | 4 | t + 626 | 24 | f | 5 | t + 627 | 24 | f | 6 | t + 628 | 24 | f | 7 | t + 629 | 24 | f | 8 | t + 630 | 24 | f | 9 | t + 631 | 24 | f | 10 | t + 632 | 24 | f | 11 | t + 633 | 24 | f | 12 | t + 634 | 24 | f | 13 | t + 635 | 24 | f | 14 | f + 636 | 24 | f | 15 | f + 637 | 24 | f | 16 | f + 638 | 24 | f | 17 | f + 639 | 24 | f | 18 | f + 640 | 24 | f | 19 | f + 641 | 24 | f | 20 | f + 642 | 24 | f | 21 | f + 643 | 24 | f | 22 | f + 644 | 24 | f | 23 | f + 645 | 24 | f | 24 | f + 646 | 24 | f | 25 | f + 647 | 24 | f | 26 | f + 648 | 24 | f | 27 | + 649 | 25 | f | 1 | t + 650 | 25 | f | 2 | t + 651 | 25 | f | 3 | t + 652 | 25 | f | 4 | t + 653 | 25 | f | 5 | t + 654 | 25 | f | 6 | t + 655 | 25 | f | 7 | t + 656 | 25 | f | 8 | t + 657 | 25 | f | 9 | t + 658 | 25 | f | 10 | t + 659 | 25 | f | 11 | t + 660 | 25 | f | 12 | t + 661 | 25 | f | 13 | t + 662 | 25 | f | 14 | f + 663 | 25 | f | 15 | f + 664 | 25 | f | 16 | f + 665 | 25 | f | 17 | f + 666 | 25 | f | 18 | f + 667 | 25 | f | 19 | f + 668 | 25 | f | 20 | f + 669 | 25 | f | 21 | f + 670 | 25 | f | 22 | f + 671 | 25 | f | 23 | f + 672 | 25 | f | 24 | f + 673 | 25 | f | 25 | f + 674 | 25 | f | 26 | f + 675 | 25 | f | 27 | + 676 | 26 | f | 1 | t + 677 | 26 | f | 2 | t + 678 | 26 | f | 3 | t + 679 | 26 | f | 4 | t + 680 | 26 | f | 5 | t + 681 | 26 | f | 6 | t + 682 | 26 | f | 7 | t + 683 | 26 | f | 8 | t + 684 | 26 | f | 9 | t + 685 | 26 | f | 10 | t + 686 | 26 | f | 11 | t + 687 | 26 | f | 12 | t + 688 | 26 | f | 13 | t + 689 | 26 | f | 14 | f + 690 | 26 | f | 15 | f + 691 | 26 | f | 16 | f + 692 | 26 | f | 17 | f + 693 | 26 | f | 18 | f + 694 | 26 | f | 19 | f + 695 | 26 | f | 20 | f + 696 | 26 | f | 21 | f + 697 | 26 | f | 22 | f + 698 | 26 | f | 23 | f + 699 | 26 | f | 24 | f + 700 | 26 | f | 25 | f + 701 | 26 | f | 26 | f + 702 | 26 | f | 27 | + 703 | 27 | | 1 | t + 704 | 27 | | 2 | t + 705 | 27 | | 3 | t + 706 | 27 | | 4 | t + 707 | 27 | | 5 | t + 708 | 27 | | 6 | t + 709 | 27 | | 7 | t + 710 | 27 | | 8 | t + 711 | 27 | | 9 | t + 712 | 27 | | 10 | t + 713 | 27 | | 11 | t + 714 | 27 | | 12 | t + 715 | 27 | | 13 | t + 716 | 27 | | 14 | f + 717 | 27 | | 15 | f + 718 | 27 | | 16 | f + 719 | 27 | | 17 | f + 720 | 27 | | 18 | f + 721 | 27 | | 19 | f + 722 | 27 | | 20 | f + 723 | 27 | | 21 | f + 724 | 27 | | 22 | f + 725 | 27 | | 23 | f + 726 | 27 | | 24 | f + 727 | 27 | | 25 | f + 728 | 27 | | 26 | f + 729 | 27 | | 27 | +(729 rows) --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - QUERY PLAN --------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 70 | f | f | f | f - 71 | f | f | f | f - 72 | f | f | f | f - 73 | f | f | f | f - 74 | f | f | f | f - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 81 | f | f | f | f - 82 | f | f | f | f - 83 | f | f | f | f - 84 | f | f | f | f - 85 | f | t | f | t - 86 | f | f | f | f - 87 | f | t | f | t - 88 | f | | f | - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 92 | f | f | f | f - 93 | f | f | f | f - 94 | f | f | f | f - 95 | f | f | f | f - 96 | f | f | f | f - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 103 | f | f | f | f - 104 | f | f | f | f - 105 | f | f | f | f - 106 | f | f | f | f - 107 | f | t | f | t - 108 | f | f | f | f - 109 | f | t | f | t - 110 | f | | f | - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 114 | f | f | f | f - 115 | f | f | f | f - 116 | f | f | f | f - 117 | f | f | f | f - 118 | f | f | f | f - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 125 | f | f | f | f - 126 | f | f | f | f - 127 | f | f | f | f - 128 | f | f | f | f - 129 | f | t | f | t - 130 | f | f | f | f - 131 | f | t | f | t - 132 | f | | f | - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 136 | f | f | f | f - 137 | f | f | f | f - 138 | f | f | f | f - 139 | f | f | f | f - 140 | f | f | f | f - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 147 | f | f | f | f - 148 | f | f | f | f - 149 | f | f | f | f - 150 | f | f | f | f - 151 | f | t | f | t - 152 | f | f | f | f - 153 | f | t | f | t - 154 | f | | f | - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 158 | f | f | f | f - 159 | f | f | f | f - 160 | f | f | f | f - 161 | f | f | f | f - 162 | f | f | f | f - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 169 | f | f | f | f - 170 | f | f | f | f - 171 | f | f | f | f - 172 | f | f | f | f - 173 | f | t | f | t - 174 | f | f | f | f - 175 | f | t | f | t - 176 | f | | f | - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 312 | f | f | f | f - 313 | f | f | f | f - 314 | f | f | f | f - 315 | f | f | f | f - 316 | f | f | f | f - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 323 | f | f | f | f - 324 | f | f | f | f - 325 | f | f | f | f - 326 | f | f | f | f - 327 | f | t | f | t - 328 | f | f | f | f - 329 | f | t | f | t - 330 | f | | f | - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 334 | f | f | f | f - 335 | f | f | f | f - 336 | f | f | f | f - 337 | f | f | f | f - 338 | f | f | f | f - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 345 | f | f | f | f - 346 | f | f | f | f - 347 | f | f | f | f - 348 | f | f | f | f - 349 | f | t | f | t - 350 | f | f | f | f - 351 | f | t | f | t - 352 | f | | f | - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 356 | f | f | f | f - 357 | f | f | f | f - 358 | f | f | f | f - 359 | f | f | f | f - 360 | f | f | f | f - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 367 | f | f | f | f - 368 | f | f | f | f - 369 | f | f | f | f - 370 | f | f | f | f - 371 | f | t | f | t - 372 | f | f | f | f - 373 | f | t | f | t - 374 | f | | f | - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 378 | f | f | f | f - 379 | f | f | f | f - 380 | f | f | f | f - 381 | f | f | f | f - 382 | f | f | f | f - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 389 | f | f | f | f - 390 | f | f | f | f - 391 | f | f | f | f - 392 | f | f | f | f - 393 | f | t | f | t - 394 | f | f | f | f - 395 | f | t | f | t - 396 | f | | f | - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 422 | f | f | f | f - 423 | f | f | f | f - 424 | f | f | f | f - 425 | f | f | f | f - 426 | f | f | f | f - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 433 | f | f | f | f - 434 | f | f | f | f - 435 | f | f | f | f - 436 | f | f | f | f - 437 | f | t | f | t - 438 | f | f | f | f - 439 | f | t | f | t - 440 | f | | f | - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 466 | | f | f | - 467 | | f | f | - 468 | | f | f | - 469 | | f | f | - 470 | | f | f | - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 477 | | f | f | - 478 | | f | f | - 479 | | f | f | - 480 | | f | f | - 481 | | t | | t - 482 | | f | f | - 483 | | t | | t - 484 | | | | -(484 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + b1 | b2 | a | o +----+----+---+--- + f | f | f | f + f | t | f | t + f | | f | + t | f | f | t + t | t | t | t + t | | | t + | f | f | + | t | | t + | | | +(9 rows) --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 19 | t | t | t | t - 21 | t | t | t | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 41 | t | t | t | t - 43 | t | t | t | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 63 | t | t | t | t - 65 | t | t | t | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 195 | t | t | t | t - 197 | t | t | t | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 217 | t | t | t | t - 219 | t | t | t | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 239 | t | t | t | t - 241 | t | t | t | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 261 | t | t | t | t - 263 | t | t | t | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 283 | t | t | t | t - 285 | t | t | t | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 305 | t | t | t | t - 307 | t | t | t | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 415 | t | t | t | t - 417 | t | t | t | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 459 | t | t | t | t - 461 | t | t | t | t -(121 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + b1 | b2 | a | o +----+----+---+--- + t | t | t | t +(1 row) --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 85 | f | t | f | t - 87 | f | t | f | t - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 107 | f | t | f | t - 109 | f | t | f | t - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 129 | f | t | f | t - 131 | f | t | f | t - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 151 | f | t | f | t - 153 | f | t | f | t - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 173 | f | t | f | t - 175 | f | t | f | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 327 | f | t | f | t - 329 | f | t | f | t - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 349 | f | t | f | t - 351 | f | t | f | t - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 371 | f | t | f | t - 373 | f | t | f | t - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 393 | f | t | f | t - 395 | f | t | f | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 437 | f | t | f | t - 439 | f | t | f | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 481 | | t | | t - 483 | | t | | t -(363 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + b1 | b2 | a | o +----+----+---+--- + f | t | f | t + t | f | f | t + t | t | t | t + t | | | t + | t | | t +(5 rows) --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; ---Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | t | 1 | t - 2 | 1 | t | 2 | t - 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f - 9 | 1 | t | 9 | t - 10 | 1 | t | 10 | t - 11 | 1 | t | 11 | t - 12 | 1 | t | 12 | t - 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t - 15 | 1 | t | 15 | f - 16 | 1 | t | 16 | f - 17 | 1 | t | 17 | f - 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t - 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | | 1 | t - 68 | 4 | | 2 | t - 69 | 4 | | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | | 9 | t - 76 | 4 | | 10 | t - 77 | 4 | | 11 | t - 78 | 4 | | 12 | t - 79 | 4 | | 13 | t - 80 | 4 | | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | | 21 | t - 88 | 4 | | 22 | - 89 | 5 | | 1 | t - 90 | 5 | | 2 | t - 91 | 5 | | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | | 9 | t - 98 | 5 | | 10 | t - 99 | 5 | | 11 | t - 100 | 5 | | 12 | t - 101 | 5 | | 13 | t - 102 | 5 | | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | | 21 | t - 110 | 5 | | 22 | - 111 | 6 | | 1 | t - 112 | 6 | | 2 | t - 113 | 6 | | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | | 9 | t - 120 | 6 | | 10 | t - 121 | 6 | | 11 | t - 122 | 6 | | 12 | t - 123 | 6 | | 13 | t - 124 | 6 | | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | | 21 | t - 132 | 6 | | 22 | - 133 | 7 | | 1 | t - 134 | 7 | | 2 | t - 135 | 7 | | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | | 9 | t - 142 | 7 | | 10 | t - 143 | 7 | | 11 | t - 144 | 7 | | 12 | t - 145 | 7 | | 13 | t - 146 | 7 | | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | | 21 | t - 154 | 7 | | 22 | - 155 | 8 | | 1 | t - 156 | 8 | | 2 | t - 157 | 8 | | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | | 9 | t - 164 | 8 | | 10 | t - 165 | 8 | | 11 | t - 166 | 8 | | 12 | t - 167 | 8 | | 13 | t - 168 | 8 | | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | | 21 | t - 176 | 8 | | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | | 1 | t - 310 | 15 | | 2 | t - 311 | 15 | | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | | 9 | t - 318 | 15 | | 10 | t - 319 | 15 | | 11 | t - 320 | 15 | | 12 | t - 321 | 15 | | 13 | t - 322 | 15 | | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | | 21 | t - 330 | 15 | | 22 | - 331 | 16 | | 1 | t - 332 | 16 | | 2 | t - 333 | 16 | | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | | 9 | t - 340 | 16 | | 10 | t - 341 | 16 | | 11 | t - 342 | 16 | | 12 | t - 343 | 16 | | 13 | t - 344 | 16 | | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | | 21 | t - 352 | 16 | | 22 | - 353 | 17 | | 1 | t - 354 | 17 | | 2 | t - 355 | 17 | | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | | 9 | t - 362 | 17 | | 10 | t - 363 | 17 | | 11 | t - 364 | 17 | | 12 | t - 365 | 17 | | 13 | t - 366 | 17 | | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | | 21 | t - 374 | 17 | | 22 | - 375 | 18 | | 1 | t - 376 | 18 | | 2 | t - 377 | 18 | | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | | 9 | t - 384 | 18 | | 10 | t - 385 | 18 | | 11 | t - 386 | 18 | | 12 | t - 387 | 18 | | 13 | t - 388 | 18 | | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | | 21 | t - 396 | 18 | | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | | 1 | t - 420 | 20 | | 2 | t - 421 | 20 | | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | | 9 | t - 428 | 20 | | 10 | t - 429 | 20 | | 11 | t - 430 | 20 | | 12 | t - 431 | 20 | | 13 | t - 432 | 20 | | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | | 21 | t - 440 | 20 | | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + QUERY PLAN +----------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = NULL WHERE ((NOT sqlite_fdw_bool(`b1`))) +(3 rows) +--Testcase 67: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + t | f + t | t + t | + | f + | t + | +(6 rows) + --Testcase 69: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; QUERY PLAN @@ -2377,1269 +1207,58 @@ UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) (3 rows) ---Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - --Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | t + f | + | f + | +(5 rows) + +--Testcase 72: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------- +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------- Delete on public."type_BOOLEAN_oper" -> Foreign Delete on public."type_BOOLEAN_oper" - SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE ((NOT sqlite_fdw_bool(`b1`))) AND (sqlite_fdw_bool(`b2`)) (3 rows) ---Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | + | f + | +(4 rows) + --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 19 | 1 | f | 19 | t - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 41 | 2 | f | 19 | t - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 63 | 3 | f | 19 | t - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 85 | 4 | f | 19 | t - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 107 | 5 | f | 19 | t - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 129 | 6 | f | 19 | t - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 151 | 7 | f | 19 | t - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 173 | 8 | f | 19 | t - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 195 | 9 | f | 19 | t - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 217 | 10 | f | 19 | t - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 239 | 11 | f | 19 | t - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 261 | 12 | f | 19 | t - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 283 | 13 | f | 19 | t - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 305 | 14 | f | 19 | t - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 327 | 15 | f | 19 | t - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 349 | 16 | f | 19 | t - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 371 | 17 | f | 19 | t - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 393 | 18 | f | 19 | t - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 415 | 19 | f | 19 | t - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 437 | 20 | f | 19 | t - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 459 | 21 | f | 19 | t - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 481 | 22 | f | 19 | t - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(264 rows) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) + +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/14.8/extra/bool.out b/expected/14.8/extra/bool.out index 3d9bf96c..4083dbca 100644 --- a/expected/14.8/extra/bool.out +++ b/expected/14.8/extra/bool.out @@ -374,2000 +374,830 @@ SELECT * FROM "type_BOOLEAN_oper"; 1 | 1 | t | 1 | t 2 | 1 | t | 2 | t 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f + 4 | 1 | t | 4 | t + 5 | 1 | t | 5 | t + 6 | 1 | t | 6 | t + 7 | 1 | t | 7 | t + 8 | 1 | t | 8 | t 9 | 1 | t | 9 | t 10 | 1 | t | 10 | t 11 | 1 | t | 11 | t 12 | 1 | t | 12 | t 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t + 14 | 1 | t | 14 | f 15 | 1 | t | 15 | f 16 | 1 | t | 16 | f 17 | 1 | t | 17 | f 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t + 19 | 1 | t | 19 | f 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | f | 4 | f - 71 | 4 | f | 5 | f - 72 | 4 | f | 6 | f - 73 | 4 | f | 7 | f - 74 | 4 | f | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | f | 15 | f - 82 | 4 | f | 16 | f - 83 | 4 | f | 17 | f - 84 | 4 | f | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | f | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | f | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | f | 4 | f - 93 | 5 | f | 5 | f - 94 | 5 | f | 6 | f - 95 | 5 | f | 7 | f - 96 | 5 | f | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | f | 15 | f - 104 | 5 | f | 16 | f - 105 | 5 | f | 17 | f - 106 | 5 | f | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | f | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | f | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | f | 4 | f - 115 | 6 | f | 5 | f - 116 | 6 | f | 6 | f - 117 | 6 | f | 7 | f - 118 | 6 | f | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | f | 15 | f - 126 | 6 | f | 16 | f - 127 | 6 | f | 17 | f - 128 | 6 | f | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | f | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | f | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | f | 4 | f - 137 | 7 | f | 5 | f - 138 | 7 | f | 6 | f - 139 | 7 | f | 7 | f - 140 | 7 | f | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | f | 15 | f - 148 | 7 | f | 16 | f - 149 | 7 | f | 17 | f - 150 | 7 | f | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | f | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | f | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | f | 4 | f - 159 | 8 | f | 5 | f - 160 | 8 | f | 6 | f - 161 | 8 | f | 7 | f - 162 | 8 | f | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | f | 15 | f - 170 | 8 | f | 16 | f - 171 | 8 | f | 17 | f - 172 | 8 | f | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | f | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | f | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | f | 4 | f - 313 | 15 | f | 5 | f - 314 | 15 | f | 6 | f - 315 | 15 | f | 7 | f - 316 | 15 | f | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | f | 15 | f - 324 | 15 | f | 16 | f - 325 | 15 | f | 17 | f - 326 | 15 | f | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | f | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | f | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | f | 4 | f - 335 | 16 | f | 5 | f - 336 | 16 | f | 6 | f - 337 | 16 | f | 7 | f - 338 | 16 | f | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | f | 15 | f - 346 | 16 | f | 16 | f - 347 | 16 | f | 17 | f - 348 | 16 | f | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | f | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | f | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | f | 4 | f - 357 | 17 | f | 5 | f - 358 | 17 | f | 6 | f - 359 | 17 | f | 7 | f - 360 | 17 | f | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | f | 15 | f - 368 | 17 | f | 16 | f - 369 | 17 | f | 17 | f - 370 | 17 | f | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | f | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | f | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | f | 4 | f - 379 | 18 | f | 5 | f - 380 | 18 | f | 6 | f - 381 | 18 | f | 7 | f - 382 | 18 | f | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | f | 15 | f - 390 | 18 | f | 16 | f - 391 | 18 | f | 17 | f - 392 | 18 | f | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | f | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | f | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | f | 4 | f - 423 | 20 | f | 5 | f - 424 | 20 | f | 6 | f - 425 | 20 | f | 7 | f - 426 | 20 | f | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | f | 15 | f - 434 | 20 | f | 16 | f - 435 | 20 | f | 17 | f - 436 | 20 | f | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | f | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | f | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + 21 | 1 | t | 21 | f + 22 | 1 | t | 22 | f + 23 | 1 | t | 23 | f + 24 | 1 | t | 24 | f + 25 | 1 | t | 25 | f + 26 | 1 | t | 26 | f + 27 | 1 | t | 27 | + 28 | 2 | t | 1 | t + 29 | 2 | t | 2 | t + 30 | 2 | t | 3 | t + 31 | 2 | t | 4 | t + 32 | 2 | t | 5 | t + 33 | 2 | t | 6 | t + 34 | 2 | t | 7 | t + 35 | 2 | t | 8 | t + 36 | 2 | t | 9 | t + 37 | 2 | t | 10 | t + 38 | 2 | t | 11 | t + 39 | 2 | t | 12 | t + 40 | 2 | t | 13 | t + 41 | 2 | t | 14 | f + 42 | 2 | t | 15 | f + 43 | 2 | t | 16 | f + 44 | 2 | t | 17 | f + 45 | 2 | t | 18 | f + 46 | 2 | t | 19 | f + 47 | 2 | t | 20 | f + 48 | 2 | t | 21 | f + 49 | 2 | t | 22 | f + 50 | 2 | t | 23 | f + 51 | 2 | t | 24 | f + 52 | 2 | t | 25 | f + 53 | 2 | t | 26 | f + 54 | 2 | t | 27 | + 55 | 3 | t | 1 | t + 56 | 3 | t | 2 | t + 57 | 3 | t | 3 | t + 58 | 3 | t | 4 | t + 59 | 3 | t | 5 | t + 60 | 3 | t | 6 | t + 61 | 3 | t | 7 | t + 62 | 3 | t | 8 | t + 63 | 3 | t | 9 | t + 64 | 3 | t | 10 | t + 65 | 3 | t | 11 | t + 66 | 3 | t | 12 | t + 67 | 3 | t | 13 | t + 68 | 3 | t | 14 | f + 69 | 3 | t | 15 | f + 70 | 3 | t | 16 | f + 71 | 3 | t | 17 | f + 72 | 3 | t | 18 | f + 73 | 3 | t | 19 | f + 74 | 3 | t | 20 | f + 75 | 3 | t | 21 | f + 76 | 3 | t | 22 | f + 77 | 3 | t | 23 | f + 78 | 3 | t | 24 | f + 79 | 3 | t | 25 | f + 80 | 3 | t | 26 | f + 81 | 3 | t | 27 | + 82 | 4 | t | 1 | t + 83 | 4 | t | 2 | t + 84 | 4 | t | 3 | t + 85 | 4 | t | 4 | t + 86 | 4 | t | 5 | t + 87 | 4 | t | 6 | t + 88 | 4 | t | 7 | t + 89 | 4 | t | 8 | t + 90 | 4 | t | 9 | t + 91 | 4 | t | 10 | t + 92 | 4 | t | 11 | t + 93 | 4 | t | 12 | t + 94 | 4 | t | 13 | t + 95 | 4 | t | 14 | f + 96 | 4 | t | 15 | f + 97 | 4 | t | 16 | f + 98 | 4 | t | 17 | f + 99 | 4 | t | 18 | f + 100 | 4 | t | 19 | f + 101 | 4 | t | 20 | f + 102 | 4 | t | 21 | f + 103 | 4 | t | 22 | f + 104 | 4 | t | 23 | f + 105 | 4 | t | 24 | f + 106 | 4 | t | 25 | f + 107 | 4 | t | 26 | f + 108 | 4 | t | 27 | + 109 | 5 | t | 1 | t + 110 | 5 | t | 2 | t + 111 | 5 | t | 3 | t + 112 | 5 | t | 4 | t + 113 | 5 | t | 5 | t + 114 | 5 | t | 6 | t + 115 | 5 | t | 7 | t + 116 | 5 | t | 8 | t + 117 | 5 | t | 9 | t + 118 | 5 | t | 10 | t + 119 | 5 | t | 11 | t + 120 | 5 | t | 12 | t + 121 | 5 | t | 13 | t + 122 | 5 | t | 14 | f + 123 | 5 | t | 15 | f + 124 | 5 | t | 16 | f + 125 | 5 | t | 17 | f + 126 | 5 | t | 18 | f + 127 | 5 | t | 19 | f + 128 | 5 | t | 20 | f + 129 | 5 | t | 21 | f + 130 | 5 | t | 22 | f + 131 | 5 | t | 23 | f + 132 | 5 | t | 24 | f + 133 | 5 | t | 25 | f + 134 | 5 | t | 26 | f + 135 | 5 | t | 27 | + 136 | 6 | t | 1 | t + 137 | 6 | t | 2 | t + 138 | 6 | t | 3 | t + 139 | 6 | t | 4 | t + 140 | 6 | t | 5 | t + 141 | 6 | t | 6 | t + 142 | 6 | t | 7 | t + 143 | 6 | t | 8 | t + 144 | 6 | t | 9 | t + 145 | 6 | t | 10 | t + 146 | 6 | t | 11 | t + 147 | 6 | t | 12 | t + 148 | 6 | t | 13 | t + 149 | 6 | t | 14 | f + 150 | 6 | t | 15 | f + 151 | 6 | t | 16 | f + 152 | 6 | t | 17 | f + 153 | 6 | t | 18 | f + 154 | 6 | t | 19 | f + 155 | 6 | t | 20 | f + 156 | 6 | t | 21 | f + 157 | 6 | t | 22 | f + 158 | 6 | t | 23 | f + 159 | 6 | t | 24 | f + 160 | 6 | t | 25 | f + 161 | 6 | t | 26 | f + 162 | 6 | t | 27 | + 163 | 7 | t | 1 | t + 164 | 7 | t | 2 | t + 165 | 7 | t | 3 | t + 166 | 7 | t | 4 | t + 167 | 7 | t | 5 | t + 168 | 7 | t | 6 | t + 169 | 7 | t | 7 | t + 170 | 7 | t | 8 | t + 171 | 7 | t | 9 | t + 172 | 7 | t | 10 | t + 173 | 7 | t | 11 | t + 174 | 7 | t | 12 | t + 175 | 7 | t | 13 | t + 176 | 7 | t | 14 | f + 177 | 7 | t | 15 | f + 178 | 7 | t | 16 | f + 179 | 7 | t | 17 | f + 180 | 7 | t | 18 | f + 181 | 7 | t | 19 | f + 182 | 7 | t | 20 | f + 183 | 7 | t | 21 | f + 184 | 7 | t | 22 | f + 185 | 7 | t | 23 | f + 186 | 7 | t | 24 | f + 187 | 7 | t | 25 | f + 188 | 7 | t | 26 | f + 189 | 7 | t | 27 | + 190 | 8 | t | 1 | t + 191 | 8 | t | 2 | t + 192 | 8 | t | 3 | t + 193 | 8 | t | 4 | t + 194 | 8 | t | 5 | t + 195 | 8 | t | 6 | t + 196 | 8 | t | 7 | t + 197 | 8 | t | 8 | t + 198 | 8 | t | 9 | t + 199 | 8 | t | 10 | t + 200 | 8 | t | 11 | t + 201 | 8 | t | 12 | t + 202 | 8 | t | 13 | t + 203 | 8 | t | 14 | f + 204 | 8 | t | 15 | f + 205 | 8 | t | 16 | f + 206 | 8 | t | 17 | f + 207 | 8 | t | 18 | f + 208 | 8 | t | 19 | f + 209 | 8 | t | 20 | f + 210 | 8 | t | 21 | f + 211 | 8 | t | 22 | f + 212 | 8 | t | 23 | f + 213 | 8 | t | 24 | f + 214 | 8 | t | 25 | f + 215 | 8 | t | 26 | f + 216 | 8 | t | 27 | + 217 | 9 | t | 1 | t + 218 | 9 | t | 2 | t + 219 | 9 | t | 3 | t + 220 | 9 | t | 4 | t + 221 | 9 | t | 5 | t + 222 | 9 | t | 6 | t + 223 | 9 | t | 7 | t + 224 | 9 | t | 8 | t + 225 | 9 | t | 9 | t + 226 | 9 | t | 10 | t + 227 | 9 | t | 11 | t + 228 | 9 | t | 12 | t + 229 | 9 | t | 13 | t + 230 | 9 | t | 14 | f + 231 | 9 | t | 15 | f + 232 | 9 | t | 16 | f + 233 | 9 | t | 17 | f + 234 | 9 | t | 18 | f + 235 | 9 | t | 19 | f + 236 | 9 | t | 20 | f + 237 | 9 | t | 21 | f + 238 | 9 | t | 22 | f + 239 | 9 | t | 23 | f + 240 | 9 | t | 24 | f + 241 | 9 | t | 25 | f + 242 | 9 | t | 26 | f + 243 | 9 | t | 27 | + 244 | 10 | t | 1 | t + 245 | 10 | t | 2 | t + 246 | 10 | t | 3 | t + 247 | 10 | t | 4 | t + 248 | 10 | t | 5 | t + 249 | 10 | t | 6 | t + 250 | 10 | t | 7 | t + 251 | 10 | t | 8 | t + 252 | 10 | t | 9 | t + 253 | 10 | t | 10 | t + 254 | 10 | t | 11 | t + 255 | 10 | t | 12 | t + 256 | 10 | t | 13 | t + 257 | 10 | t | 14 | f + 258 | 10 | t | 15 | f + 259 | 10 | t | 16 | f + 260 | 10 | t | 17 | f + 261 | 10 | t | 18 | f + 262 | 10 | t | 19 | f + 263 | 10 | t | 20 | f + 264 | 10 | t | 21 | f + 265 | 10 | t | 22 | f + 266 | 10 | t | 23 | f + 267 | 10 | t | 24 | f + 268 | 10 | t | 25 | f + 269 | 10 | t | 26 | f + 270 | 10 | t | 27 | + 271 | 11 | t | 1 | t + 272 | 11 | t | 2 | t + 273 | 11 | t | 3 | t + 274 | 11 | t | 4 | t + 275 | 11 | t | 5 | t + 276 | 11 | t | 6 | t + 277 | 11 | t | 7 | t + 278 | 11 | t | 8 | t + 279 | 11 | t | 9 | t + 280 | 11 | t | 10 | t + 281 | 11 | t | 11 | t + 282 | 11 | t | 12 | t + 283 | 11 | t | 13 | t + 284 | 11 | t | 14 | f + 285 | 11 | t | 15 | f + 286 | 11 | t | 16 | f + 287 | 11 | t | 17 | f + 288 | 11 | t | 18 | f + 289 | 11 | t | 19 | f + 290 | 11 | t | 20 | f + 291 | 11 | t | 21 | f + 292 | 11 | t | 22 | f + 293 | 11 | t | 23 | f + 294 | 11 | t | 24 | f + 295 | 11 | t | 25 | f + 296 | 11 | t | 26 | f + 297 | 11 | t | 27 | + 298 | 12 | t | 1 | t + 299 | 12 | t | 2 | t + 300 | 12 | t | 3 | t + 301 | 12 | t | 4 | t + 302 | 12 | t | 5 | t + 303 | 12 | t | 6 | t + 304 | 12 | t | 7 | t + 305 | 12 | t | 8 | t + 306 | 12 | t | 9 | t + 307 | 12 | t | 10 | t + 308 | 12 | t | 11 | t + 309 | 12 | t | 12 | t + 310 | 12 | t | 13 | t + 311 | 12 | t | 14 | f + 312 | 12 | t | 15 | f + 313 | 12 | t | 16 | f + 314 | 12 | t | 17 | f + 315 | 12 | t | 18 | f + 316 | 12 | t | 19 | f + 317 | 12 | t | 20 | f + 318 | 12 | t | 21 | f + 319 | 12 | t | 22 | f + 320 | 12 | t | 23 | f + 321 | 12 | t | 24 | f + 322 | 12 | t | 25 | f + 323 | 12 | t | 26 | f + 324 | 12 | t | 27 | + 325 | 13 | t | 1 | t + 326 | 13 | t | 2 | t + 327 | 13 | t | 3 | t + 328 | 13 | t | 4 | t + 329 | 13 | t | 5 | t + 330 | 13 | t | 6 | t + 331 | 13 | t | 7 | t + 332 | 13 | t | 8 | t + 333 | 13 | t | 9 | t + 334 | 13 | t | 10 | t + 335 | 13 | t | 11 | t + 336 | 13 | t | 12 | t + 337 | 13 | t | 13 | t + 338 | 13 | t | 14 | f + 339 | 13 | t | 15 | f + 340 | 13 | t | 16 | f + 341 | 13 | t | 17 | f + 342 | 13 | t | 18 | f + 343 | 13 | t | 19 | f + 344 | 13 | t | 20 | f + 345 | 13 | t | 21 | f + 346 | 13 | t | 22 | f + 347 | 13 | t | 23 | f + 348 | 13 | t | 24 | f + 349 | 13 | t | 25 | f + 350 | 13 | t | 26 | f + 351 | 13 | t | 27 | + 352 | 14 | f | 1 | t + 353 | 14 | f | 2 | t + 354 | 14 | f | 3 | t + 355 | 14 | f | 4 | t + 356 | 14 | f | 5 | t + 357 | 14 | f | 6 | t + 358 | 14 | f | 7 | t + 359 | 14 | f | 8 | t + 360 | 14 | f | 9 | t + 361 | 14 | f | 10 | t + 362 | 14 | f | 11 | t + 363 | 14 | f | 12 | t + 364 | 14 | f | 13 | t + 365 | 14 | f | 14 | f + 366 | 14 | f | 15 | f + 367 | 14 | f | 16 | f + 368 | 14 | f | 17 | f + 369 | 14 | f | 18 | f + 370 | 14 | f | 19 | f + 371 | 14 | f | 20 | f + 372 | 14 | f | 21 | f + 373 | 14 | f | 22 | f + 374 | 14 | f | 23 | f + 375 | 14 | f | 24 | f + 376 | 14 | f | 25 | f + 377 | 14 | f | 26 | f + 378 | 14 | f | 27 | + 379 | 15 | f | 1 | t + 380 | 15 | f | 2 | t + 381 | 15 | f | 3 | t + 382 | 15 | f | 4 | t + 383 | 15 | f | 5 | t + 384 | 15 | f | 6 | t + 385 | 15 | f | 7 | t + 386 | 15 | f | 8 | t + 387 | 15 | f | 9 | t + 388 | 15 | f | 10 | t + 389 | 15 | f | 11 | t + 390 | 15 | f | 12 | t + 391 | 15 | f | 13 | t + 392 | 15 | f | 14 | f + 393 | 15 | f | 15 | f + 394 | 15 | f | 16 | f + 395 | 15 | f | 17 | f + 396 | 15 | f | 18 | f + 397 | 15 | f | 19 | f + 398 | 15 | f | 20 | f + 399 | 15 | f | 21 | f + 400 | 15 | f | 22 | f + 401 | 15 | f | 23 | f + 402 | 15 | f | 24 | f + 403 | 15 | f | 25 | f + 404 | 15 | f | 26 | f + 405 | 15 | f | 27 | + 406 | 16 | f | 1 | t + 407 | 16 | f | 2 | t + 408 | 16 | f | 3 | t + 409 | 16 | f | 4 | t + 410 | 16 | f | 5 | t + 411 | 16 | f | 6 | t + 412 | 16 | f | 7 | t + 413 | 16 | f | 8 | t + 414 | 16 | f | 9 | t + 415 | 16 | f | 10 | t + 416 | 16 | f | 11 | t + 417 | 16 | f | 12 | t + 418 | 16 | f | 13 | t + 419 | 16 | f | 14 | f + 420 | 16 | f | 15 | f + 421 | 16 | f | 16 | f + 422 | 16 | f | 17 | f + 423 | 16 | f | 18 | f + 424 | 16 | f | 19 | f + 425 | 16 | f | 20 | f + 426 | 16 | f | 21 | f + 427 | 16 | f | 22 | f + 428 | 16 | f | 23 | f + 429 | 16 | f | 24 | f + 430 | 16 | f | 25 | f + 431 | 16 | f | 26 | f + 432 | 16 | f | 27 | + 433 | 17 | f | 1 | t + 434 | 17 | f | 2 | t + 435 | 17 | f | 3 | t + 436 | 17 | f | 4 | t + 437 | 17 | f | 5 | t + 438 | 17 | f | 6 | t + 439 | 17 | f | 7 | t + 440 | 17 | f | 8 | t + 441 | 17 | f | 9 | t + 442 | 17 | f | 10 | t + 443 | 17 | f | 11 | t + 444 | 17 | f | 12 | t + 445 | 17 | f | 13 | t + 446 | 17 | f | 14 | f + 447 | 17 | f | 15 | f + 448 | 17 | f | 16 | f + 449 | 17 | f | 17 | f + 450 | 17 | f | 18 | f + 451 | 17 | f | 19 | f + 452 | 17 | f | 20 | f + 453 | 17 | f | 21 | f + 454 | 17 | f | 22 | f + 455 | 17 | f | 23 | f + 456 | 17 | f | 24 | f + 457 | 17 | f | 25 | f + 458 | 17 | f | 26 | f + 459 | 17 | f | 27 | + 460 | 18 | f | 1 | t + 461 | 18 | f | 2 | t + 462 | 18 | f | 3 | t + 463 | 18 | f | 4 | t + 464 | 18 | f | 5 | t + 465 | 18 | f | 6 | t + 466 | 18 | f | 7 | t + 467 | 18 | f | 8 | t + 468 | 18 | f | 9 | t + 469 | 18 | f | 10 | t + 470 | 18 | f | 11 | t + 471 | 18 | f | 12 | t + 472 | 18 | f | 13 | t + 473 | 18 | f | 14 | f + 474 | 18 | f | 15 | f + 475 | 18 | f | 16 | f + 476 | 18 | f | 17 | f + 477 | 18 | f | 18 | f + 478 | 18 | f | 19 | f + 479 | 18 | f | 20 | f + 480 | 18 | f | 21 | f + 481 | 18 | f | 22 | f + 482 | 18 | f | 23 | f + 483 | 18 | f | 24 | f + 484 | 18 | f | 25 | f + 485 | 18 | f | 26 | f + 486 | 18 | f | 27 | + 487 | 19 | f | 1 | t + 488 | 19 | f | 2 | t + 489 | 19 | f | 3 | t + 490 | 19 | f | 4 | t + 491 | 19 | f | 5 | t + 492 | 19 | f | 6 | t + 493 | 19 | f | 7 | t + 494 | 19 | f | 8 | t + 495 | 19 | f | 9 | t + 496 | 19 | f | 10 | t + 497 | 19 | f | 11 | t + 498 | 19 | f | 12 | t + 499 | 19 | f | 13 | t + 500 | 19 | f | 14 | f + 501 | 19 | f | 15 | f + 502 | 19 | f | 16 | f + 503 | 19 | f | 17 | f + 504 | 19 | f | 18 | f + 505 | 19 | f | 19 | f + 506 | 19 | f | 20 | f + 507 | 19 | f | 21 | f + 508 | 19 | f | 22 | f + 509 | 19 | f | 23 | f + 510 | 19 | f | 24 | f + 511 | 19 | f | 25 | f + 512 | 19 | f | 26 | f + 513 | 19 | f | 27 | + 514 | 20 | f | 1 | t + 515 | 20 | f | 2 | t + 516 | 20 | f | 3 | t + 517 | 20 | f | 4 | t + 518 | 20 | f | 5 | t + 519 | 20 | f | 6 | t + 520 | 20 | f | 7 | t + 521 | 20 | f | 8 | t + 522 | 20 | f | 9 | t + 523 | 20 | f | 10 | t + 524 | 20 | f | 11 | t + 525 | 20 | f | 12 | t + 526 | 20 | f | 13 | t + 527 | 20 | f | 14 | f + 528 | 20 | f | 15 | f + 529 | 20 | f | 16 | f + 530 | 20 | f | 17 | f + 531 | 20 | f | 18 | f + 532 | 20 | f | 19 | f + 533 | 20 | f | 20 | f + 534 | 20 | f | 21 | f + 535 | 20 | f | 22 | f + 536 | 20 | f | 23 | f + 537 | 20 | f | 24 | f + 538 | 20 | f | 25 | f + 539 | 20 | f | 26 | f + 540 | 20 | f | 27 | + 541 | 21 | f | 1 | t + 542 | 21 | f | 2 | t + 543 | 21 | f | 3 | t + 544 | 21 | f | 4 | t + 545 | 21 | f | 5 | t + 546 | 21 | f | 6 | t + 547 | 21 | f | 7 | t + 548 | 21 | f | 8 | t + 549 | 21 | f | 9 | t + 550 | 21 | f | 10 | t + 551 | 21 | f | 11 | t + 552 | 21 | f | 12 | t + 553 | 21 | f | 13 | t + 554 | 21 | f | 14 | f + 555 | 21 | f | 15 | f + 556 | 21 | f | 16 | f + 557 | 21 | f | 17 | f + 558 | 21 | f | 18 | f + 559 | 21 | f | 19 | f + 560 | 21 | f | 20 | f + 561 | 21 | f | 21 | f + 562 | 21 | f | 22 | f + 563 | 21 | f | 23 | f + 564 | 21 | f | 24 | f + 565 | 21 | f | 25 | f + 566 | 21 | f | 26 | f + 567 | 21 | f | 27 | + 568 | 22 | f | 1 | t + 569 | 22 | f | 2 | t + 570 | 22 | f | 3 | t + 571 | 22 | f | 4 | t + 572 | 22 | f | 5 | t + 573 | 22 | f | 6 | t + 574 | 22 | f | 7 | t + 575 | 22 | f | 8 | t + 576 | 22 | f | 9 | t + 577 | 22 | f | 10 | t + 578 | 22 | f | 11 | t + 579 | 22 | f | 12 | t + 580 | 22 | f | 13 | t + 581 | 22 | f | 14 | f + 582 | 22 | f | 15 | f + 583 | 22 | f | 16 | f + 584 | 22 | f | 17 | f + 585 | 22 | f | 18 | f + 586 | 22 | f | 19 | f + 587 | 22 | f | 20 | f + 588 | 22 | f | 21 | f + 589 | 22 | f | 22 | f + 590 | 22 | f | 23 | f + 591 | 22 | f | 24 | f + 592 | 22 | f | 25 | f + 593 | 22 | f | 26 | f + 594 | 22 | f | 27 | + 595 | 23 | f | 1 | t + 596 | 23 | f | 2 | t + 597 | 23 | f | 3 | t + 598 | 23 | f | 4 | t + 599 | 23 | f | 5 | t + 600 | 23 | f | 6 | t + 601 | 23 | f | 7 | t + 602 | 23 | f | 8 | t + 603 | 23 | f | 9 | t + 604 | 23 | f | 10 | t + 605 | 23 | f | 11 | t + 606 | 23 | f | 12 | t + 607 | 23 | f | 13 | t + 608 | 23 | f | 14 | f + 609 | 23 | f | 15 | f + 610 | 23 | f | 16 | f + 611 | 23 | f | 17 | f + 612 | 23 | f | 18 | f + 613 | 23 | f | 19 | f + 614 | 23 | f | 20 | f + 615 | 23 | f | 21 | f + 616 | 23 | f | 22 | f + 617 | 23 | f | 23 | f + 618 | 23 | f | 24 | f + 619 | 23 | f | 25 | f + 620 | 23 | f | 26 | f + 621 | 23 | f | 27 | + 622 | 24 | f | 1 | t + 623 | 24 | f | 2 | t + 624 | 24 | f | 3 | t + 625 | 24 | f | 4 | t + 626 | 24 | f | 5 | t + 627 | 24 | f | 6 | t + 628 | 24 | f | 7 | t + 629 | 24 | f | 8 | t + 630 | 24 | f | 9 | t + 631 | 24 | f | 10 | t + 632 | 24 | f | 11 | t + 633 | 24 | f | 12 | t + 634 | 24 | f | 13 | t + 635 | 24 | f | 14 | f + 636 | 24 | f | 15 | f + 637 | 24 | f | 16 | f + 638 | 24 | f | 17 | f + 639 | 24 | f | 18 | f + 640 | 24 | f | 19 | f + 641 | 24 | f | 20 | f + 642 | 24 | f | 21 | f + 643 | 24 | f | 22 | f + 644 | 24 | f | 23 | f + 645 | 24 | f | 24 | f + 646 | 24 | f | 25 | f + 647 | 24 | f | 26 | f + 648 | 24 | f | 27 | + 649 | 25 | f | 1 | t + 650 | 25 | f | 2 | t + 651 | 25 | f | 3 | t + 652 | 25 | f | 4 | t + 653 | 25 | f | 5 | t + 654 | 25 | f | 6 | t + 655 | 25 | f | 7 | t + 656 | 25 | f | 8 | t + 657 | 25 | f | 9 | t + 658 | 25 | f | 10 | t + 659 | 25 | f | 11 | t + 660 | 25 | f | 12 | t + 661 | 25 | f | 13 | t + 662 | 25 | f | 14 | f + 663 | 25 | f | 15 | f + 664 | 25 | f | 16 | f + 665 | 25 | f | 17 | f + 666 | 25 | f | 18 | f + 667 | 25 | f | 19 | f + 668 | 25 | f | 20 | f + 669 | 25 | f | 21 | f + 670 | 25 | f | 22 | f + 671 | 25 | f | 23 | f + 672 | 25 | f | 24 | f + 673 | 25 | f | 25 | f + 674 | 25 | f | 26 | f + 675 | 25 | f | 27 | + 676 | 26 | f | 1 | t + 677 | 26 | f | 2 | t + 678 | 26 | f | 3 | t + 679 | 26 | f | 4 | t + 680 | 26 | f | 5 | t + 681 | 26 | f | 6 | t + 682 | 26 | f | 7 | t + 683 | 26 | f | 8 | t + 684 | 26 | f | 9 | t + 685 | 26 | f | 10 | t + 686 | 26 | f | 11 | t + 687 | 26 | f | 12 | t + 688 | 26 | f | 13 | t + 689 | 26 | f | 14 | f + 690 | 26 | f | 15 | f + 691 | 26 | f | 16 | f + 692 | 26 | f | 17 | f + 693 | 26 | f | 18 | f + 694 | 26 | f | 19 | f + 695 | 26 | f | 20 | f + 696 | 26 | f | 21 | f + 697 | 26 | f | 22 | f + 698 | 26 | f | 23 | f + 699 | 26 | f | 24 | f + 700 | 26 | f | 25 | f + 701 | 26 | f | 26 | f + 702 | 26 | f | 27 | + 703 | 27 | | 1 | t + 704 | 27 | | 2 | t + 705 | 27 | | 3 | t + 706 | 27 | | 4 | t + 707 | 27 | | 5 | t + 708 | 27 | | 6 | t + 709 | 27 | | 7 | t + 710 | 27 | | 8 | t + 711 | 27 | | 9 | t + 712 | 27 | | 10 | t + 713 | 27 | | 11 | t + 714 | 27 | | 12 | t + 715 | 27 | | 13 | t + 716 | 27 | | 14 | f + 717 | 27 | | 15 | f + 718 | 27 | | 16 | f + 719 | 27 | | 17 | f + 720 | 27 | | 18 | f + 721 | 27 | | 19 | f + 722 | 27 | | 20 | f + 723 | 27 | | 21 | f + 724 | 27 | | 22 | f + 725 | 27 | | 23 | f + 726 | 27 | | 24 | f + 727 | 27 | | 25 | f + 728 | 27 | | 26 | f + 729 | 27 | | 27 | +(729 rows) --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - QUERY PLAN --------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 70 | f | f | f | f - 71 | f | f | f | f - 72 | f | f | f | f - 73 | f | f | f | f - 74 | f | f | f | f - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 81 | f | f | f | f - 82 | f | f | f | f - 83 | f | f | f | f - 84 | f | f | f | f - 85 | f | t | f | t - 86 | f | f | f | f - 87 | f | t | f | t - 88 | f | | f | - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 92 | f | f | f | f - 93 | f | f | f | f - 94 | f | f | f | f - 95 | f | f | f | f - 96 | f | f | f | f - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 103 | f | f | f | f - 104 | f | f | f | f - 105 | f | f | f | f - 106 | f | f | f | f - 107 | f | t | f | t - 108 | f | f | f | f - 109 | f | t | f | t - 110 | f | | f | - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 114 | f | f | f | f - 115 | f | f | f | f - 116 | f | f | f | f - 117 | f | f | f | f - 118 | f | f | f | f - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 125 | f | f | f | f - 126 | f | f | f | f - 127 | f | f | f | f - 128 | f | f | f | f - 129 | f | t | f | t - 130 | f | f | f | f - 131 | f | t | f | t - 132 | f | | f | - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 136 | f | f | f | f - 137 | f | f | f | f - 138 | f | f | f | f - 139 | f | f | f | f - 140 | f | f | f | f - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 147 | f | f | f | f - 148 | f | f | f | f - 149 | f | f | f | f - 150 | f | f | f | f - 151 | f | t | f | t - 152 | f | f | f | f - 153 | f | t | f | t - 154 | f | | f | - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 158 | f | f | f | f - 159 | f | f | f | f - 160 | f | f | f | f - 161 | f | f | f | f - 162 | f | f | f | f - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 169 | f | f | f | f - 170 | f | f | f | f - 171 | f | f | f | f - 172 | f | f | f | f - 173 | f | t | f | t - 174 | f | f | f | f - 175 | f | t | f | t - 176 | f | | f | - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 312 | f | f | f | f - 313 | f | f | f | f - 314 | f | f | f | f - 315 | f | f | f | f - 316 | f | f | f | f - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 323 | f | f | f | f - 324 | f | f | f | f - 325 | f | f | f | f - 326 | f | f | f | f - 327 | f | t | f | t - 328 | f | f | f | f - 329 | f | t | f | t - 330 | f | | f | - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 334 | f | f | f | f - 335 | f | f | f | f - 336 | f | f | f | f - 337 | f | f | f | f - 338 | f | f | f | f - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 345 | f | f | f | f - 346 | f | f | f | f - 347 | f | f | f | f - 348 | f | f | f | f - 349 | f | t | f | t - 350 | f | f | f | f - 351 | f | t | f | t - 352 | f | | f | - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 356 | f | f | f | f - 357 | f | f | f | f - 358 | f | f | f | f - 359 | f | f | f | f - 360 | f | f | f | f - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 367 | f | f | f | f - 368 | f | f | f | f - 369 | f | f | f | f - 370 | f | f | f | f - 371 | f | t | f | t - 372 | f | f | f | f - 373 | f | t | f | t - 374 | f | | f | - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 378 | f | f | f | f - 379 | f | f | f | f - 380 | f | f | f | f - 381 | f | f | f | f - 382 | f | f | f | f - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 389 | f | f | f | f - 390 | f | f | f | f - 391 | f | f | f | f - 392 | f | f | f | f - 393 | f | t | f | t - 394 | f | f | f | f - 395 | f | t | f | t - 396 | f | | f | - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 422 | f | f | f | f - 423 | f | f | f | f - 424 | f | f | f | f - 425 | f | f | f | f - 426 | f | f | f | f - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 433 | f | f | f | f - 434 | f | f | f | f - 435 | f | f | f | f - 436 | f | f | f | f - 437 | f | t | f | t - 438 | f | f | f | f - 439 | f | t | f | t - 440 | f | | f | - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 466 | | f | f | - 467 | | f | f | - 468 | | f | f | - 469 | | f | f | - 470 | | f | f | - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 477 | | f | f | - 478 | | f | f | - 479 | | f | f | - 480 | | f | f | - 481 | | t | | t - 482 | | f | f | - 483 | | t | | t - 484 | | | | -(484 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + b1 | b2 | a | o +----+----+---+--- + f | f | f | f + f | t | f | t + f | | f | + t | f | f | t + t | t | t | t + t | | | t + | f | f | + | t | | t + | | | +(9 rows) --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 19 | t | t | t | t - 21 | t | t | t | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 41 | t | t | t | t - 43 | t | t | t | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 63 | t | t | t | t - 65 | t | t | t | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 195 | t | t | t | t - 197 | t | t | t | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 217 | t | t | t | t - 219 | t | t | t | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 239 | t | t | t | t - 241 | t | t | t | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 261 | t | t | t | t - 263 | t | t | t | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 283 | t | t | t | t - 285 | t | t | t | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 305 | t | t | t | t - 307 | t | t | t | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 415 | t | t | t | t - 417 | t | t | t | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 459 | t | t | t | t - 461 | t | t | t | t -(121 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + b1 | b2 | a | o +----+----+---+--- + t | t | t | t +(1 row) --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 85 | f | t | f | t - 87 | f | t | f | t - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 107 | f | t | f | t - 109 | f | t | f | t - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 129 | f | t | f | t - 131 | f | t | f | t - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 151 | f | t | f | t - 153 | f | t | f | t - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 173 | f | t | f | t - 175 | f | t | f | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 327 | f | t | f | t - 329 | f | t | f | t - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 349 | f | t | f | t - 351 | f | t | f | t - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 371 | f | t | f | t - 373 | f | t | f | t - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 393 | f | t | f | t - 395 | f | t | f | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 437 | f | t | f | t - 439 | f | t | f | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 481 | | t | | t - 483 | | t | | t -(363 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + b1 | b2 | a | o +----+----+---+--- + f | t | f | t + t | f | f | t + t | t | t | t + t | | | t + | t | | t +(5 rows) --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; ---Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | t | 1 | t - 2 | 1 | t | 2 | t - 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f - 9 | 1 | t | 9 | t - 10 | 1 | t | 10 | t - 11 | 1 | t | 11 | t - 12 | 1 | t | 12 | t - 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t - 15 | 1 | t | 15 | f - 16 | 1 | t | 16 | f - 17 | 1 | t | 17 | f - 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t - 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | | 1 | t - 68 | 4 | | 2 | t - 69 | 4 | | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | | 9 | t - 76 | 4 | | 10 | t - 77 | 4 | | 11 | t - 78 | 4 | | 12 | t - 79 | 4 | | 13 | t - 80 | 4 | | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | | 21 | t - 88 | 4 | | 22 | - 89 | 5 | | 1 | t - 90 | 5 | | 2 | t - 91 | 5 | | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | | 9 | t - 98 | 5 | | 10 | t - 99 | 5 | | 11 | t - 100 | 5 | | 12 | t - 101 | 5 | | 13 | t - 102 | 5 | | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | | 21 | t - 110 | 5 | | 22 | - 111 | 6 | | 1 | t - 112 | 6 | | 2 | t - 113 | 6 | | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | | 9 | t - 120 | 6 | | 10 | t - 121 | 6 | | 11 | t - 122 | 6 | | 12 | t - 123 | 6 | | 13 | t - 124 | 6 | | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | | 21 | t - 132 | 6 | | 22 | - 133 | 7 | | 1 | t - 134 | 7 | | 2 | t - 135 | 7 | | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | | 9 | t - 142 | 7 | | 10 | t - 143 | 7 | | 11 | t - 144 | 7 | | 12 | t - 145 | 7 | | 13 | t - 146 | 7 | | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | | 21 | t - 154 | 7 | | 22 | - 155 | 8 | | 1 | t - 156 | 8 | | 2 | t - 157 | 8 | | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | | 9 | t - 164 | 8 | | 10 | t - 165 | 8 | | 11 | t - 166 | 8 | | 12 | t - 167 | 8 | | 13 | t - 168 | 8 | | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | | 21 | t - 176 | 8 | | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | | 1 | t - 310 | 15 | | 2 | t - 311 | 15 | | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | | 9 | t - 318 | 15 | | 10 | t - 319 | 15 | | 11 | t - 320 | 15 | | 12 | t - 321 | 15 | | 13 | t - 322 | 15 | | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | | 21 | t - 330 | 15 | | 22 | - 331 | 16 | | 1 | t - 332 | 16 | | 2 | t - 333 | 16 | | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | | 9 | t - 340 | 16 | | 10 | t - 341 | 16 | | 11 | t - 342 | 16 | | 12 | t - 343 | 16 | | 13 | t - 344 | 16 | | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | | 21 | t - 352 | 16 | | 22 | - 353 | 17 | | 1 | t - 354 | 17 | | 2 | t - 355 | 17 | | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | | 9 | t - 362 | 17 | | 10 | t - 363 | 17 | | 11 | t - 364 | 17 | | 12 | t - 365 | 17 | | 13 | t - 366 | 17 | | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | | 21 | t - 374 | 17 | | 22 | - 375 | 18 | | 1 | t - 376 | 18 | | 2 | t - 377 | 18 | | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | | 9 | t - 384 | 18 | | 10 | t - 385 | 18 | | 11 | t - 386 | 18 | | 12 | t - 387 | 18 | | 13 | t - 388 | 18 | | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | | 21 | t - 396 | 18 | | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | | 1 | t - 420 | 20 | | 2 | t - 421 | 20 | | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | | 9 | t - 428 | 20 | | 10 | t - 429 | 20 | | 11 | t - 430 | 20 | | 12 | t - 431 | 20 | | 13 | t - 432 | 20 | | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | | 21 | t - 440 | 20 | | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + QUERY PLAN +----------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = NULL WHERE ((NOT sqlite_fdw_bool(`b1`))) +(3 rows) +--Testcase 67: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + t | f + t | t + t | + | f + | t + | +(6 rows) + --Testcase 69: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; QUERY PLAN @@ -2377,1269 +1207,58 @@ UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) (3 rows) ---Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - --Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | t + f | + | f + | +(5 rows) + +--Testcase 72: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------- +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------- Delete on public."type_BOOLEAN_oper" -> Foreign Delete on public."type_BOOLEAN_oper" - SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE ((NOT sqlite_fdw_bool(`b1`))) AND (sqlite_fdw_bool(`b2`)) (3 rows) ---Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | + | f + | +(4 rows) + --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 19 | 1 | f | 19 | t - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 41 | 2 | f | 19 | t - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 63 | 3 | f | 19 | t - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 85 | 4 | f | 19 | t - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 107 | 5 | f | 19 | t - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 129 | 6 | f | 19 | t - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 151 | 7 | f | 19 | t - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 173 | 8 | f | 19 | t - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 195 | 9 | f | 19 | t - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 217 | 10 | f | 19 | t - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 239 | 11 | f | 19 | t - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 261 | 12 | f | 19 | t - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 283 | 13 | f | 19 | t - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 305 | 14 | f | 19 | t - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 327 | 15 | f | 19 | t - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 349 | 16 | f | 19 | t - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 371 | 17 | f | 19 | t - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 393 | 18 | f | 19 | t - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 415 | 19 | f | 19 | t - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 437 | 20 | f | 19 | t - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 459 | 21 | f | 19 | t - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 481 | 22 | f | 19 | t - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(264 rows) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) + +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/15.3/extra/bool.out b/expected/15.3/extra/bool.out index 3d9bf96c..4083dbca 100644 --- a/expected/15.3/extra/bool.out +++ b/expected/15.3/extra/bool.out @@ -374,2000 +374,830 @@ SELECT * FROM "type_BOOLEAN_oper"; 1 | 1 | t | 1 | t 2 | 1 | t | 2 | t 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f + 4 | 1 | t | 4 | t + 5 | 1 | t | 5 | t + 6 | 1 | t | 6 | t + 7 | 1 | t | 7 | t + 8 | 1 | t | 8 | t 9 | 1 | t | 9 | t 10 | 1 | t | 10 | t 11 | 1 | t | 11 | t 12 | 1 | t | 12 | t 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t + 14 | 1 | t | 14 | f 15 | 1 | t | 15 | f 16 | 1 | t | 16 | f 17 | 1 | t | 17 | f 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t + 19 | 1 | t | 19 | f 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | f | 4 | f - 71 | 4 | f | 5 | f - 72 | 4 | f | 6 | f - 73 | 4 | f | 7 | f - 74 | 4 | f | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | f | 15 | f - 82 | 4 | f | 16 | f - 83 | 4 | f | 17 | f - 84 | 4 | f | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | f | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | f | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | f | 4 | f - 93 | 5 | f | 5 | f - 94 | 5 | f | 6 | f - 95 | 5 | f | 7 | f - 96 | 5 | f | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | f | 15 | f - 104 | 5 | f | 16 | f - 105 | 5 | f | 17 | f - 106 | 5 | f | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | f | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | f | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | f | 4 | f - 115 | 6 | f | 5 | f - 116 | 6 | f | 6 | f - 117 | 6 | f | 7 | f - 118 | 6 | f | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | f | 15 | f - 126 | 6 | f | 16 | f - 127 | 6 | f | 17 | f - 128 | 6 | f | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | f | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | f | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | f | 4 | f - 137 | 7 | f | 5 | f - 138 | 7 | f | 6 | f - 139 | 7 | f | 7 | f - 140 | 7 | f | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | f | 15 | f - 148 | 7 | f | 16 | f - 149 | 7 | f | 17 | f - 150 | 7 | f | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | f | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | f | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | f | 4 | f - 159 | 8 | f | 5 | f - 160 | 8 | f | 6 | f - 161 | 8 | f | 7 | f - 162 | 8 | f | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | f | 15 | f - 170 | 8 | f | 16 | f - 171 | 8 | f | 17 | f - 172 | 8 | f | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | f | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | f | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | f | 4 | f - 313 | 15 | f | 5 | f - 314 | 15 | f | 6 | f - 315 | 15 | f | 7 | f - 316 | 15 | f | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | f | 15 | f - 324 | 15 | f | 16 | f - 325 | 15 | f | 17 | f - 326 | 15 | f | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | f | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | f | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | f | 4 | f - 335 | 16 | f | 5 | f - 336 | 16 | f | 6 | f - 337 | 16 | f | 7 | f - 338 | 16 | f | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | f | 15 | f - 346 | 16 | f | 16 | f - 347 | 16 | f | 17 | f - 348 | 16 | f | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | f | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | f | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | f | 4 | f - 357 | 17 | f | 5 | f - 358 | 17 | f | 6 | f - 359 | 17 | f | 7 | f - 360 | 17 | f | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | f | 15 | f - 368 | 17 | f | 16 | f - 369 | 17 | f | 17 | f - 370 | 17 | f | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | f | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | f | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | f | 4 | f - 379 | 18 | f | 5 | f - 380 | 18 | f | 6 | f - 381 | 18 | f | 7 | f - 382 | 18 | f | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | f | 15 | f - 390 | 18 | f | 16 | f - 391 | 18 | f | 17 | f - 392 | 18 | f | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | f | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | f | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | f | 4 | f - 423 | 20 | f | 5 | f - 424 | 20 | f | 6 | f - 425 | 20 | f | 7 | f - 426 | 20 | f | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | f | 15 | f - 434 | 20 | f | 16 | f - 435 | 20 | f | 17 | f - 436 | 20 | f | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | f | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | f | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + 21 | 1 | t | 21 | f + 22 | 1 | t | 22 | f + 23 | 1 | t | 23 | f + 24 | 1 | t | 24 | f + 25 | 1 | t | 25 | f + 26 | 1 | t | 26 | f + 27 | 1 | t | 27 | + 28 | 2 | t | 1 | t + 29 | 2 | t | 2 | t + 30 | 2 | t | 3 | t + 31 | 2 | t | 4 | t + 32 | 2 | t | 5 | t + 33 | 2 | t | 6 | t + 34 | 2 | t | 7 | t + 35 | 2 | t | 8 | t + 36 | 2 | t | 9 | t + 37 | 2 | t | 10 | t + 38 | 2 | t | 11 | t + 39 | 2 | t | 12 | t + 40 | 2 | t | 13 | t + 41 | 2 | t | 14 | f + 42 | 2 | t | 15 | f + 43 | 2 | t | 16 | f + 44 | 2 | t | 17 | f + 45 | 2 | t | 18 | f + 46 | 2 | t | 19 | f + 47 | 2 | t | 20 | f + 48 | 2 | t | 21 | f + 49 | 2 | t | 22 | f + 50 | 2 | t | 23 | f + 51 | 2 | t | 24 | f + 52 | 2 | t | 25 | f + 53 | 2 | t | 26 | f + 54 | 2 | t | 27 | + 55 | 3 | t | 1 | t + 56 | 3 | t | 2 | t + 57 | 3 | t | 3 | t + 58 | 3 | t | 4 | t + 59 | 3 | t | 5 | t + 60 | 3 | t | 6 | t + 61 | 3 | t | 7 | t + 62 | 3 | t | 8 | t + 63 | 3 | t | 9 | t + 64 | 3 | t | 10 | t + 65 | 3 | t | 11 | t + 66 | 3 | t | 12 | t + 67 | 3 | t | 13 | t + 68 | 3 | t | 14 | f + 69 | 3 | t | 15 | f + 70 | 3 | t | 16 | f + 71 | 3 | t | 17 | f + 72 | 3 | t | 18 | f + 73 | 3 | t | 19 | f + 74 | 3 | t | 20 | f + 75 | 3 | t | 21 | f + 76 | 3 | t | 22 | f + 77 | 3 | t | 23 | f + 78 | 3 | t | 24 | f + 79 | 3 | t | 25 | f + 80 | 3 | t | 26 | f + 81 | 3 | t | 27 | + 82 | 4 | t | 1 | t + 83 | 4 | t | 2 | t + 84 | 4 | t | 3 | t + 85 | 4 | t | 4 | t + 86 | 4 | t | 5 | t + 87 | 4 | t | 6 | t + 88 | 4 | t | 7 | t + 89 | 4 | t | 8 | t + 90 | 4 | t | 9 | t + 91 | 4 | t | 10 | t + 92 | 4 | t | 11 | t + 93 | 4 | t | 12 | t + 94 | 4 | t | 13 | t + 95 | 4 | t | 14 | f + 96 | 4 | t | 15 | f + 97 | 4 | t | 16 | f + 98 | 4 | t | 17 | f + 99 | 4 | t | 18 | f + 100 | 4 | t | 19 | f + 101 | 4 | t | 20 | f + 102 | 4 | t | 21 | f + 103 | 4 | t | 22 | f + 104 | 4 | t | 23 | f + 105 | 4 | t | 24 | f + 106 | 4 | t | 25 | f + 107 | 4 | t | 26 | f + 108 | 4 | t | 27 | + 109 | 5 | t | 1 | t + 110 | 5 | t | 2 | t + 111 | 5 | t | 3 | t + 112 | 5 | t | 4 | t + 113 | 5 | t | 5 | t + 114 | 5 | t | 6 | t + 115 | 5 | t | 7 | t + 116 | 5 | t | 8 | t + 117 | 5 | t | 9 | t + 118 | 5 | t | 10 | t + 119 | 5 | t | 11 | t + 120 | 5 | t | 12 | t + 121 | 5 | t | 13 | t + 122 | 5 | t | 14 | f + 123 | 5 | t | 15 | f + 124 | 5 | t | 16 | f + 125 | 5 | t | 17 | f + 126 | 5 | t | 18 | f + 127 | 5 | t | 19 | f + 128 | 5 | t | 20 | f + 129 | 5 | t | 21 | f + 130 | 5 | t | 22 | f + 131 | 5 | t | 23 | f + 132 | 5 | t | 24 | f + 133 | 5 | t | 25 | f + 134 | 5 | t | 26 | f + 135 | 5 | t | 27 | + 136 | 6 | t | 1 | t + 137 | 6 | t | 2 | t + 138 | 6 | t | 3 | t + 139 | 6 | t | 4 | t + 140 | 6 | t | 5 | t + 141 | 6 | t | 6 | t + 142 | 6 | t | 7 | t + 143 | 6 | t | 8 | t + 144 | 6 | t | 9 | t + 145 | 6 | t | 10 | t + 146 | 6 | t | 11 | t + 147 | 6 | t | 12 | t + 148 | 6 | t | 13 | t + 149 | 6 | t | 14 | f + 150 | 6 | t | 15 | f + 151 | 6 | t | 16 | f + 152 | 6 | t | 17 | f + 153 | 6 | t | 18 | f + 154 | 6 | t | 19 | f + 155 | 6 | t | 20 | f + 156 | 6 | t | 21 | f + 157 | 6 | t | 22 | f + 158 | 6 | t | 23 | f + 159 | 6 | t | 24 | f + 160 | 6 | t | 25 | f + 161 | 6 | t | 26 | f + 162 | 6 | t | 27 | + 163 | 7 | t | 1 | t + 164 | 7 | t | 2 | t + 165 | 7 | t | 3 | t + 166 | 7 | t | 4 | t + 167 | 7 | t | 5 | t + 168 | 7 | t | 6 | t + 169 | 7 | t | 7 | t + 170 | 7 | t | 8 | t + 171 | 7 | t | 9 | t + 172 | 7 | t | 10 | t + 173 | 7 | t | 11 | t + 174 | 7 | t | 12 | t + 175 | 7 | t | 13 | t + 176 | 7 | t | 14 | f + 177 | 7 | t | 15 | f + 178 | 7 | t | 16 | f + 179 | 7 | t | 17 | f + 180 | 7 | t | 18 | f + 181 | 7 | t | 19 | f + 182 | 7 | t | 20 | f + 183 | 7 | t | 21 | f + 184 | 7 | t | 22 | f + 185 | 7 | t | 23 | f + 186 | 7 | t | 24 | f + 187 | 7 | t | 25 | f + 188 | 7 | t | 26 | f + 189 | 7 | t | 27 | + 190 | 8 | t | 1 | t + 191 | 8 | t | 2 | t + 192 | 8 | t | 3 | t + 193 | 8 | t | 4 | t + 194 | 8 | t | 5 | t + 195 | 8 | t | 6 | t + 196 | 8 | t | 7 | t + 197 | 8 | t | 8 | t + 198 | 8 | t | 9 | t + 199 | 8 | t | 10 | t + 200 | 8 | t | 11 | t + 201 | 8 | t | 12 | t + 202 | 8 | t | 13 | t + 203 | 8 | t | 14 | f + 204 | 8 | t | 15 | f + 205 | 8 | t | 16 | f + 206 | 8 | t | 17 | f + 207 | 8 | t | 18 | f + 208 | 8 | t | 19 | f + 209 | 8 | t | 20 | f + 210 | 8 | t | 21 | f + 211 | 8 | t | 22 | f + 212 | 8 | t | 23 | f + 213 | 8 | t | 24 | f + 214 | 8 | t | 25 | f + 215 | 8 | t | 26 | f + 216 | 8 | t | 27 | + 217 | 9 | t | 1 | t + 218 | 9 | t | 2 | t + 219 | 9 | t | 3 | t + 220 | 9 | t | 4 | t + 221 | 9 | t | 5 | t + 222 | 9 | t | 6 | t + 223 | 9 | t | 7 | t + 224 | 9 | t | 8 | t + 225 | 9 | t | 9 | t + 226 | 9 | t | 10 | t + 227 | 9 | t | 11 | t + 228 | 9 | t | 12 | t + 229 | 9 | t | 13 | t + 230 | 9 | t | 14 | f + 231 | 9 | t | 15 | f + 232 | 9 | t | 16 | f + 233 | 9 | t | 17 | f + 234 | 9 | t | 18 | f + 235 | 9 | t | 19 | f + 236 | 9 | t | 20 | f + 237 | 9 | t | 21 | f + 238 | 9 | t | 22 | f + 239 | 9 | t | 23 | f + 240 | 9 | t | 24 | f + 241 | 9 | t | 25 | f + 242 | 9 | t | 26 | f + 243 | 9 | t | 27 | + 244 | 10 | t | 1 | t + 245 | 10 | t | 2 | t + 246 | 10 | t | 3 | t + 247 | 10 | t | 4 | t + 248 | 10 | t | 5 | t + 249 | 10 | t | 6 | t + 250 | 10 | t | 7 | t + 251 | 10 | t | 8 | t + 252 | 10 | t | 9 | t + 253 | 10 | t | 10 | t + 254 | 10 | t | 11 | t + 255 | 10 | t | 12 | t + 256 | 10 | t | 13 | t + 257 | 10 | t | 14 | f + 258 | 10 | t | 15 | f + 259 | 10 | t | 16 | f + 260 | 10 | t | 17 | f + 261 | 10 | t | 18 | f + 262 | 10 | t | 19 | f + 263 | 10 | t | 20 | f + 264 | 10 | t | 21 | f + 265 | 10 | t | 22 | f + 266 | 10 | t | 23 | f + 267 | 10 | t | 24 | f + 268 | 10 | t | 25 | f + 269 | 10 | t | 26 | f + 270 | 10 | t | 27 | + 271 | 11 | t | 1 | t + 272 | 11 | t | 2 | t + 273 | 11 | t | 3 | t + 274 | 11 | t | 4 | t + 275 | 11 | t | 5 | t + 276 | 11 | t | 6 | t + 277 | 11 | t | 7 | t + 278 | 11 | t | 8 | t + 279 | 11 | t | 9 | t + 280 | 11 | t | 10 | t + 281 | 11 | t | 11 | t + 282 | 11 | t | 12 | t + 283 | 11 | t | 13 | t + 284 | 11 | t | 14 | f + 285 | 11 | t | 15 | f + 286 | 11 | t | 16 | f + 287 | 11 | t | 17 | f + 288 | 11 | t | 18 | f + 289 | 11 | t | 19 | f + 290 | 11 | t | 20 | f + 291 | 11 | t | 21 | f + 292 | 11 | t | 22 | f + 293 | 11 | t | 23 | f + 294 | 11 | t | 24 | f + 295 | 11 | t | 25 | f + 296 | 11 | t | 26 | f + 297 | 11 | t | 27 | + 298 | 12 | t | 1 | t + 299 | 12 | t | 2 | t + 300 | 12 | t | 3 | t + 301 | 12 | t | 4 | t + 302 | 12 | t | 5 | t + 303 | 12 | t | 6 | t + 304 | 12 | t | 7 | t + 305 | 12 | t | 8 | t + 306 | 12 | t | 9 | t + 307 | 12 | t | 10 | t + 308 | 12 | t | 11 | t + 309 | 12 | t | 12 | t + 310 | 12 | t | 13 | t + 311 | 12 | t | 14 | f + 312 | 12 | t | 15 | f + 313 | 12 | t | 16 | f + 314 | 12 | t | 17 | f + 315 | 12 | t | 18 | f + 316 | 12 | t | 19 | f + 317 | 12 | t | 20 | f + 318 | 12 | t | 21 | f + 319 | 12 | t | 22 | f + 320 | 12 | t | 23 | f + 321 | 12 | t | 24 | f + 322 | 12 | t | 25 | f + 323 | 12 | t | 26 | f + 324 | 12 | t | 27 | + 325 | 13 | t | 1 | t + 326 | 13 | t | 2 | t + 327 | 13 | t | 3 | t + 328 | 13 | t | 4 | t + 329 | 13 | t | 5 | t + 330 | 13 | t | 6 | t + 331 | 13 | t | 7 | t + 332 | 13 | t | 8 | t + 333 | 13 | t | 9 | t + 334 | 13 | t | 10 | t + 335 | 13 | t | 11 | t + 336 | 13 | t | 12 | t + 337 | 13 | t | 13 | t + 338 | 13 | t | 14 | f + 339 | 13 | t | 15 | f + 340 | 13 | t | 16 | f + 341 | 13 | t | 17 | f + 342 | 13 | t | 18 | f + 343 | 13 | t | 19 | f + 344 | 13 | t | 20 | f + 345 | 13 | t | 21 | f + 346 | 13 | t | 22 | f + 347 | 13 | t | 23 | f + 348 | 13 | t | 24 | f + 349 | 13 | t | 25 | f + 350 | 13 | t | 26 | f + 351 | 13 | t | 27 | + 352 | 14 | f | 1 | t + 353 | 14 | f | 2 | t + 354 | 14 | f | 3 | t + 355 | 14 | f | 4 | t + 356 | 14 | f | 5 | t + 357 | 14 | f | 6 | t + 358 | 14 | f | 7 | t + 359 | 14 | f | 8 | t + 360 | 14 | f | 9 | t + 361 | 14 | f | 10 | t + 362 | 14 | f | 11 | t + 363 | 14 | f | 12 | t + 364 | 14 | f | 13 | t + 365 | 14 | f | 14 | f + 366 | 14 | f | 15 | f + 367 | 14 | f | 16 | f + 368 | 14 | f | 17 | f + 369 | 14 | f | 18 | f + 370 | 14 | f | 19 | f + 371 | 14 | f | 20 | f + 372 | 14 | f | 21 | f + 373 | 14 | f | 22 | f + 374 | 14 | f | 23 | f + 375 | 14 | f | 24 | f + 376 | 14 | f | 25 | f + 377 | 14 | f | 26 | f + 378 | 14 | f | 27 | + 379 | 15 | f | 1 | t + 380 | 15 | f | 2 | t + 381 | 15 | f | 3 | t + 382 | 15 | f | 4 | t + 383 | 15 | f | 5 | t + 384 | 15 | f | 6 | t + 385 | 15 | f | 7 | t + 386 | 15 | f | 8 | t + 387 | 15 | f | 9 | t + 388 | 15 | f | 10 | t + 389 | 15 | f | 11 | t + 390 | 15 | f | 12 | t + 391 | 15 | f | 13 | t + 392 | 15 | f | 14 | f + 393 | 15 | f | 15 | f + 394 | 15 | f | 16 | f + 395 | 15 | f | 17 | f + 396 | 15 | f | 18 | f + 397 | 15 | f | 19 | f + 398 | 15 | f | 20 | f + 399 | 15 | f | 21 | f + 400 | 15 | f | 22 | f + 401 | 15 | f | 23 | f + 402 | 15 | f | 24 | f + 403 | 15 | f | 25 | f + 404 | 15 | f | 26 | f + 405 | 15 | f | 27 | + 406 | 16 | f | 1 | t + 407 | 16 | f | 2 | t + 408 | 16 | f | 3 | t + 409 | 16 | f | 4 | t + 410 | 16 | f | 5 | t + 411 | 16 | f | 6 | t + 412 | 16 | f | 7 | t + 413 | 16 | f | 8 | t + 414 | 16 | f | 9 | t + 415 | 16 | f | 10 | t + 416 | 16 | f | 11 | t + 417 | 16 | f | 12 | t + 418 | 16 | f | 13 | t + 419 | 16 | f | 14 | f + 420 | 16 | f | 15 | f + 421 | 16 | f | 16 | f + 422 | 16 | f | 17 | f + 423 | 16 | f | 18 | f + 424 | 16 | f | 19 | f + 425 | 16 | f | 20 | f + 426 | 16 | f | 21 | f + 427 | 16 | f | 22 | f + 428 | 16 | f | 23 | f + 429 | 16 | f | 24 | f + 430 | 16 | f | 25 | f + 431 | 16 | f | 26 | f + 432 | 16 | f | 27 | + 433 | 17 | f | 1 | t + 434 | 17 | f | 2 | t + 435 | 17 | f | 3 | t + 436 | 17 | f | 4 | t + 437 | 17 | f | 5 | t + 438 | 17 | f | 6 | t + 439 | 17 | f | 7 | t + 440 | 17 | f | 8 | t + 441 | 17 | f | 9 | t + 442 | 17 | f | 10 | t + 443 | 17 | f | 11 | t + 444 | 17 | f | 12 | t + 445 | 17 | f | 13 | t + 446 | 17 | f | 14 | f + 447 | 17 | f | 15 | f + 448 | 17 | f | 16 | f + 449 | 17 | f | 17 | f + 450 | 17 | f | 18 | f + 451 | 17 | f | 19 | f + 452 | 17 | f | 20 | f + 453 | 17 | f | 21 | f + 454 | 17 | f | 22 | f + 455 | 17 | f | 23 | f + 456 | 17 | f | 24 | f + 457 | 17 | f | 25 | f + 458 | 17 | f | 26 | f + 459 | 17 | f | 27 | + 460 | 18 | f | 1 | t + 461 | 18 | f | 2 | t + 462 | 18 | f | 3 | t + 463 | 18 | f | 4 | t + 464 | 18 | f | 5 | t + 465 | 18 | f | 6 | t + 466 | 18 | f | 7 | t + 467 | 18 | f | 8 | t + 468 | 18 | f | 9 | t + 469 | 18 | f | 10 | t + 470 | 18 | f | 11 | t + 471 | 18 | f | 12 | t + 472 | 18 | f | 13 | t + 473 | 18 | f | 14 | f + 474 | 18 | f | 15 | f + 475 | 18 | f | 16 | f + 476 | 18 | f | 17 | f + 477 | 18 | f | 18 | f + 478 | 18 | f | 19 | f + 479 | 18 | f | 20 | f + 480 | 18 | f | 21 | f + 481 | 18 | f | 22 | f + 482 | 18 | f | 23 | f + 483 | 18 | f | 24 | f + 484 | 18 | f | 25 | f + 485 | 18 | f | 26 | f + 486 | 18 | f | 27 | + 487 | 19 | f | 1 | t + 488 | 19 | f | 2 | t + 489 | 19 | f | 3 | t + 490 | 19 | f | 4 | t + 491 | 19 | f | 5 | t + 492 | 19 | f | 6 | t + 493 | 19 | f | 7 | t + 494 | 19 | f | 8 | t + 495 | 19 | f | 9 | t + 496 | 19 | f | 10 | t + 497 | 19 | f | 11 | t + 498 | 19 | f | 12 | t + 499 | 19 | f | 13 | t + 500 | 19 | f | 14 | f + 501 | 19 | f | 15 | f + 502 | 19 | f | 16 | f + 503 | 19 | f | 17 | f + 504 | 19 | f | 18 | f + 505 | 19 | f | 19 | f + 506 | 19 | f | 20 | f + 507 | 19 | f | 21 | f + 508 | 19 | f | 22 | f + 509 | 19 | f | 23 | f + 510 | 19 | f | 24 | f + 511 | 19 | f | 25 | f + 512 | 19 | f | 26 | f + 513 | 19 | f | 27 | + 514 | 20 | f | 1 | t + 515 | 20 | f | 2 | t + 516 | 20 | f | 3 | t + 517 | 20 | f | 4 | t + 518 | 20 | f | 5 | t + 519 | 20 | f | 6 | t + 520 | 20 | f | 7 | t + 521 | 20 | f | 8 | t + 522 | 20 | f | 9 | t + 523 | 20 | f | 10 | t + 524 | 20 | f | 11 | t + 525 | 20 | f | 12 | t + 526 | 20 | f | 13 | t + 527 | 20 | f | 14 | f + 528 | 20 | f | 15 | f + 529 | 20 | f | 16 | f + 530 | 20 | f | 17 | f + 531 | 20 | f | 18 | f + 532 | 20 | f | 19 | f + 533 | 20 | f | 20 | f + 534 | 20 | f | 21 | f + 535 | 20 | f | 22 | f + 536 | 20 | f | 23 | f + 537 | 20 | f | 24 | f + 538 | 20 | f | 25 | f + 539 | 20 | f | 26 | f + 540 | 20 | f | 27 | + 541 | 21 | f | 1 | t + 542 | 21 | f | 2 | t + 543 | 21 | f | 3 | t + 544 | 21 | f | 4 | t + 545 | 21 | f | 5 | t + 546 | 21 | f | 6 | t + 547 | 21 | f | 7 | t + 548 | 21 | f | 8 | t + 549 | 21 | f | 9 | t + 550 | 21 | f | 10 | t + 551 | 21 | f | 11 | t + 552 | 21 | f | 12 | t + 553 | 21 | f | 13 | t + 554 | 21 | f | 14 | f + 555 | 21 | f | 15 | f + 556 | 21 | f | 16 | f + 557 | 21 | f | 17 | f + 558 | 21 | f | 18 | f + 559 | 21 | f | 19 | f + 560 | 21 | f | 20 | f + 561 | 21 | f | 21 | f + 562 | 21 | f | 22 | f + 563 | 21 | f | 23 | f + 564 | 21 | f | 24 | f + 565 | 21 | f | 25 | f + 566 | 21 | f | 26 | f + 567 | 21 | f | 27 | + 568 | 22 | f | 1 | t + 569 | 22 | f | 2 | t + 570 | 22 | f | 3 | t + 571 | 22 | f | 4 | t + 572 | 22 | f | 5 | t + 573 | 22 | f | 6 | t + 574 | 22 | f | 7 | t + 575 | 22 | f | 8 | t + 576 | 22 | f | 9 | t + 577 | 22 | f | 10 | t + 578 | 22 | f | 11 | t + 579 | 22 | f | 12 | t + 580 | 22 | f | 13 | t + 581 | 22 | f | 14 | f + 582 | 22 | f | 15 | f + 583 | 22 | f | 16 | f + 584 | 22 | f | 17 | f + 585 | 22 | f | 18 | f + 586 | 22 | f | 19 | f + 587 | 22 | f | 20 | f + 588 | 22 | f | 21 | f + 589 | 22 | f | 22 | f + 590 | 22 | f | 23 | f + 591 | 22 | f | 24 | f + 592 | 22 | f | 25 | f + 593 | 22 | f | 26 | f + 594 | 22 | f | 27 | + 595 | 23 | f | 1 | t + 596 | 23 | f | 2 | t + 597 | 23 | f | 3 | t + 598 | 23 | f | 4 | t + 599 | 23 | f | 5 | t + 600 | 23 | f | 6 | t + 601 | 23 | f | 7 | t + 602 | 23 | f | 8 | t + 603 | 23 | f | 9 | t + 604 | 23 | f | 10 | t + 605 | 23 | f | 11 | t + 606 | 23 | f | 12 | t + 607 | 23 | f | 13 | t + 608 | 23 | f | 14 | f + 609 | 23 | f | 15 | f + 610 | 23 | f | 16 | f + 611 | 23 | f | 17 | f + 612 | 23 | f | 18 | f + 613 | 23 | f | 19 | f + 614 | 23 | f | 20 | f + 615 | 23 | f | 21 | f + 616 | 23 | f | 22 | f + 617 | 23 | f | 23 | f + 618 | 23 | f | 24 | f + 619 | 23 | f | 25 | f + 620 | 23 | f | 26 | f + 621 | 23 | f | 27 | + 622 | 24 | f | 1 | t + 623 | 24 | f | 2 | t + 624 | 24 | f | 3 | t + 625 | 24 | f | 4 | t + 626 | 24 | f | 5 | t + 627 | 24 | f | 6 | t + 628 | 24 | f | 7 | t + 629 | 24 | f | 8 | t + 630 | 24 | f | 9 | t + 631 | 24 | f | 10 | t + 632 | 24 | f | 11 | t + 633 | 24 | f | 12 | t + 634 | 24 | f | 13 | t + 635 | 24 | f | 14 | f + 636 | 24 | f | 15 | f + 637 | 24 | f | 16 | f + 638 | 24 | f | 17 | f + 639 | 24 | f | 18 | f + 640 | 24 | f | 19 | f + 641 | 24 | f | 20 | f + 642 | 24 | f | 21 | f + 643 | 24 | f | 22 | f + 644 | 24 | f | 23 | f + 645 | 24 | f | 24 | f + 646 | 24 | f | 25 | f + 647 | 24 | f | 26 | f + 648 | 24 | f | 27 | + 649 | 25 | f | 1 | t + 650 | 25 | f | 2 | t + 651 | 25 | f | 3 | t + 652 | 25 | f | 4 | t + 653 | 25 | f | 5 | t + 654 | 25 | f | 6 | t + 655 | 25 | f | 7 | t + 656 | 25 | f | 8 | t + 657 | 25 | f | 9 | t + 658 | 25 | f | 10 | t + 659 | 25 | f | 11 | t + 660 | 25 | f | 12 | t + 661 | 25 | f | 13 | t + 662 | 25 | f | 14 | f + 663 | 25 | f | 15 | f + 664 | 25 | f | 16 | f + 665 | 25 | f | 17 | f + 666 | 25 | f | 18 | f + 667 | 25 | f | 19 | f + 668 | 25 | f | 20 | f + 669 | 25 | f | 21 | f + 670 | 25 | f | 22 | f + 671 | 25 | f | 23 | f + 672 | 25 | f | 24 | f + 673 | 25 | f | 25 | f + 674 | 25 | f | 26 | f + 675 | 25 | f | 27 | + 676 | 26 | f | 1 | t + 677 | 26 | f | 2 | t + 678 | 26 | f | 3 | t + 679 | 26 | f | 4 | t + 680 | 26 | f | 5 | t + 681 | 26 | f | 6 | t + 682 | 26 | f | 7 | t + 683 | 26 | f | 8 | t + 684 | 26 | f | 9 | t + 685 | 26 | f | 10 | t + 686 | 26 | f | 11 | t + 687 | 26 | f | 12 | t + 688 | 26 | f | 13 | t + 689 | 26 | f | 14 | f + 690 | 26 | f | 15 | f + 691 | 26 | f | 16 | f + 692 | 26 | f | 17 | f + 693 | 26 | f | 18 | f + 694 | 26 | f | 19 | f + 695 | 26 | f | 20 | f + 696 | 26 | f | 21 | f + 697 | 26 | f | 22 | f + 698 | 26 | f | 23 | f + 699 | 26 | f | 24 | f + 700 | 26 | f | 25 | f + 701 | 26 | f | 26 | f + 702 | 26 | f | 27 | + 703 | 27 | | 1 | t + 704 | 27 | | 2 | t + 705 | 27 | | 3 | t + 706 | 27 | | 4 | t + 707 | 27 | | 5 | t + 708 | 27 | | 6 | t + 709 | 27 | | 7 | t + 710 | 27 | | 8 | t + 711 | 27 | | 9 | t + 712 | 27 | | 10 | t + 713 | 27 | | 11 | t + 714 | 27 | | 12 | t + 715 | 27 | | 13 | t + 716 | 27 | | 14 | f + 717 | 27 | | 15 | f + 718 | 27 | | 16 | f + 719 | 27 | | 17 | f + 720 | 27 | | 18 | f + 721 | 27 | | 19 | f + 722 | 27 | | 20 | f + 723 | 27 | | 21 | f + 724 | 27 | | 22 | f + 725 | 27 | | 23 | f + 726 | 27 | | 24 | f + 727 | 27 | | 25 | f + 728 | 27 | | 26 | f + 729 | 27 | | 27 | +(729 rows) --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - QUERY PLAN --------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 70 | f | f | f | f - 71 | f | f | f | f - 72 | f | f | f | f - 73 | f | f | f | f - 74 | f | f | f | f - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 81 | f | f | f | f - 82 | f | f | f | f - 83 | f | f | f | f - 84 | f | f | f | f - 85 | f | t | f | t - 86 | f | f | f | f - 87 | f | t | f | t - 88 | f | | f | - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 92 | f | f | f | f - 93 | f | f | f | f - 94 | f | f | f | f - 95 | f | f | f | f - 96 | f | f | f | f - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 103 | f | f | f | f - 104 | f | f | f | f - 105 | f | f | f | f - 106 | f | f | f | f - 107 | f | t | f | t - 108 | f | f | f | f - 109 | f | t | f | t - 110 | f | | f | - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 114 | f | f | f | f - 115 | f | f | f | f - 116 | f | f | f | f - 117 | f | f | f | f - 118 | f | f | f | f - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 125 | f | f | f | f - 126 | f | f | f | f - 127 | f | f | f | f - 128 | f | f | f | f - 129 | f | t | f | t - 130 | f | f | f | f - 131 | f | t | f | t - 132 | f | | f | - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 136 | f | f | f | f - 137 | f | f | f | f - 138 | f | f | f | f - 139 | f | f | f | f - 140 | f | f | f | f - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 147 | f | f | f | f - 148 | f | f | f | f - 149 | f | f | f | f - 150 | f | f | f | f - 151 | f | t | f | t - 152 | f | f | f | f - 153 | f | t | f | t - 154 | f | | f | - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 158 | f | f | f | f - 159 | f | f | f | f - 160 | f | f | f | f - 161 | f | f | f | f - 162 | f | f | f | f - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 169 | f | f | f | f - 170 | f | f | f | f - 171 | f | f | f | f - 172 | f | f | f | f - 173 | f | t | f | t - 174 | f | f | f | f - 175 | f | t | f | t - 176 | f | | f | - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 312 | f | f | f | f - 313 | f | f | f | f - 314 | f | f | f | f - 315 | f | f | f | f - 316 | f | f | f | f - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 323 | f | f | f | f - 324 | f | f | f | f - 325 | f | f | f | f - 326 | f | f | f | f - 327 | f | t | f | t - 328 | f | f | f | f - 329 | f | t | f | t - 330 | f | | f | - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 334 | f | f | f | f - 335 | f | f | f | f - 336 | f | f | f | f - 337 | f | f | f | f - 338 | f | f | f | f - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 345 | f | f | f | f - 346 | f | f | f | f - 347 | f | f | f | f - 348 | f | f | f | f - 349 | f | t | f | t - 350 | f | f | f | f - 351 | f | t | f | t - 352 | f | | f | - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 356 | f | f | f | f - 357 | f | f | f | f - 358 | f | f | f | f - 359 | f | f | f | f - 360 | f | f | f | f - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 367 | f | f | f | f - 368 | f | f | f | f - 369 | f | f | f | f - 370 | f | f | f | f - 371 | f | t | f | t - 372 | f | f | f | f - 373 | f | t | f | t - 374 | f | | f | - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 378 | f | f | f | f - 379 | f | f | f | f - 380 | f | f | f | f - 381 | f | f | f | f - 382 | f | f | f | f - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 389 | f | f | f | f - 390 | f | f | f | f - 391 | f | f | f | f - 392 | f | f | f | f - 393 | f | t | f | t - 394 | f | f | f | f - 395 | f | t | f | t - 396 | f | | f | - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 422 | f | f | f | f - 423 | f | f | f | f - 424 | f | f | f | f - 425 | f | f | f | f - 426 | f | f | f | f - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 433 | f | f | f | f - 434 | f | f | f | f - 435 | f | f | f | f - 436 | f | f | f | f - 437 | f | t | f | t - 438 | f | f | f | f - 439 | f | t | f | t - 440 | f | | f | - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 466 | | f | f | - 467 | | f | f | - 468 | | f | f | - 469 | | f | f | - 470 | | f | f | - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 477 | | f | f | - 478 | | f | f | - 479 | | f | f | - 480 | | f | f | - 481 | | t | | t - 482 | | f | f | - 483 | | t | | t - 484 | | | | -(484 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + b1 | b2 | a | o +----+----+---+--- + f | f | f | f + f | t | f | t + f | | f | + t | f | f | t + t | t | t | t + t | | | t + | f | f | + | t | | t + | | | +(9 rows) --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 19 | t | t | t | t - 21 | t | t | t | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 41 | t | t | t | t - 43 | t | t | t | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 63 | t | t | t | t - 65 | t | t | t | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 195 | t | t | t | t - 197 | t | t | t | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 217 | t | t | t | t - 219 | t | t | t | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 239 | t | t | t | t - 241 | t | t | t | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 261 | t | t | t | t - 263 | t | t | t | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 283 | t | t | t | t - 285 | t | t | t | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 305 | t | t | t | t - 307 | t | t | t | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 415 | t | t | t | t - 417 | t | t | t | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 459 | t | t | t | t - 461 | t | t | t | t -(121 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + b1 | b2 | a | o +----+----+---+--- + t | t | t | t +(1 row) --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 85 | f | t | f | t - 87 | f | t | f | t - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 107 | f | t | f | t - 109 | f | t | f | t - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 129 | f | t | f | t - 131 | f | t | f | t - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 151 | f | t | f | t - 153 | f | t | f | t - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 173 | f | t | f | t - 175 | f | t | f | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 327 | f | t | f | t - 329 | f | t | f | t - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 349 | f | t | f | t - 351 | f | t | f | t - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 371 | f | t | f | t - 373 | f | t | f | t - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 393 | f | t | f | t - 395 | f | t | f | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 437 | f | t | f | t - 439 | f | t | f | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 481 | | t | | t - 483 | | t | | t -(363 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + b1 | b2 | a | o +----+----+---+--- + f | t | f | t + t | f | f | t + t | t | t | t + t | | | t + | t | | t +(5 rows) --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; ---Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | t | 1 | t - 2 | 1 | t | 2 | t - 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f - 9 | 1 | t | 9 | t - 10 | 1 | t | 10 | t - 11 | 1 | t | 11 | t - 12 | 1 | t | 12 | t - 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t - 15 | 1 | t | 15 | f - 16 | 1 | t | 16 | f - 17 | 1 | t | 17 | f - 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t - 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | | 1 | t - 68 | 4 | | 2 | t - 69 | 4 | | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | | 9 | t - 76 | 4 | | 10 | t - 77 | 4 | | 11 | t - 78 | 4 | | 12 | t - 79 | 4 | | 13 | t - 80 | 4 | | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | | 21 | t - 88 | 4 | | 22 | - 89 | 5 | | 1 | t - 90 | 5 | | 2 | t - 91 | 5 | | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | | 9 | t - 98 | 5 | | 10 | t - 99 | 5 | | 11 | t - 100 | 5 | | 12 | t - 101 | 5 | | 13 | t - 102 | 5 | | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | | 21 | t - 110 | 5 | | 22 | - 111 | 6 | | 1 | t - 112 | 6 | | 2 | t - 113 | 6 | | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | | 9 | t - 120 | 6 | | 10 | t - 121 | 6 | | 11 | t - 122 | 6 | | 12 | t - 123 | 6 | | 13 | t - 124 | 6 | | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | | 21 | t - 132 | 6 | | 22 | - 133 | 7 | | 1 | t - 134 | 7 | | 2 | t - 135 | 7 | | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | | 9 | t - 142 | 7 | | 10 | t - 143 | 7 | | 11 | t - 144 | 7 | | 12 | t - 145 | 7 | | 13 | t - 146 | 7 | | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | | 21 | t - 154 | 7 | | 22 | - 155 | 8 | | 1 | t - 156 | 8 | | 2 | t - 157 | 8 | | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | | 9 | t - 164 | 8 | | 10 | t - 165 | 8 | | 11 | t - 166 | 8 | | 12 | t - 167 | 8 | | 13 | t - 168 | 8 | | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | | 21 | t - 176 | 8 | | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | | 1 | t - 310 | 15 | | 2 | t - 311 | 15 | | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | | 9 | t - 318 | 15 | | 10 | t - 319 | 15 | | 11 | t - 320 | 15 | | 12 | t - 321 | 15 | | 13 | t - 322 | 15 | | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | | 21 | t - 330 | 15 | | 22 | - 331 | 16 | | 1 | t - 332 | 16 | | 2 | t - 333 | 16 | | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | | 9 | t - 340 | 16 | | 10 | t - 341 | 16 | | 11 | t - 342 | 16 | | 12 | t - 343 | 16 | | 13 | t - 344 | 16 | | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | | 21 | t - 352 | 16 | | 22 | - 353 | 17 | | 1 | t - 354 | 17 | | 2 | t - 355 | 17 | | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | | 9 | t - 362 | 17 | | 10 | t - 363 | 17 | | 11 | t - 364 | 17 | | 12 | t - 365 | 17 | | 13 | t - 366 | 17 | | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | | 21 | t - 374 | 17 | | 22 | - 375 | 18 | | 1 | t - 376 | 18 | | 2 | t - 377 | 18 | | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | | 9 | t - 384 | 18 | | 10 | t - 385 | 18 | | 11 | t - 386 | 18 | | 12 | t - 387 | 18 | | 13 | t - 388 | 18 | | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | | 21 | t - 396 | 18 | | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | | 1 | t - 420 | 20 | | 2 | t - 421 | 20 | | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | | 9 | t - 428 | 20 | | 10 | t - 429 | 20 | | 11 | t - 430 | 20 | | 12 | t - 431 | 20 | | 13 | t - 432 | 20 | | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | | 21 | t - 440 | 20 | | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + QUERY PLAN +----------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = NULL WHERE ((NOT sqlite_fdw_bool(`b1`))) +(3 rows) +--Testcase 67: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + t | f + t | t + t | + | f + | t + | +(6 rows) + --Testcase 69: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; QUERY PLAN @@ -2377,1269 +1207,58 @@ UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) (3 rows) ---Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - --Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | t + f | + | f + | +(5 rows) + +--Testcase 72: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------- +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------- Delete on public."type_BOOLEAN_oper" -> Foreign Delete on public."type_BOOLEAN_oper" - SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE ((NOT sqlite_fdw_bool(`b1`))) AND (sqlite_fdw_bool(`b2`)) (3 rows) ---Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | + | f + | +(4 rows) + --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 19 | 1 | f | 19 | t - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 41 | 2 | f | 19 | t - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 63 | 3 | f | 19 | t - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 85 | 4 | f | 19 | t - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 107 | 5 | f | 19 | t - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 129 | 6 | f | 19 | t - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 151 | 7 | f | 19 | t - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 173 | 8 | f | 19 | t - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 195 | 9 | f | 19 | t - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 217 | 10 | f | 19 | t - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 239 | 11 | f | 19 | t - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 261 | 12 | f | 19 | t - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 283 | 13 | f | 19 | t - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 305 | 14 | f | 19 | t - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 327 | 15 | f | 19 | t - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 349 | 16 | f | 19 | t - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 371 | 17 | f | 19 | t - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 393 | 18 | f | 19 | t - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 415 | 19 | f | 19 | t - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 437 | 20 | f | 19 | t - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 459 | 21 | f | 19 | t - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 481 | 22 | f | 19 | t - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(264 rows) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) + +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/16.0/extra/bool.out b/expected/16.0/extra/bool.out index 3d9bf96c..4083dbca 100644 --- a/expected/16.0/extra/bool.out +++ b/expected/16.0/extra/bool.out @@ -374,2000 +374,830 @@ SELECT * FROM "type_BOOLEAN_oper"; 1 | 1 | t | 1 | t 2 | 1 | t | 2 | t 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f + 4 | 1 | t | 4 | t + 5 | 1 | t | 5 | t + 6 | 1 | t | 6 | t + 7 | 1 | t | 7 | t + 8 | 1 | t | 8 | t 9 | 1 | t | 9 | t 10 | 1 | t | 10 | t 11 | 1 | t | 11 | t 12 | 1 | t | 12 | t 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t + 14 | 1 | t | 14 | f 15 | 1 | t | 15 | f 16 | 1 | t | 16 | f 17 | 1 | t | 17 | f 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t + 19 | 1 | t | 19 | f 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | f | 4 | f - 71 | 4 | f | 5 | f - 72 | 4 | f | 6 | f - 73 | 4 | f | 7 | f - 74 | 4 | f | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | f | 15 | f - 82 | 4 | f | 16 | f - 83 | 4 | f | 17 | f - 84 | 4 | f | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | f | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | f | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | f | 4 | f - 93 | 5 | f | 5 | f - 94 | 5 | f | 6 | f - 95 | 5 | f | 7 | f - 96 | 5 | f | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | f | 15 | f - 104 | 5 | f | 16 | f - 105 | 5 | f | 17 | f - 106 | 5 | f | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | f | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | f | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | f | 4 | f - 115 | 6 | f | 5 | f - 116 | 6 | f | 6 | f - 117 | 6 | f | 7 | f - 118 | 6 | f | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | f | 15 | f - 126 | 6 | f | 16 | f - 127 | 6 | f | 17 | f - 128 | 6 | f | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | f | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | f | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | f | 4 | f - 137 | 7 | f | 5 | f - 138 | 7 | f | 6 | f - 139 | 7 | f | 7 | f - 140 | 7 | f | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | f | 15 | f - 148 | 7 | f | 16 | f - 149 | 7 | f | 17 | f - 150 | 7 | f | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | f | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | f | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | f | 4 | f - 159 | 8 | f | 5 | f - 160 | 8 | f | 6 | f - 161 | 8 | f | 7 | f - 162 | 8 | f | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | f | 15 | f - 170 | 8 | f | 16 | f - 171 | 8 | f | 17 | f - 172 | 8 | f | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | f | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | f | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | f | 4 | f - 313 | 15 | f | 5 | f - 314 | 15 | f | 6 | f - 315 | 15 | f | 7 | f - 316 | 15 | f | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | f | 15 | f - 324 | 15 | f | 16 | f - 325 | 15 | f | 17 | f - 326 | 15 | f | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | f | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | f | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | f | 4 | f - 335 | 16 | f | 5 | f - 336 | 16 | f | 6 | f - 337 | 16 | f | 7 | f - 338 | 16 | f | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | f | 15 | f - 346 | 16 | f | 16 | f - 347 | 16 | f | 17 | f - 348 | 16 | f | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | f | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | f | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | f | 4 | f - 357 | 17 | f | 5 | f - 358 | 17 | f | 6 | f - 359 | 17 | f | 7 | f - 360 | 17 | f | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | f | 15 | f - 368 | 17 | f | 16 | f - 369 | 17 | f | 17 | f - 370 | 17 | f | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | f | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | f | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | f | 4 | f - 379 | 18 | f | 5 | f - 380 | 18 | f | 6 | f - 381 | 18 | f | 7 | f - 382 | 18 | f | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | f | 15 | f - 390 | 18 | f | 16 | f - 391 | 18 | f | 17 | f - 392 | 18 | f | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | f | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | f | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | f | 4 | f - 423 | 20 | f | 5 | f - 424 | 20 | f | 6 | f - 425 | 20 | f | 7 | f - 426 | 20 | f | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | f | 15 | f - 434 | 20 | f | 16 | f - 435 | 20 | f | 17 | f - 436 | 20 | f | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | f | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | f | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + 21 | 1 | t | 21 | f + 22 | 1 | t | 22 | f + 23 | 1 | t | 23 | f + 24 | 1 | t | 24 | f + 25 | 1 | t | 25 | f + 26 | 1 | t | 26 | f + 27 | 1 | t | 27 | + 28 | 2 | t | 1 | t + 29 | 2 | t | 2 | t + 30 | 2 | t | 3 | t + 31 | 2 | t | 4 | t + 32 | 2 | t | 5 | t + 33 | 2 | t | 6 | t + 34 | 2 | t | 7 | t + 35 | 2 | t | 8 | t + 36 | 2 | t | 9 | t + 37 | 2 | t | 10 | t + 38 | 2 | t | 11 | t + 39 | 2 | t | 12 | t + 40 | 2 | t | 13 | t + 41 | 2 | t | 14 | f + 42 | 2 | t | 15 | f + 43 | 2 | t | 16 | f + 44 | 2 | t | 17 | f + 45 | 2 | t | 18 | f + 46 | 2 | t | 19 | f + 47 | 2 | t | 20 | f + 48 | 2 | t | 21 | f + 49 | 2 | t | 22 | f + 50 | 2 | t | 23 | f + 51 | 2 | t | 24 | f + 52 | 2 | t | 25 | f + 53 | 2 | t | 26 | f + 54 | 2 | t | 27 | + 55 | 3 | t | 1 | t + 56 | 3 | t | 2 | t + 57 | 3 | t | 3 | t + 58 | 3 | t | 4 | t + 59 | 3 | t | 5 | t + 60 | 3 | t | 6 | t + 61 | 3 | t | 7 | t + 62 | 3 | t | 8 | t + 63 | 3 | t | 9 | t + 64 | 3 | t | 10 | t + 65 | 3 | t | 11 | t + 66 | 3 | t | 12 | t + 67 | 3 | t | 13 | t + 68 | 3 | t | 14 | f + 69 | 3 | t | 15 | f + 70 | 3 | t | 16 | f + 71 | 3 | t | 17 | f + 72 | 3 | t | 18 | f + 73 | 3 | t | 19 | f + 74 | 3 | t | 20 | f + 75 | 3 | t | 21 | f + 76 | 3 | t | 22 | f + 77 | 3 | t | 23 | f + 78 | 3 | t | 24 | f + 79 | 3 | t | 25 | f + 80 | 3 | t | 26 | f + 81 | 3 | t | 27 | + 82 | 4 | t | 1 | t + 83 | 4 | t | 2 | t + 84 | 4 | t | 3 | t + 85 | 4 | t | 4 | t + 86 | 4 | t | 5 | t + 87 | 4 | t | 6 | t + 88 | 4 | t | 7 | t + 89 | 4 | t | 8 | t + 90 | 4 | t | 9 | t + 91 | 4 | t | 10 | t + 92 | 4 | t | 11 | t + 93 | 4 | t | 12 | t + 94 | 4 | t | 13 | t + 95 | 4 | t | 14 | f + 96 | 4 | t | 15 | f + 97 | 4 | t | 16 | f + 98 | 4 | t | 17 | f + 99 | 4 | t | 18 | f + 100 | 4 | t | 19 | f + 101 | 4 | t | 20 | f + 102 | 4 | t | 21 | f + 103 | 4 | t | 22 | f + 104 | 4 | t | 23 | f + 105 | 4 | t | 24 | f + 106 | 4 | t | 25 | f + 107 | 4 | t | 26 | f + 108 | 4 | t | 27 | + 109 | 5 | t | 1 | t + 110 | 5 | t | 2 | t + 111 | 5 | t | 3 | t + 112 | 5 | t | 4 | t + 113 | 5 | t | 5 | t + 114 | 5 | t | 6 | t + 115 | 5 | t | 7 | t + 116 | 5 | t | 8 | t + 117 | 5 | t | 9 | t + 118 | 5 | t | 10 | t + 119 | 5 | t | 11 | t + 120 | 5 | t | 12 | t + 121 | 5 | t | 13 | t + 122 | 5 | t | 14 | f + 123 | 5 | t | 15 | f + 124 | 5 | t | 16 | f + 125 | 5 | t | 17 | f + 126 | 5 | t | 18 | f + 127 | 5 | t | 19 | f + 128 | 5 | t | 20 | f + 129 | 5 | t | 21 | f + 130 | 5 | t | 22 | f + 131 | 5 | t | 23 | f + 132 | 5 | t | 24 | f + 133 | 5 | t | 25 | f + 134 | 5 | t | 26 | f + 135 | 5 | t | 27 | + 136 | 6 | t | 1 | t + 137 | 6 | t | 2 | t + 138 | 6 | t | 3 | t + 139 | 6 | t | 4 | t + 140 | 6 | t | 5 | t + 141 | 6 | t | 6 | t + 142 | 6 | t | 7 | t + 143 | 6 | t | 8 | t + 144 | 6 | t | 9 | t + 145 | 6 | t | 10 | t + 146 | 6 | t | 11 | t + 147 | 6 | t | 12 | t + 148 | 6 | t | 13 | t + 149 | 6 | t | 14 | f + 150 | 6 | t | 15 | f + 151 | 6 | t | 16 | f + 152 | 6 | t | 17 | f + 153 | 6 | t | 18 | f + 154 | 6 | t | 19 | f + 155 | 6 | t | 20 | f + 156 | 6 | t | 21 | f + 157 | 6 | t | 22 | f + 158 | 6 | t | 23 | f + 159 | 6 | t | 24 | f + 160 | 6 | t | 25 | f + 161 | 6 | t | 26 | f + 162 | 6 | t | 27 | + 163 | 7 | t | 1 | t + 164 | 7 | t | 2 | t + 165 | 7 | t | 3 | t + 166 | 7 | t | 4 | t + 167 | 7 | t | 5 | t + 168 | 7 | t | 6 | t + 169 | 7 | t | 7 | t + 170 | 7 | t | 8 | t + 171 | 7 | t | 9 | t + 172 | 7 | t | 10 | t + 173 | 7 | t | 11 | t + 174 | 7 | t | 12 | t + 175 | 7 | t | 13 | t + 176 | 7 | t | 14 | f + 177 | 7 | t | 15 | f + 178 | 7 | t | 16 | f + 179 | 7 | t | 17 | f + 180 | 7 | t | 18 | f + 181 | 7 | t | 19 | f + 182 | 7 | t | 20 | f + 183 | 7 | t | 21 | f + 184 | 7 | t | 22 | f + 185 | 7 | t | 23 | f + 186 | 7 | t | 24 | f + 187 | 7 | t | 25 | f + 188 | 7 | t | 26 | f + 189 | 7 | t | 27 | + 190 | 8 | t | 1 | t + 191 | 8 | t | 2 | t + 192 | 8 | t | 3 | t + 193 | 8 | t | 4 | t + 194 | 8 | t | 5 | t + 195 | 8 | t | 6 | t + 196 | 8 | t | 7 | t + 197 | 8 | t | 8 | t + 198 | 8 | t | 9 | t + 199 | 8 | t | 10 | t + 200 | 8 | t | 11 | t + 201 | 8 | t | 12 | t + 202 | 8 | t | 13 | t + 203 | 8 | t | 14 | f + 204 | 8 | t | 15 | f + 205 | 8 | t | 16 | f + 206 | 8 | t | 17 | f + 207 | 8 | t | 18 | f + 208 | 8 | t | 19 | f + 209 | 8 | t | 20 | f + 210 | 8 | t | 21 | f + 211 | 8 | t | 22 | f + 212 | 8 | t | 23 | f + 213 | 8 | t | 24 | f + 214 | 8 | t | 25 | f + 215 | 8 | t | 26 | f + 216 | 8 | t | 27 | + 217 | 9 | t | 1 | t + 218 | 9 | t | 2 | t + 219 | 9 | t | 3 | t + 220 | 9 | t | 4 | t + 221 | 9 | t | 5 | t + 222 | 9 | t | 6 | t + 223 | 9 | t | 7 | t + 224 | 9 | t | 8 | t + 225 | 9 | t | 9 | t + 226 | 9 | t | 10 | t + 227 | 9 | t | 11 | t + 228 | 9 | t | 12 | t + 229 | 9 | t | 13 | t + 230 | 9 | t | 14 | f + 231 | 9 | t | 15 | f + 232 | 9 | t | 16 | f + 233 | 9 | t | 17 | f + 234 | 9 | t | 18 | f + 235 | 9 | t | 19 | f + 236 | 9 | t | 20 | f + 237 | 9 | t | 21 | f + 238 | 9 | t | 22 | f + 239 | 9 | t | 23 | f + 240 | 9 | t | 24 | f + 241 | 9 | t | 25 | f + 242 | 9 | t | 26 | f + 243 | 9 | t | 27 | + 244 | 10 | t | 1 | t + 245 | 10 | t | 2 | t + 246 | 10 | t | 3 | t + 247 | 10 | t | 4 | t + 248 | 10 | t | 5 | t + 249 | 10 | t | 6 | t + 250 | 10 | t | 7 | t + 251 | 10 | t | 8 | t + 252 | 10 | t | 9 | t + 253 | 10 | t | 10 | t + 254 | 10 | t | 11 | t + 255 | 10 | t | 12 | t + 256 | 10 | t | 13 | t + 257 | 10 | t | 14 | f + 258 | 10 | t | 15 | f + 259 | 10 | t | 16 | f + 260 | 10 | t | 17 | f + 261 | 10 | t | 18 | f + 262 | 10 | t | 19 | f + 263 | 10 | t | 20 | f + 264 | 10 | t | 21 | f + 265 | 10 | t | 22 | f + 266 | 10 | t | 23 | f + 267 | 10 | t | 24 | f + 268 | 10 | t | 25 | f + 269 | 10 | t | 26 | f + 270 | 10 | t | 27 | + 271 | 11 | t | 1 | t + 272 | 11 | t | 2 | t + 273 | 11 | t | 3 | t + 274 | 11 | t | 4 | t + 275 | 11 | t | 5 | t + 276 | 11 | t | 6 | t + 277 | 11 | t | 7 | t + 278 | 11 | t | 8 | t + 279 | 11 | t | 9 | t + 280 | 11 | t | 10 | t + 281 | 11 | t | 11 | t + 282 | 11 | t | 12 | t + 283 | 11 | t | 13 | t + 284 | 11 | t | 14 | f + 285 | 11 | t | 15 | f + 286 | 11 | t | 16 | f + 287 | 11 | t | 17 | f + 288 | 11 | t | 18 | f + 289 | 11 | t | 19 | f + 290 | 11 | t | 20 | f + 291 | 11 | t | 21 | f + 292 | 11 | t | 22 | f + 293 | 11 | t | 23 | f + 294 | 11 | t | 24 | f + 295 | 11 | t | 25 | f + 296 | 11 | t | 26 | f + 297 | 11 | t | 27 | + 298 | 12 | t | 1 | t + 299 | 12 | t | 2 | t + 300 | 12 | t | 3 | t + 301 | 12 | t | 4 | t + 302 | 12 | t | 5 | t + 303 | 12 | t | 6 | t + 304 | 12 | t | 7 | t + 305 | 12 | t | 8 | t + 306 | 12 | t | 9 | t + 307 | 12 | t | 10 | t + 308 | 12 | t | 11 | t + 309 | 12 | t | 12 | t + 310 | 12 | t | 13 | t + 311 | 12 | t | 14 | f + 312 | 12 | t | 15 | f + 313 | 12 | t | 16 | f + 314 | 12 | t | 17 | f + 315 | 12 | t | 18 | f + 316 | 12 | t | 19 | f + 317 | 12 | t | 20 | f + 318 | 12 | t | 21 | f + 319 | 12 | t | 22 | f + 320 | 12 | t | 23 | f + 321 | 12 | t | 24 | f + 322 | 12 | t | 25 | f + 323 | 12 | t | 26 | f + 324 | 12 | t | 27 | + 325 | 13 | t | 1 | t + 326 | 13 | t | 2 | t + 327 | 13 | t | 3 | t + 328 | 13 | t | 4 | t + 329 | 13 | t | 5 | t + 330 | 13 | t | 6 | t + 331 | 13 | t | 7 | t + 332 | 13 | t | 8 | t + 333 | 13 | t | 9 | t + 334 | 13 | t | 10 | t + 335 | 13 | t | 11 | t + 336 | 13 | t | 12 | t + 337 | 13 | t | 13 | t + 338 | 13 | t | 14 | f + 339 | 13 | t | 15 | f + 340 | 13 | t | 16 | f + 341 | 13 | t | 17 | f + 342 | 13 | t | 18 | f + 343 | 13 | t | 19 | f + 344 | 13 | t | 20 | f + 345 | 13 | t | 21 | f + 346 | 13 | t | 22 | f + 347 | 13 | t | 23 | f + 348 | 13 | t | 24 | f + 349 | 13 | t | 25 | f + 350 | 13 | t | 26 | f + 351 | 13 | t | 27 | + 352 | 14 | f | 1 | t + 353 | 14 | f | 2 | t + 354 | 14 | f | 3 | t + 355 | 14 | f | 4 | t + 356 | 14 | f | 5 | t + 357 | 14 | f | 6 | t + 358 | 14 | f | 7 | t + 359 | 14 | f | 8 | t + 360 | 14 | f | 9 | t + 361 | 14 | f | 10 | t + 362 | 14 | f | 11 | t + 363 | 14 | f | 12 | t + 364 | 14 | f | 13 | t + 365 | 14 | f | 14 | f + 366 | 14 | f | 15 | f + 367 | 14 | f | 16 | f + 368 | 14 | f | 17 | f + 369 | 14 | f | 18 | f + 370 | 14 | f | 19 | f + 371 | 14 | f | 20 | f + 372 | 14 | f | 21 | f + 373 | 14 | f | 22 | f + 374 | 14 | f | 23 | f + 375 | 14 | f | 24 | f + 376 | 14 | f | 25 | f + 377 | 14 | f | 26 | f + 378 | 14 | f | 27 | + 379 | 15 | f | 1 | t + 380 | 15 | f | 2 | t + 381 | 15 | f | 3 | t + 382 | 15 | f | 4 | t + 383 | 15 | f | 5 | t + 384 | 15 | f | 6 | t + 385 | 15 | f | 7 | t + 386 | 15 | f | 8 | t + 387 | 15 | f | 9 | t + 388 | 15 | f | 10 | t + 389 | 15 | f | 11 | t + 390 | 15 | f | 12 | t + 391 | 15 | f | 13 | t + 392 | 15 | f | 14 | f + 393 | 15 | f | 15 | f + 394 | 15 | f | 16 | f + 395 | 15 | f | 17 | f + 396 | 15 | f | 18 | f + 397 | 15 | f | 19 | f + 398 | 15 | f | 20 | f + 399 | 15 | f | 21 | f + 400 | 15 | f | 22 | f + 401 | 15 | f | 23 | f + 402 | 15 | f | 24 | f + 403 | 15 | f | 25 | f + 404 | 15 | f | 26 | f + 405 | 15 | f | 27 | + 406 | 16 | f | 1 | t + 407 | 16 | f | 2 | t + 408 | 16 | f | 3 | t + 409 | 16 | f | 4 | t + 410 | 16 | f | 5 | t + 411 | 16 | f | 6 | t + 412 | 16 | f | 7 | t + 413 | 16 | f | 8 | t + 414 | 16 | f | 9 | t + 415 | 16 | f | 10 | t + 416 | 16 | f | 11 | t + 417 | 16 | f | 12 | t + 418 | 16 | f | 13 | t + 419 | 16 | f | 14 | f + 420 | 16 | f | 15 | f + 421 | 16 | f | 16 | f + 422 | 16 | f | 17 | f + 423 | 16 | f | 18 | f + 424 | 16 | f | 19 | f + 425 | 16 | f | 20 | f + 426 | 16 | f | 21 | f + 427 | 16 | f | 22 | f + 428 | 16 | f | 23 | f + 429 | 16 | f | 24 | f + 430 | 16 | f | 25 | f + 431 | 16 | f | 26 | f + 432 | 16 | f | 27 | + 433 | 17 | f | 1 | t + 434 | 17 | f | 2 | t + 435 | 17 | f | 3 | t + 436 | 17 | f | 4 | t + 437 | 17 | f | 5 | t + 438 | 17 | f | 6 | t + 439 | 17 | f | 7 | t + 440 | 17 | f | 8 | t + 441 | 17 | f | 9 | t + 442 | 17 | f | 10 | t + 443 | 17 | f | 11 | t + 444 | 17 | f | 12 | t + 445 | 17 | f | 13 | t + 446 | 17 | f | 14 | f + 447 | 17 | f | 15 | f + 448 | 17 | f | 16 | f + 449 | 17 | f | 17 | f + 450 | 17 | f | 18 | f + 451 | 17 | f | 19 | f + 452 | 17 | f | 20 | f + 453 | 17 | f | 21 | f + 454 | 17 | f | 22 | f + 455 | 17 | f | 23 | f + 456 | 17 | f | 24 | f + 457 | 17 | f | 25 | f + 458 | 17 | f | 26 | f + 459 | 17 | f | 27 | + 460 | 18 | f | 1 | t + 461 | 18 | f | 2 | t + 462 | 18 | f | 3 | t + 463 | 18 | f | 4 | t + 464 | 18 | f | 5 | t + 465 | 18 | f | 6 | t + 466 | 18 | f | 7 | t + 467 | 18 | f | 8 | t + 468 | 18 | f | 9 | t + 469 | 18 | f | 10 | t + 470 | 18 | f | 11 | t + 471 | 18 | f | 12 | t + 472 | 18 | f | 13 | t + 473 | 18 | f | 14 | f + 474 | 18 | f | 15 | f + 475 | 18 | f | 16 | f + 476 | 18 | f | 17 | f + 477 | 18 | f | 18 | f + 478 | 18 | f | 19 | f + 479 | 18 | f | 20 | f + 480 | 18 | f | 21 | f + 481 | 18 | f | 22 | f + 482 | 18 | f | 23 | f + 483 | 18 | f | 24 | f + 484 | 18 | f | 25 | f + 485 | 18 | f | 26 | f + 486 | 18 | f | 27 | + 487 | 19 | f | 1 | t + 488 | 19 | f | 2 | t + 489 | 19 | f | 3 | t + 490 | 19 | f | 4 | t + 491 | 19 | f | 5 | t + 492 | 19 | f | 6 | t + 493 | 19 | f | 7 | t + 494 | 19 | f | 8 | t + 495 | 19 | f | 9 | t + 496 | 19 | f | 10 | t + 497 | 19 | f | 11 | t + 498 | 19 | f | 12 | t + 499 | 19 | f | 13 | t + 500 | 19 | f | 14 | f + 501 | 19 | f | 15 | f + 502 | 19 | f | 16 | f + 503 | 19 | f | 17 | f + 504 | 19 | f | 18 | f + 505 | 19 | f | 19 | f + 506 | 19 | f | 20 | f + 507 | 19 | f | 21 | f + 508 | 19 | f | 22 | f + 509 | 19 | f | 23 | f + 510 | 19 | f | 24 | f + 511 | 19 | f | 25 | f + 512 | 19 | f | 26 | f + 513 | 19 | f | 27 | + 514 | 20 | f | 1 | t + 515 | 20 | f | 2 | t + 516 | 20 | f | 3 | t + 517 | 20 | f | 4 | t + 518 | 20 | f | 5 | t + 519 | 20 | f | 6 | t + 520 | 20 | f | 7 | t + 521 | 20 | f | 8 | t + 522 | 20 | f | 9 | t + 523 | 20 | f | 10 | t + 524 | 20 | f | 11 | t + 525 | 20 | f | 12 | t + 526 | 20 | f | 13 | t + 527 | 20 | f | 14 | f + 528 | 20 | f | 15 | f + 529 | 20 | f | 16 | f + 530 | 20 | f | 17 | f + 531 | 20 | f | 18 | f + 532 | 20 | f | 19 | f + 533 | 20 | f | 20 | f + 534 | 20 | f | 21 | f + 535 | 20 | f | 22 | f + 536 | 20 | f | 23 | f + 537 | 20 | f | 24 | f + 538 | 20 | f | 25 | f + 539 | 20 | f | 26 | f + 540 | 20 | f | 27 | + 541 | 21 | f | 1 | t + 542 | 21 | f | 2 | t + 543 | 21 | f | 3 | t + 544 | 21 | f | 4 | t + 545 | 21 | f | 5 | t + 546 | 21 | f | 6 | t + 547 | 21 | f | 7 | t + 548 | 21 | f | 8 | t + 549 | 21 | f | 9 | t + 550 | 21 | f | 10 | t + 551 | 21 | f | 11 | t + 552 | 21 | f | 12 | t + 553 | 21 | f | 13 | t + 554 | 21 | f | 14 | f + 555 | 21 | f | 15 | f + 556 | 21 | f | 16 | f + 557 | 21 | f | 17 | f + 558 | 21 | f | 18 | f + 559 | 21 | f | 19 | f + 560 | 21 | f | 20 | f + 561 | 21 | f | 21 | f + 562 | 21 | f | 22 | f + 563 | 21 | f | 23 | f + 564 | 21 | f | 24 | f + 565 | 21 | f | 25 | f + 566 | 21 | f | 26 | f + 567 | 21 | f | 27 | + 568 | 22 | f | 1 | t + 569 | 22 | f | 2 | t + 570 | 22 | f | 3 | t + 571 | 22 | f | 4 | t + 572 | 22 | f | 5 | t + 573 | 22 | f | 6 | t + 574 | 22 | f | 7 | t + 575 | 22 | f | 8 | t + 576 | 22 | f | 9 | t + 577 | 22 | f | 10 | t + 578 | 22 | f | 11 | t + 579 | 22 | f | 12 | t + 580 | 22 | f | 13 | t + 581 | 22 | f | 14 | f + 582 | 22 | f | 15 | f + 583 | 22 | f | 16 | f + 584 | 22 | f | 17 | f + 585 | 22 | f | 18 | f + 586 | 22 | f | 19 | f + 587 | 22 | f | 20 | f + 588 | 22 | f | 21 | f + 589 | 22 | f | 22 | f + 590 | 22 | f | 23 | f + 591 | 22 | f | 24 | f + 592 | 22 | f | 25 | f + 593 | 22 | f | 26 | f + 594 | 22 | f | 27 | + 595 | 23 | f | 1 | t + 596 | 23 | f | 2 | t + 597 | 23 | f | 3 | t + 598 | 23 | f | 4 | t + 599 | 23 | f | 5 | t + 600 | 23 | f | 6 | t + 601 | 23 | f | 7 | t + 602 | 23 | f | 8 | t + 603 | 23 | f | 9 | t + 604 | 23 | f | 10 | t + 605 | 23 | f | 11 | t + 606 | 23 | f | 12 | t + 607 | 23 | f | 13 | t + 608 | 23 | f | 14 | f + 609 | 23 | f | 15 | f + 610 | 23 | f | 16 | f + 611 | 23 | f | 17 | f + 612 | 23 | f | 18 | f + 613 | 23 | f | 19 | f + 614 | 23 | f | 20 | f + 615 | 23 | f | 21 | f + 616 | 23 | f | 22 | f + 617 | 23 | f | 23 | f + 618 | 23 | f | 24 | f + 619 | 23 | f | 25 | f + 620 | 23 | f | 26 | f + 621 | 23 | f | 27 | + 622 | 24 | f | 1 | t + 623 | 24 | f | 2 | t + 624 | 24 | f | 3 | t + 625 | 24 | f | 4 | t + 626 | 24 | f | 5 | t + 627 | 24 | f | 6 | t + 628 | 24 | f | 7 | t + 629 | 24 | f | 8 | t + 630 | 24 | f | 9 | t + 631 | 24 | f | 10 | t + 632 | 24 | f | 11 | t + 633 | 24 | f | 12 | t + 634 | 24 | f | 13 | t + 635 | 24 | f | 14 | f + 636 | 24 | f | 15 | f + 637 | 24 | f | 16 | f + 638 | 24 | f | 17 | f + 639 | 24 | f | 18 | f + 640 | 24 | f | 19 | f + 641 | 24 | f | 20 | f + 642 | 24 | f | 21 | f + 643 | 24 | f | 22 | f + 644 | 24 | f | 23 | f + 645 | 24 | f | 24 | f + 646 | 24 | f | 25 | f + 647 | 24 | f | 26 | f + 648 | 24 | f | 27 | + 649 | 25 | f | 1 | t + 650 | 25 | f | 2 | t + 651 | 25 | f | 3 | t + 652 | 25 | f | 4 | t + 653 | 25 | f | 5 | t + 654 | 25 | f | 6 | t + 655 | 25 | f | 7 | t + 656 | 25 | f | 8 | t + 657 | 25 | f | 9 | t + 658 | 25 | f | 10 | t + 659 | 25 | f | 11 | t + 660 | 25 | f | 12 | t + 661 | 25 | f | 13 | t + 662 | 25 | f | 14 | f + 663 | 25 | f | 15 | f + 664 | 25 | f | 16 | f + 665 | 25 | f | 17 | f + 666 | 25 | f | 18 | f + 667 | 25 | f | 19 | f + 668 | 25 | f | 20 | f + 669 | 25 | f | 21 | f + 670 | 25 | f | 22 | f + 671 | 25 | f | 23 | f + 672 | 25 | f | 24 | f + 673 | 25 | f | 25 | f + 674 | 25 | f | 26 | f + 675 | 25 | f | 27 | + 676 | 26 | f | 1 | t + 677 | 26 | f | 2 | t + 678 | 26 | f | 3 | t + 679 | 26 | f | 4 | t + 680 | 26 | f | 5 | t + 681 | 26 | f | 6 | t + 682 | 26 | f | 7 | t + 683 | 26 | f | 8 | t + 684 | 26 | f | 9 | t + 685 | 26 | f | 10 | t + 686 | 26 | f | 11 | t + 687 | 26 | f | 12 | t + 688 | 26 | f | 13 | t + 689 | 26 | f | 14 | f + 690 | 26 | f | 15 | f + 691 | 26 | f | 16 | f + 692 | 26 | f | 17 | f + 693 | 26 | f | 18 | f + 694 | 26 | f | 19 | f + 695 | 26 | f | 20 | f + 696 | 26 | f | 21 | f + 697 | 26 | f | 22 | f + 698 | 26 | f | 23 | f + 699 | 26 | f | 24 | f + 700 | 26 | f | 25 | f + 701 | 26 | f | 26 | f + 702 | 26 | f | 27 | + 703 | 27 | | 1 | t + 704 | 27 | | 2 | t + 705 | 27 | | 3 | t + 706 | 27 | | 4 | t + 707 | 27 | | 5 | t + 708 | 27 | | 6 | t + 709 | 27 | | 7 | t + 710 | 27 | | 8 | t + 711 | 27 | | 9 | t + 712 | 27 | | 10 | t + 713 | 27 | | 11 | t + 714 | 27 | | 12 | t + 715 | 27 | | 13 | t + 716 | 27 | | 14 | f + 717 | 27 | | 15 | f + 718 | 27 | | 16 | f + 719 | 27 | | 17 | f + 720 | 27 | | 18 | f + 721 | 27 | | 19 | f + 722 | 27 | | 20 | f + 723 | 27 | | 21 | f + 724 | 27 | | 22 | f + 725 | 27 | | 23 | f + 726 | 27 | | 24 | f + 727 | 27 | | 25 | f + 728 | 27 | | 26 | f + 729 | 27 | | 27 | +(729 rows) --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - QUERY PLAN --------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 70 | f | f | f | f - 71 | f | f | f | f - 72 | f | f | f | f - 73 | f | f | f | f - 74 | f | f | f | f - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 81 | f | f | f | f - 82 | f | f | f | f - 83 | f | f | f | f - 84 | f | f | f | f - 85 | f | t | f | t - 86 | f | f | f | f - 87 | f | t | f | t - 88 | f | | f | - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 92 | f | f | f | f - 93 | f | f | f | f - 94 | f | f | f | f - 95 | f | f | f | f - 96 | f | f | f | f - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 103 | f | f | f | f - 104 | f | f | f | f - 105 | f | f | f | f - 106 | f | f | f | f - 107 | f | t | f | t - 108 | f | f | f | f - 109 | f | t | f | t - 110 | f | | f | - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 114 | f | f | f | f - 115 | f | f | f | f - 116 | f | f | f | f - 117 | f | f | f | f - 118 | f | f | f | f - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 125 | f | f | f | f - 126 | f | f | f | f - 127 | f | f | f | f - 128 | f | f | f | f - 129 | f | t | f | t - 130 | f | f | f | f - 131 | f | t | f | t - 132 | f | | f | - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 136 | f | f | f | f - 137 | f | f | f | f - 138 | f | f | f | f - 139 | f | f | f | f - 140 | f | f | f | f - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 147 | f | f | f | f - 148 | f | f | f | f - 149 | f | f | f | f - 150 | f | f | f | f - 151 | f | t | f | t - 152 | f | f | f | f - 153 | f | t | f | t - 154 | f | | f | - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 158 | f | f | f | f - 159 | f | f | f | f - 160 | f | f | f | f - 161 | f | f | f | f - 162 | f | f | f | f - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 169 | f | f | f | f - 170 | f | f | f | f - 171 | f | f | f | f - 172 | f | f | f | f - 173 | f | t | f | t - 174 | f | f | f | f - 175 | f | t | f | t - 176 | f | | f | - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 312 | f | f | f | f - 313 | f | f | f | f - 314 | f | f | f | f - 315 | f | f | f | f - 316 | f | f | f | f - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 323 | f | f | f | f - 324 | f | f | f | f - 325 | f | f | f | f - 326 | f | f | f | f - 327 | f | t | f | t - 328 | f | f | f | f - 329 | f | t | f | t - 330 | f | | f | - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 334 | f | f | f | f - 335 | f | f | f | f - 336 | f | f | f | f - 337 | f | f | f | f - 338 | f | f | f | f - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 345 | f | f | f | f - 346 | f | f | f | f - 347 | f | f | f | f - 348 | f | f | f | f - 349 | f | t | f | t - 350 | f | f | f | f - 351 | f | t | f | t - 352 | f | | f | - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 356 | f | f | f | f - 357 | f | f | f | f - 358 | f | f | f | f - 359 | f | f | f | f - 360 | f | f | f | f - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 367 | f | f | f | f - 368 | f | f | f | f - 369 | f | f | f | f - 370 | f | f | f | f - 371 | f | t | f | t - 372 | f | f | f | f - 373 | f | t | f | t - 374 | f | | f | - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 378 | f | f | f | f - 379 | f | f | f | f - 380 | f | f | f | f - 381 | f | f | f | f - 382 | f | f | f | f - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 389 | f | f | f | f - 390 | f | f | f | f - 391 | f | f | f | f - 392 | f | f | f | f - 393 | f | t | f | t - 394 | f | f | f | f - 395 | f | t | f | t - 396 | f | | f | - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 422 | f | f | f | f - 423 | f | f | f | f - 424 | f | f | f | f - 425 | f | f | f | f - 426 | f | f | f | f - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 433 | f | f | f | f - 434 | f | f | f | f - 435 | f | f | f | f - 436 | f | f | f | f - 437 | f | t | f | t - 438 | f | f | f | f - 439 | f | t | f | t - 440 | f | | f | - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 466 | | f | f | - 467 | | f | f | - 468 | | f | f | - 469 | | f | f | - 470 | | f | f | - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 477 | | f | f | - 478 | | f | f | - 479 | | f | f | - 480 | | f | f | - 481 | | t | | t - 482 | | f | f | - 483 | | t | | t - 484 | | | | -(484 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; + b1 | b2 | a | o +----+----+---+--- + f | f | f | f + f | t | f | t + f | | f | + t | f | f | t + t | t | t | t + t | | | t + | f | f | + | t | | t + | | | +(9 rows) --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 19 | t | t | t | t - 21 | t | t | t | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 41 | t | t | t | t - 43 | t | t | t | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 63 | t | t | t | t - 65 | t | t | t | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 195 | t | t | t | t - 197 | t | t | t | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 217 | t | t | t | t - 219 | t | t | t | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 239 | t | t | t | t - 241 | t | t | t | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 261 | t | t | t | t - 263 | t | t | t | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 283 | t | t | t | t - 285 | t | t | t | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 305 | t | t | t | t - 307 | t | t | t | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 415 | t | t | t | t - 417 | t | t | t | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 459 | t | t | t | t - 461 | t | t | t | t -(121 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; + b1 | b2 | a | o +----+----+---+--- + t | t | t | t +(1 row) --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Foreign Scan on public."type_BOOLEAN_oper" - Output: i, b1, b2, (b1 AND b2), (b1 OR b2) - SQLite query: SELECT `i`, sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) -(3 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + QUERY PLAN +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Unique + Output: b1, b2, ((b1 AND b2)), ((b1 OR b2)) + -> Foreign Scan on public."type_BOOLEAN_oper" + Output: b1, b2, (b1 AND b2), (b1 OR b2) + SQLite query: SELECT sqlite_fdw_bool(`b1`), sqlite_fdw_bool(`b2`) FROM main."type_BOOLEAN_oper" WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) ORDER BY sqlite_fdw_bool(`b1`) ASC NULLS LAST, sqlite_fdw_bool(`b2`) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) AND sqlite_fdw_bool(`b2`)) ASC NULLS LAST, (sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`)) ASC NULLS LAST +(5 rows) --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; - i | b1 | b2 | a | o ------+----+----+---+--- - 1 | t | t | t | t - 2 | t | t | t | t - 3 | t | t | t | t - 4 | t | f | f | t - 5 | t | f | f | t - 6 | t | f | f | t - 7 | t | f | f | t - 8 | t | f | f | t - 9 | t | t | t | t - 10 | t | t | t | t - 11 | t | t | t | t - 12 | t | t | t | t - 13 | t | t | t | t - 14 | t | t | t | t - 15 | t | f | f | t - 16 | t | f | f | t - 17 | t | f | f | t - 18 | t | f | f | t - 19 | t | t | t | t - 20 | t | f | f | t - 21 | t | t | t | t - 22 | t | | | t - 23 | t | t | t | t - 24 | t | t | t | t - 25 | t | t | t | t - 26 | t | f | f | t - 27 | t | f | f | t - 28 | t | f | f | t - 29 | t | f | f | t - 30 | t | f | f | t - 31 | t | t | t | t - 32 | t | t | t | t - 33 | t | t | t | t - 34 | t | t | t | t - 35 | t | t | t | t - 36 | t | t | t | t - 37 | t | f | f | t - 38 | t | f | f | t - 39 | t | f | f | t - 40 | t | f | f | t - 41 | t | t | t | t - 42 | t | f | f | t - 43 | t | t | t | t - 44 | t | | | t - 45 | t | t | t | t - 46 | t | t | t | t - 47 | t | t | t | t - 48 | t | f | f | t - 49 | t | f | f | t - 50 | t | f | f | t - 51 | t | f | f | t - 52 | t | f | f | t - 53 | t | t | t | t - 54 | t | t | t | t - 55 | t | t | t | t - 56 | t | t | t | t - 57 | t | t | t | t - 58 | t | t | t | t - 59 | t | f | f | t - 60 | t | f | f | t - 61 | t | f | f | t - 62 | t | f | f | t - 63 | t | t | t | t - 64 | t | f | f | t - 65 | t | t | t | t - 66 | t | | | t - 67 | f | t | f | t - 68 | f | t | f | t - 69 | f | t | f | t - 75 | f | t | f | t - 76 | f | t | f | t - 77 | f | t | f | t - 78 | f | t | f | t - 79 | f | t | f | t - 80 | f | t | f | t - 85 | f | t | f | t - 87 | f | t | f | t - 89 | f | t | f | t - 90 | f | t | f | t - 91 | f | t | f | t - 97 | f | t | f | t - 98 | f | t | f | t - 99 | f | t | f | t - 100 | f | t | f | t - 101 | f | t | f | t - 102 | f | t | f | t - 107 | f | t | f | t - 109 | f | t | f | t - 111 | f | t | f | t - 112 | f | t | f | t - 113 | f | t | f | t - 119 | f | t | f | t - 120 | f | t | f | t - 121 | f | t | f | t - 122 | f | t | f | t - 123 | f | t | f | t - 124 | f | t | f | t - 129 | f | t | f | t - 131 | f | t | f | t - 133 | f | t | f | t - 134 | f | t | f | t - 135 | f | t | f | t - 141 | f | t | f | t - 142 | f | t | f | t - 143 | f | t | f | t - 144 | f | t | f | t - 145 | f | t | f | t - 146 | f | t | f | t - 151 | f | t | f | t - 153 | f | t | f | t - 155 | f | t | f | t - 156 | f | t | f | t - 157 | f | t | f | t - 163 | f | t | f | t - 164 | f | t | f | t - 165 | f | t | f | t - 166 | f | t | f | t - 167 | f | t | f | t - 168 | f | t | f | t - 173 | f | t | f | t - 175 | f | t | f | t - 177 | t | t | t | t - 178 | t | t | t | t - 179 | t | t | t | t - 180 | t | f | f | t - 181 | t | f | f | t - 182 | t | f | f | t - 183 | t | f | f | t - 184 | t | f | f | t - 185 | t | t | t | t - 186 | t | t | t | t - 187 | t | t | t | t - 188 | t | t | t | t - 189 | t | t | t | t - 190 | t | t | t | t - 191 | t | f | f | t - 192 | t | f | f | t - 193 | t | f | f | t - 194 | t | f | f | t - 195 | t | t | t | t - 196 | t | f | f | t - 197 | t | t | t | t - 198 | t | | | t - 199 | t | t | t | t - 200 | t | t | t | t - 201 | t | t | t | t - 202 | t | f | f | t - 203 | t | f | f | t - 204 | t | f | f | t - 205 | t | f | f | t - 206 | t | f | f | t - 207 | t | t | t | t - 208 | t | t | t | t - 209 | t | t | t | t - 210 | t | t | t | t - 211 | t | t | t | t - 212 | t | t | t | t - 213 | t | f | f | t - 214 | t | f | f | t - 215 | t | f | f | t - 216 | t | f | f | t - 217 | t | t | t | t - 218 | t | f | f | t - 219 | t | t | t | t - 220 | t | | | t - 221 | t | t | t | t - 222 | t | t | t | t - 223 | t | t | t | t - 224 | t | f | f | t - 225 | t | f | f | t - 226 | t | f | f | t - 227 | t | f | f | t - 228 | t | f | f | t - 229 | t | t | t | t - 230 | t | t | t | t - 231 | t | t | t | t - 232 | t | t | t | t - 233 | t | t | t | t - 234 | t | t | t | t - 235 | t | f | f | t - 236 | t | f | f | t - 237 | t | f | f | t - 238 | t | f | f | t - 239 | t | t | t | t - 240 | t | f | f | t - 241 | t | t | t | t - 242 | t | | | t - 243 | t | t | t | t - 244 | t | t | t | t - 245 | t | t | t | t - 246 | t | f | f | t - 247 | t | f | f | t - 248 | t | f | f | t - 249 | t | f | f | t - 250 | t | f | f | t - 251 | t | t | t | t - 252 | t | t | t | t - 253 | t | t | t | t - 254 | t | t | t | t - 255 | t | t | t | t - 256 | t | t | t | t - 257 | t | f | f | t - 258 | t | f | f | t - 259 | t | f | f | t - 260 | t | f | f | t - 261 | t | t | t | t - 262 | t | f | f | t - 263 | t | t | t | t - 264 | t | | | t - 265 | t | t | t | t - 266 | t | t | t | t - 267 | t | t | t | t - 268 | t | f | f | t - 269 | t | f | f | t - 270 | t | f | f | t - 271 | t | f | f | t - 272 | t | f | f | t - 273 | t | t | t | t - 274 | t | t | t | t - 275 | t | t | t | t - 276 | t | t | t | t - 277 | t | t | t | t - 278 | t | t | t | t - 279 | t | f | f | t - 280 | t | f | f | t - 281 | t | f | f | t - 282 | t | f | f | t - 283 | t | t | t | t - 284 | t | f | f | t - 285 | t | t | t | t - 286 | t | | | t - 287 | t | t | t | t - 288 | t | t | t | t - 289 | t | t | t | t - 290 | t | f | f | t - 291 | t | f | f | t - 292 | t | f | f | t - 293 | t | f | f | t - 294 | t | f | f | t - 295 | t | t | t | t - 296 | t | t | t | t - 297 | t | t | t | t - 298 | t | t | t | t - 299 | t | t | t | t - 300 | t | t | t | t - 301 | t | f | f | t - 302 | t | f | f | t - 303 | t | f | f | t - 304 | t | f | f | t - 305 | t | t | t | t - 306 | t | f | f | t - 307 | t | t | t | t - 308 | t | | | t - 309 | f | t | f | t - 310 | f | t | f | t - 311 | f | t | f | t - 317 | f | t | f | t - 318 | f | t | f | t - 319 | f | t | f | t - 320 | f | t | f | t - 321 | f | t | f | t - 322 | f | t | f | t - 327 | f | t | f | t - 329 | f | t | f | t - 331 | f | t | f | t - 332 | f | t | f | t - 333 | f | t | f | t - 339 | f | t | f | t - 340 | f | t | f | t - 341 | f | t | f | t - 342 | f | t | f | t - 343 | f | t | f | t - 344 | f | t | f | t - 349 | f | t | f | t - 351 | f | t | f | t - 353 | f | t | f | t - 354 | f | t | f | t - 355 | f | t | f | t - 361 | f | t | f | t - 362 | f | t | f | t - 363 | f | t | f | t - 364 | f | t | f | t - 365 | f | t | f | t - 366 | f | t | f | t - 371 | f | t | f | t - 373 | f | t | f | t - 375 | f | t | f | t - 376 | f | t | f | t - 377 | f | t | f | t - 383 | f | t | f | t - 384 | f | t | f | t - 385 | f | t | f | t - 386 | f | t | f | t - 387 | f | t | f | t - 388 | f | t | f | t - 393 | f | t | f | t - 395 | f | t | f | t - 397 | t | t | t | t - 398 | t | t | t | t - 399 | t | t | t | t - 400 | t | f | f | t - 401 | t | f | f | t - 402 | t | f | f | t - 403 | t | f | f | t - 404 | t | f | f | t - 405 | t | t | t | t - 406 | t | t | t | t - 407 | t | t | t | t - 408 | t | t | t | t - 409 | t | t | t | t - 410 | t | t | t | t - 411 | t | f | f | t - 412 | t | f | f | t - 413 | t | f | f | t - 414 | t | f | f | t - 415 | t | t | t | t - 416 | t | f | f | t - 417 | t | t | t | t - 418 | t | | | t - 419 | f | t | f | t - 420 | f | t | f | t - 421 | f | t | f | t - 427 | f | t | f | t - 428 | f | t | f | t - 429 | f | t | f | t - 430 | f | t | f | t - 431 | f | t | f | t - 432 | f | t | f | t - 437 | f | t | f | t - 439 | f | t | f | t - 441 | t | t | t | t - 442 | t | t | t | t - 443 | t | t | t | t - 444 | t | f | f | t - 445 | t | f | f | t - 446 | t | f | f | t - 447 | t | f | f | t - 448 | t | f | f | t - 449 | t | t | t | t - 450 | t | t | t | t - 451 | t | t | t | t - 452 | t | t | t | t - 453 | t | t | t | t - 454 | t | t | t | t - 455 | t | f | f | t - 456 | t | f | f | t - 457 | t | f | f | t - 458 | t | f | f | t - 459 | t | t | t | t - 460 | t | f | f | t - 461 | t | t | t | t - 462 | t | | | t - 463 | | t | | t - 464 | | t | | t - 465 | | t | | t - 471 | | t | | t - 472 | | t | | t - 473 | | t | | t - 474 | | t | | t - 475 | | t | | t - 476 | | t | | t - 481 | | t | | t - 483 | | t | | t -(363 rows) +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; + b1 | b2 | a | o +----+----+---+--- + f | t | f | t + t | f | f | t + t | t | t | t + t | | | t + | t | | t +(5 rows) --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; ---Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | t | 1 | t - 2 | 1 | t | 2 | t - 3 | 1 | t | 3 | t - 4 | 1 | t | 4 | f - 5 | 1 | t | 5 | f - 6 | 1 | t | 6 | f - 7 | 1 | t | 7 | f - 8 | 1 | t | 8 | f - 9 | 1 | t | 9 | t - 10 | 1 | t | 10 | t - 11 | 1 | t | 11 | t - 12 | 1 | t | 12 | t - 13 | 1 | t | 13 | t - 14 | 1 | t | 14 | t - 15 | 1 | t | 15 | f - 16 | 1 | t | 16 | f - 17 | 1 | t | 17 | f - 18 | 1 | t | 18 | f - 19 | 1 | t | 19 | t - 20 | 1 | t | 20 | f - 21 | 1 | t | 21 | t - 22 | 1 | t | 22 | - 23 | 2 | t | 1 | t - 24 | 2 | t | 2 | t - 25 | 2 | t | 3 | t - 26 | 2 | t | 4 | f - 27 | 2 | t | 5 | f - 28 | 2 | t | 6 | f - 29 | 2 | t | 7 | f - 30 | 2 | t | 8 | f - 31 | 2 | t | 9 | t - 32 | 2 | t | 10 | t - 33 | 2 | t | 11 | t - 34 | 2 | t | 12 | t - 35 | 2 | t | 13 | t - 36 | 2 | t | 14 | t - 37 | 2 | t | 15 | f - 38 | 2 | t | 16 | f - 39 | 2 | t | 17 | f - 40 | 2 | t | 18 | f - 41 | 2 | t | 19 | t - 42 | 2 | t | 20 | f - 43 | 2 | t | 21 | t - 44 | 2 | t | 22 | - 45 | 3 | t | 1 | t - 46 | 3 | t | 2 | t - 47 | 3 | t | 3 | t - 48 | 3 | t | 4 | f - 49 | 3 | t | 5 | f - 50 | 3 | t | 6 | f - 51 | 3 | t | 7 | f - 52 | 3 | t | 8 | f - 53 | 3 | t | 9 | t - 54 | 3 | t | 10 | t - 55 | 3 | t | 11 | t - 56 | 3 | t | 12 | t - 57 | 3 | t | 13 | t - 58 | 3 | t | 14 | t - 59 | 3 | t | 15 | f - 60 | 3 | t | 16 | f - 61 | 3 | t | 17 | f - 62 | 3 | t | 18 | f - 63 | 3 | t | 19 | t - 64 | 3 | t | 20 | f - 65 | 3 | t | 21 | t - 66 | 3 | t | 22 | - 67 | 4 | | 1 | t - 68 | 4 | | 2 | t - 69 | 4 | | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | | 9 | t - 76 | 4 | | 10 | t - 77 | 4 | | 11 | t - 78 | 4 | | 12 | t - 79 | 4 | | 13 | t - 80 | 4 | | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | | 21 | t - 88 | 4 | | 22 | - 89 | 5 | | 1 | t - 90 | 5 | | 2 | t - 91 | 5 | | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | | 9 | t - 98 | 5 | | 10 | t - 99 | 5 | | 11 | t - 100 | 5 | | 12 | t - 101 | 5 | | 13 | t - 102 | 5 | | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | | 21 | t - 110 | 5 | | 22 | - 111 | 6 | | 1 | t - 112 | 6 | | 2 | t - 113 | 6 | | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | | 9 | t - 120 | 6 | | 10 | t - 121 | 6 | | 11 | t - 122 | 6 | | 12 | t - 123 | 6 | | 13 | t - 124 | 6 | | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | | 21 | t - 132 | 6 | | 22 | - 133 | 7 | | 1 | t - 134 | 7 | | 2 | t - 135 | 7 | | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | | 9 | t - 142 | 7 | | 10 | t - 143 | 7 | | 11 | t - 144 | 7 | | 12 | t - 145 | 7 | | 13 | t - 146 | 7 | | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | | 21 | t - 154 | 7 | | 22 | - 155 | 8 | | 1 | t - 156 | 8 | | 2 | t - 157 | 8 | | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | | 9 | t - 164 | 8 | | 10 | t - 165 | 8 | | 11 | t - 166 | 8 | | 12 | t - 167 | 8 | | 13 | t - 168 | 8 | | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | | 21 | t - 176 | 8 | | 22 | - 177 | 9 | t | 1 | t - 178 | 9 | t | 2 | t - 179 | 9 | t | 3 | t - 180 | 9 | t | 4 | f - 181 | 9 | t | 5 | f - 182 | 9 | t | 6 | f - 183 | 9 | t | 7 | f - 184 | 9 | t | 8 | f - 185 | 9 | t | 9 | t - 186 | 9 | t | 10 | t - 187 | 9 | t | 11 | t - 188 | 9 | t | 12 | t - 189 | 9 | t | 13 | t - 190 | 9 | t | 14 | t - 191 | 9 | t | 15 | f - 192 | 9 | t | 16 | f - 193 | 9 | t | 17 | f - 194 | 9 | t | 18 | f - 195 | 9 | t | 19 | t - 196 | 9 | t | 20 | f - 197 | 9 | t | 21 | t - 198 | 9 | t | 22 | - 199 | 10 | t | 1 | t - 200 | 10 | t | 2 | t - 201 | 10 | t | 3 | t - 202 | 10 | t | 4 | f - 203 | 10 | t | 5 | f - 204 | 10 | t | 6 | f - 205 | 10 | t | 7 | f - 206 | 10 | t | 8 | f - 207 | 10 | t | 9 | t - 208 | 10 | t | 10 | t - 209 | 10 | t | 11 | t - 210 | 10 | t | 12 | t - 211 | 10 | t | 13 | t - 212 | 10 | t | 14 | t - 213 | 10 | t | 15 | f - 214 | 10 | t | 16 | f - 215 | 10 | t | 17 | f - 216 | 10 | t | 18 | f - 217 | 10 | t | 19 | t - 218 | 10 | t | 20 | f - 219 | 10 | t | 21 | t - 220 | 10 | t | 22 | - 221 | 11 | t | 1 | t - 222 | 11 | t | 2 | t - 223 | 11 | t | 3 | t - 224 | 11 | t | 4 | f - 225 | 11 | t | 5 | f - 226 | 11 | t | 6 | f - 227 | 11 | t | 7 | f - 228 | 11 | t | 8 | f - 229 | 11 | t | 9 | t - 230 | 11 | t | 10 | t - 231 | 11 | t | 11 | t - 232 | 11 | t | 12 | t - 233 | 11 | t | 13 | t - 234 | 11 | t | 14 | t - 235 | 11 | t | 15 | f - 236 | 11 | t | 16 | f - 237 | 11 | t | 17 | f - 238 | 11 | t | 18 | f - 239 | 11 | t | 19 | t - 240 | 11 | t | 20 | f - 241 | 11 | t | 21 | t - 242 | 11 | t | 22 | - 243 | 12 | t | 1 | t - 244 | 12 | t | 2 | t - 245 | 12 | t | 3 | t - 246 | 12 | t | 4 | f - 247 | 12 | t | 5 | f - 248 | 12 | t | 6 | f - 249 | 12 | t | 7 | f - 250 | 12 | t | 8 | f - 251 | 12 | t | 9 | t - 252 | 12 | t | 10 | t - 253 | 12 | t | 11 | t - 254 | 12 | t | 12 | t - 255 | 12 | t | 13 | t - 256 | 12 | t | 14 | t - 257 | 12 | t | 15 | f - 258 | 12 | t | 16 | f - 259 | 12 | t | 17 | f - 260 | 12 | t | 18 | f - 261 | 12 | t | 19 | t - 262 | 12 | t | 20 | f - 263 | 12 | t | 21 | t - 264 | 12 | t | 22 | - 265 | 13 | t | 1 | t - 266 | 13 | t | 2 | t - 267 | 13 | t | 3 | t - 268 | 13 | t | 4 | f - 269 | 13 | t | 5 | f - 270 | 13 | t | 6 | f - 271 | 13 | t | 7 | f - 272 | 13 | t | 8 | f - 273 | 13 | t | 9 | t - 274 | 13 | t | 10 | t - 275 | 13 | t | 11 | t - 276 | 13 | t | 12 | t - 277 | 13 | t | 13 | t - 278 | 13 | t | 14 | t - 279 | 13 | t | 15 | f - 280 | 13 | t | 16 | f - 281 | 13 | t | 17 | f - 282 | 13 | t | 18 | f - 283 | 13 | t | 19 | t - 284 | 13 | t | 20 | f - 285 | 13 | t | 21 | t - 286 | 13 | t | 22 | - 287 | 14 | t | 1 | t - 288 | 14 | t | 2 | t - 289 | 14 | t | 3 | t - 290 | 14 | t | 4 | f - 291 | 14 | t | 5 | f - 292 | 14 | t | 6 | f - 293 | 14 | t | 7 | f - 294 | 14 | t | 8 | f - 295 | 14 | t | 9 | t - 296 | 14 | t | 10 | t - 297 | 14 | t | 11 | t - 298 | 14 | t | 12 | t - 299 | 14 | t | 13 | t - 300 | 14 | t | 14 | t - 301 | 14 | t | 15 | f - 302 | 14 | t | 16 | f - 303 | 14 | t | 17 | f - 304 | 14 | t | 18 | f - 305 | 14 | t | 19 | t - 306 | 14 | t | 20 | f - 307 | 14 | t | 21 | t - 308 | 14 | t | 22 | - 309 | 15 | | 1 | t - 310 | 15 | | 2 | t - 311 | 15 | | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | | 9 | t - 318 | 15 | | 10 | t - 319 | 15 | | 11 | t - 320 | 15 | | 12 | t - 321 | 15 | | 13 | t - 322 | 15 | | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | | 21 | t - 330 | 15 | | 22 | - 331 | 16 | | 1 | t - 332 | 16 | | 2 | t - 333 | 16 | | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | | 9 | t - 340 | 16 | | 10 | t - 341 | 16 | | 11 | t - 342 | 16 | | 12 | t - 343 | 16 | | 13 | t - 344 | 16 | | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | | 21 | t - 352 | 16 | | 22 | - 353 | 17 | | 1 | t - 354 | 17 | | 2 | t - 355 | 17 | | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | | 9 | t - 362 | 17 | | 10 | t - 363 | 17 | | 11 | t - 364 | 17 | | 12 | t - 365 | 17 | | 13 | t - 366 | 17 | | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | | 21 | t - 374 | 17 | | 22 | - 375 | 18 | | 1 | t - 376 | 18 | | 2 | t - 377 | 18 | | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | | 9 | t - 384 | 18 | | 10 | t - 385 | 18 | | 11 | t - 386 | 18 | | 12 | t - 387 | 18 | | 13 | t - 388 | 18 | | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | | 21 | t - 396 | 18 | | 22 | - 397 | 19 | t | 1 | t - 398 | 19 | t | 2 | t - 399 | 19 | t | 3 | t - 400 | 19 | t | 4 | f - 401 | 19 | t | 5 | f - 402 | 19 | t | 6 | f - 403 | 19 | t | 7 | f - 404 | 19 | t | 8 | f - 405 | 19 | t | 9 | t - 406 | 19 | t | 10 | t - 407 | 19 | t | 11 | t - 408 | 19 | t | 12 | t - 409 | 19 | t | 13 | t - 410 | 19 | t | 14 | t - 411 | 19 | t | 15 | f - 412 | 19 | t | 16 | f - 413 | 19 | t | 17 | f - 414 | 19 | t | 18 | f - 415 | 19 | t | 19 | t - 416 | 19 | t | 20 | f - 417 | 19 | t | 21 | t - 418 | 19 | t | 22 | - 419 | 20 | | 1 | t - 420 | 20 | | 2 | t - 421 | 20 | | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | | 9 | t - 428 | 20 | | 10 | t - 429 | 20 | | 11 | t - 430 | 20 | | 12 | t - 431 | 20 | | 13 | t - 432 | 20 | | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | | 21 | t - 440 | 20 | | 22 | - 441 | 21 | t | 1 | t - 442 | 21 | t | 2 | t - 443 | 21 | t | 3 | t - 444 | 21 | t | 4 | f - 445 | 21 | t | 5 | f - 446 | 21 | t | 6 | f - 447 | 21 | t | 7 | f - 448 | 21 | t | 8 | f - 449 | 21 | t | 9 | t - 450 | 21 | t | 10 | t - 451 | 21 | t | 11 | t - 452 | 21 | t | 12 | t - 453 | 21 | t | 13 | t - 454 | 21 | t | 14 | t - 455 | 21 | t | 15 | f - 456 | 21 | t | 16 | f - 457 | 21 | t | 17 | f - 458 | 21 | t | 18 | f - 459 | 21 | t | 19 | t - 460 | 21 | t | 20 | f - 461 | 21 | t | 21 | t - 462 | 21 | t | 22 | - 463 | 22 | | 1 | t - 464 | 22 | | 2 | t - 465 | 22 | | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | | 9 | t - 472 | 22 | | 10 | t - 473 | 22 | | 11 | t - 474 | 22 | | 12 | t - 475 | 22 | | 13 | t - 476 | 22 | | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | | 21 | t - 484 | 22 | | 22 | -(484 rows) + QUERY PLAN +----------------------------------------------------------------------------------------------------------- + Update on public."type_BOOLEAN_oper" + -> Foreign Update on public."type_BOOLEAN_oper" + SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = NULL WHERE ((NOT sqlite_fdw_bool(`b1`))) +(3 rows) +--Testcase 67: +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + t | f + t | t + t | + | f + | t + | +(6 rows) + --Testcase 69: +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 70: EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; QUERY PLAN @@ -2377,1269 +1207,58 @@ UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; SQLite query: UPDATE main."type_BOOLEAN_oper" SET `b1` = 0 WHERE ((sqlite_fdw_bool(`b1`) OR sqlite_fdw_bool(`b2`))) (3 rows) ---Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - --Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | t + f | + | f + | +(5 rows) + +--Testcase 72: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------- +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------- Delete on public."type_BOOLEAN_oper" -> Foreign Delete on public."type_BOOLEAN_oper" - SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE (sqlite_fdw_bool(`b1`)) AND (sqlite_fdw_bool(`b2`)) + SQLite query: DELETE FROM main."type_BOOLEAN_oper" WHERE ((NOT sqlite_fdw_bool(`b1`))) AND (sqlite_fdw_bool(`b2`)) (3 rows) ---Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 4 | 1 | f | 4 | f - 5 | 1 | f | 5 | f - 6 | 1 | f | 6 | f - 7 | 1 | f | 7 | f - 8 | 1 | f | 8 | f - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 15 | 1 | f | 15 | f - 16 | 1 | f | 16 | f - 17 | 1 | f | 17 | f - 18 | 1 | f | 18 | f - 19 | 1 | f | 19 | t - 20 | 1 | f | 20 | f - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 26 | 2 | f | 4 | f - 27 | 2 | f | 5 | f - 28 | 2 | f | 6 | f - 29 | 2 | f | 7 | f - 30 | 2 | f | 8 | f - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 37 | 2 | f | 15 | f - 38 | 2 | f | 16 | f - 39 | 2 | f | 17 | f - 40 | 2 | f | 18 | f - 41 | 2 | f | 19 | t - 42 | 2 | f | 20 | f - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 48 | 3 | f | 4 | f - 49 | 3 | f | 5 | f - 50 | 3 | f | 6 | f - 51 | 3 | f | 7 | f - 52 | 3 | f | 8 | f - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 59 | 3 | f | 15 | f - 60 | 3 | f | 16 | f - 61 | 3 | f | 17 | f - 62 | 3 | f | 18 | f - 63 | 3 | f | 19 | t - 64 | 3 | f | 20 | f - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 70 | 4 | | 4 | f - 71 | 4 | | 5 | f - 72 | 4 | | 6 | f - 73 | 4 | | 7 | f - 74 | 4 | | 8 | f - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 81 | 4 | | 15 | f - 82 | 4 | | 16 | f - 83 | 4 | | 17 | f - 84 | 4 | | 18 | f - 85 | 4 | f | 19 | t - 86 | 4 | | 20 | f - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 92 | 5 | | 4 | f - 93 | 5 | | 5 | f - 94 | 5 | | 6 | f - 95 | 5 | | 7 | f - 96 | 5 | | 8 | f - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 103 | 5 | | 15 | f - 104 | 5 | | 16 | f - 105 | 5 | | 17 | f - 106 | 5 | | 18 | f - 107 | 5 | f | 19 | t - 108 | 5 | | 20 | f - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 114 | 6 | | 4 | f - 115 | 6 | | 5 | f - 116 | 6 | | 6 | f - 117 | 6 | | 7 | f - 118 | 6 | | 8 | f - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 125 | 6 | | 15 | f - 126 | 6 | | 16 | f - 127 | 6 | | 17 | f - 128 | 6 | | 18 | f - 129 | 6 | f | 19 | t - 130 | 6 | | 20 | f - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 136 | 7 | | 4 | f - 137 | 7 | | 5 | f - 138 | 7 | | 6 | f - 139 | 7 | | 7 | f - 140 | 7 | | 8 | f - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 147 | 7 | | 15 | f - 148 | 7 | | 16 | f - 149 | 7 | | 17 | f - 150 | 7 | | 18 | f - 151 | 7 | f | 19 | t - 152 | 7 | | 20 | f - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 158 | 8 | | 4 | f - 159 | 8 | | 5 | f - 160 | 8 | | 6 | f - 161 | 8 | | 7 | f - 162 | 8 | | 8 | f - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 169 | 8 | | 15 | f - 170 | 8 | | 16 | f - 171 | 8 | | 17 | f - 172 | 8 | | 18 | f - 173 | 8 | f | 19 | t - 174 | 8 | | 20 | f - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 180 | 9 | f | 4 | f - 181 | 9 | f | 5 | f - 182 | 9 | f | 6 | f - 183 | 9 | f | 7 | f - 184 | 9 | f | 8 | f - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 191 | 9 | f | 15 | f - 192 | 9 | f | 16 | f - 193 | 9 | f | 17 | f - 194 | 9 | f | 18 | f - 195 | 9 | f | 19 | t - 196 | 9 | f | 20 | f - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 202 | 10 | f | 4 | f - 203 | 10 | f | 5 | f - 204 | 10 | f | 6 | f - 205 | 10 | f | 7 | f - 206 | 10 | f | 8 | f - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 213 | 10 | f | 15 | f - 214 | 10 | f | 16 | f - 215 | 10 | f | 17 | f - 216 | 10 | f | 18 | f - 217 | 10 | f | 19 | t - 218 | 10 | f | 20 | f - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 224 | 11 | f | 4 | f - 225 | 11 | f | 5 | f - 226 | 11 | f | 6 | f - 227 | 11 | f | 7 | f - 228 | 11 | f | 8 | f - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 235 | 11 | f | 15 | f - 236 | 11 | f | 16 | f - 237 | 11 | f | 17 | f - 238 | 11 | f | 18 | f - 239 | 11 | f | 19 | t - 240 | 11 | f | 20 | f - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 246 | 12 | f | 4 | f - 247 | 12 | f | 5 | f - 248 | 12 | f | 6 | f - 249 | 12 | f | 7 | f - 250 | 12 | f | 8 | f - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 257 | 12 | f | 15 | f - 258 | 12 | f | 16 | f - 259 | 12 | f | 17 | f - 260 | 12 | f | 18 | f - 261 | 12 | f | 19 | t - 262 | 12 | f | 20 | f - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 268 | 13 | f | 4 | f - 269 | 13 | f | 5 | f - 270 | 13 | f | 6 | f - 271 | 13 | f | 7 | f - 272 | 13 | f | 8 | f - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 279 | 13 | f | 15 | f - 280 | 13 | f | 16 | f - 281 | 13 | f | 17 | f - 282 | 13 | f | 18 | f - 283 | 13 | f | 19 | t - 284 | 13 | f | 20 | f - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 290 | 14 | f | 4 | f - 291 | 14 | f | 5 | f - 292 | 14 | f | 6 | f - 293 | 14 | f | 7 | f - 294 | 14 | f | 8 | f - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 301 | 14 | f | 15 | f - 302 | 14 | f | 16 | f - 303 | 14 | f | 17 | f - 304 | 14 | f | 18 | f - 305 | 14 | f | 19 | t - 306 | 14 | f | 20 | f - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 312 | 15 | | 4 | f - 313 | 15 | | 5 | f - 314 | 15 | | 6 | f - 315 | 15 | | 7 | f - 316 | 15 | | 8 | f - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 323 | 15 | | 15 | f - 324 | 15 | | 16 | f - 325 | 15 | | 17 | f - 326 | 15 | | 18 | f - 327 | 15 | f | 19 | t - 328 | 15 | | 20 | f - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 334 | 16 | | 4 | f - 335 | 16 | | 5 | f - 336 | 16 | | 6 | f - 337 | 16 | | 7 | f - 338 | 16 | | 8 | f - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 345 | 16 | | 15 | f - 346 | 16 | | 16 | f - 347 | 16 | | 17 | f - 348 | 16 | | 18 | f - 349 | 16 | f | 19 | t - 350 | 16 | | 20 | f - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 356 | 17 | | 4 | f - 357 | 17 | | 5 | f - 358 | 17 | | 6 | f - 359 | 17 | | 7 | f - 360 | 17 | | 8 | f - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 367 | 17 | | 15 | f - 368 | 17 | | 16 | f - 369 | 17 | | 17 | f - 370 | 17 | | 18 | f - 371 | 17 | f | 19 | t - 372 | 17 | | 20 | f - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 378 | 18 | | 4 | f - 379 | 18 | | 5 | f - 380 | 18 | | 6 | f - 381 | 18 | | 7 | f - 382 | 18 | | 8 | f - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 389 | 18 | | 15 | f - 390 | 18 | | 16 | f - 391 | 18 | | 17 | f - 392 | 18 | | 18 | f - 393 | 18 | f | 19 | t - 394 | 18 | | 20 | f - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 400 | 19 | f | 4 | f - 401 | 19 | f | 5 | f - 402 | 19 | f | 6 | f - 403 | 19 | f | 7 | f - 404 | 19 | f | 8 | f - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 411 | 19 | f | 15 | f - 412 | 19 | f | 16 | f - 413 | 19 | f | 17 | f - 414 | 19 | f | 18 | f - 415 | 19 | f | 19 | t - 416 | 19 | f | 20 | f - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 422 | 20 | | 4 | f - 423 | 20 | | 5 | f - 424 | 20 | | 6 | f - 425 | 20 | | 7 | f - 426 | 20 | | 8 | f - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 433 | 20 | | 15 | f - 434 | 20 | | 16 | f - 435 | 20 | | 17 | f - 436 | 20 | | 18 | f - 437 | 20 | f | 19 | t - 438 | 20 | | 20 | f - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 444 | 21 | f | 4 | f - 445 | 21 | f | 5 | f - 446 | 21 | f | 6 | f - 447 | 21 | f | 7 | f - 448 | 21 | f | 8 | f - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 455 | 21 | f | 15 | f - 456 | 21 | f | 16 | f - 457 | 21 | f | 17 | f - 458 | 21 | f | 18 | f - 459 | 21 | f | 19 | t - 460 | 21 | f | 20 | f - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 466 | 22 | | 4 | f - 467 | 22 | | 5 | f - 468 | 22 | | 6 | f - 469 | 22 | | 7 | f - 470 | 22 | | 8 | f - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 477 | 22 | | 15 | f - 478 | 22 | | 16 | f - 479 | 22 | | 17 | f - 480 | 22 | | 18 | f - 481 | 22 | f | 19 | t - 482 | 22 | | 20 | f - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(484 rows) - +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | f + f | + | f + | +(4 rows) + --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; - i | i1 | b1 | i2 | b2 ------+----+----+----+---- - 1 | 1 | f | 1 | t - 2 | 1 | f | 2 | t - 3 | 1 | f | 3 | t - 9 | 1 | f | 9 | t - 10 | 1 | f | 10 | t - 11 | 1 | f | 11 | t - 12 | 1 | f | 12 | t - 13 | 1 | f | 13 | t - 14 | 1 | f | 14 | t - 19 | 1 | f | 19 | t - 21 | 1 | f | 21 | t - 22 | 1 | f | 22 | - 23 | 2 | f | 1 | t - 24 | 2 | f | 2 | t - 25 | 2 | f | 3 | t - 31 | 2 | f | 9 | t - 32 | 2 | f | 10 | t - 33 | 2 | f | 11 | t - 34 | 2 | f | 12 | t - 35 | 2 | f | 13 | t - 36 | 2 | f | 14 | t - 41 | 2 | f | 19 | t - 43 | 2 | f | 21 | t - 44 | 2 | f | 22 | - 45 | 3 | f | 1 | t - 46 | 3 | f | 2 | t - 47 | 3 | f | 3 | t - 53 | 3 | f | 9 | t - 54 | 3 | f | 10 | t - 55 | 3 | f | 11 | t - 56 | 3 | f | 12 | t - 57 | 3 | f | 13 | t - 58 | 3 | f | 14 | t - 63 | 3 | f | 19 | t - 65 | 3 | f | 21 | t - 66 | 3 | f | 22 | - 67 | 4 | f | 1 | t - 68 | 4 | f | 2 | t - 69 | 4 | f | 3 | t - 75 | 4 | f | 9 | t - 76 | 4 | f | 10 | t - 77 | 4 | f | 11 | t - 78 | 4 | f | 12 | t - 79 | 4 | f | 13 | t - 80 | 4 | f | 14 | t - 85 | 4 | f | 19 | t - 87 | 4 | f | 21 | t - 88 | 4 | | 22 | - 89 | 5 | f | 1 | t - 90 | 5 | f | 2 | t - 91 | 5 | f | 3 | t - 97 | 5 | f | 9 | t - 98 | 5 | f | 10 | t - 99 | 5 | f | 11 | t - 100 | 5 | f | 12 | t - 101 | 5 | f | 13 | t - 102 | 5 | f | 14 | t - 107 | 5 | f | 19 | t - 109 | 5 | f | 21 | t - 110 | 5 | | 22 | - 111 | 6 | f | 1 | t - 112 | 6 | f | 2 | t - 113 | 6 | f | 3 | t - 119 | 6 | f | 9 | t - 120 | 6 | f | 10 | t - 121 | 6 | f | 11 | t - 122 | 6 | f | 12 | t - 123 | 6 | f | 13 | t - 124 | 6 | f | 14 | t - 129 | 6 | f | 19 | t - 131 | 6 | f | 21 | t - 132 | 6 | | 22 | - 133 | 7 | f | 1 | t - 134 | 7 | f | 2 | t - 135 | 7 | f | 3 | t - 141 | 7 | f | 9 | t - 142 | 7 | f | 10 | t - 143 | 7 | f | 11 | t - 144 | 7 | f | 12 | t - 145 | 7 | f | 13 | t - 146 | 7 | f | 14 | t - 151 | 7 | f | 19 | t - 153 | 7 | f | 21 | t - 154 | 7 | | 22 | - 155 | 8 | f | 1 | t - 156 | 8 | f | 2 | t - 157 | 8 | f | 3 | t - 163 | 8 | f | 9 | t - 164 | 8 | f | 10 | t - 165 | 8 | f | 11 | t - 166 | 8 | f | 12 | t - 167 | 8 | f | 13 | t - 168 | 8 | f | 14 | t - 173 | 8 | f | 19 | t - 175 | 8 | f | 21 | t - 176 | 8 | | 22 | - 177 | 9 | f | 1 | t - 178 | 9 | f | 2 | t - 179 | 9 | f | 3 | t - 185 | 9 | f | 9 | t - 186 | 9 | f | 10 | t - 187 | 9 | f | 11 | t - 188 | 9 | f | 12 | t - 189 | 9 | f | 13 | t - 190 | 9 | f | 14 | t - 195 | 9 | f | 19 | t - 197 | 9 | f | 21 | t - 198 | 9 | f | 22 | - 199 | 10 | f | 1 | t - 200 | 10 | f | 2 | t - 201 | 10 | f | 3 | t - 207 | 10 | f | 9 | t - 208 | 10 | f | 10 | t - 209 | 10 | f | 11 | t - 210 | 10 | f | 12 | t - 211 | 10 | f | 13 | t - 212 | 10 | f | 14 | t - 217 | 10 | f | 19 | t - 219 | 10 | f | 21 | t - 220 | 10 | f | 22 | - 221 | 11 | f | 1 | t - 222 | 11 | f | 2 | t - 223 | 11 | f | 3 | t - 229 | 11 | f | 9 | t - 230 | 11 | f | 10 | t - 231 | 11 | f | 11 | t - 232 | 11 | f | 12 | t - 233 | 11 | f | 13 | t - 234 | 11 | f | 14 | t - 239 | 11 | f | 19 | t - 241 | 11 | f | 21 | t - 242 | 11 | f | 22 | - 243 | 12 | f | 1 | t - 244 | 12 | f | 2 | t - 245 | 12 | f | 3 | t - 251 | 12 | f | 9 | t - 252 | 12 | f | 10 | t - 253 | 12 | f | 11 | t - 254 | 12 | f | 12 | t - 255 | 12 | f | 13 | t - 256 | 12 | f | 14 | t - 261 | 12 | f | 19 | t - 263 | 12 | f | 21 | t - 264 | 12 | f | 22 | - 265 | 13 | f | 1 | t - 266 | 13 | f | 2 | t - 267 | 13 | f | 3 | t - 273 | 13 | f | 9 | t - 274 | 13 | f | 10 | t - 275 | 13 | f | 11 | t - 276 | 13 | f | 12 | t - 277 | 13 | f | 13 | t - 278 | 13 | f | 14 | t - 283 | 13 | f | 19 | t - 285 | 13 | f | 21 | t - 286 | 13 | f | 22 | - 287 | 14 | f | 1 | t - 288 | 14 | f | 2 | t - 289 | 14 | f | 3 | t - 295 | 14 | f | 9 | t - 296 | 14 | f | 10 | t - 297 | 14 | f | 11 | t - 298 | 14 | f | 12 | t - 299 | 14 | f | 13 | t - 300 | 14 | f | 14 | t - 305 | 14 | f | 19 | t - 307 | 14 | f | 21 | t - 308 | 14 | f | 22 | - 309 | 15 | f | 1 | t - 310 | 15 | f | 2 | t - 311 | 15 | f | 3 | t - 317 | 15 | f | 9 | t - 318 | 15 | f | 10 | t - 319 | 15 | f | 11 | t - 320 | 15 | f | 12 | t - 321 | 15 | f | 13 | t - 322 | 15 | f | 14 | t - 327 | 15 | f | 19 | t - 329 | 15 | f | 21 | t - 330 | 15 | | 22 | - 331 | 16 | f | 1 | t - 332 | 16 | f | 2 | t - 333 | 16 | f | 3 | t - 339 | 16 | f | 9 | t - 340 | 16 | f | 10 | t - 341 | 16 | f | 11 | t - 342 | 16 | f | 12 | t - 343 | 16 | f | 13 | t - 344 | 16 | f | 14 | t - 349 | 16 | f | 19 | t - 351 | 16 | f | 21 | t - 352 | 16 | | 22 | - 353 | 17 | f | 1 | t - 354 | 17 | f | 2 | t - 355 | 17 | f | 3 | t - 361 | 17 | f | 9 | t - 362 | 17 | f | 10 | t - 363 | 17 | f | 11 | t - 364 | 17 | f | 12 | t - 365 | 17 | f | 13 | t - 366 | 17 | f | 14 | t - 371 | 17 | f | 19 | t - 373 | 17 | f | 21 | t - 374 | 17 | | 22 | - 375 | 18 | f | 1 | t - 376 | 18 | f | 2 | t - 377 | 18 | f | 3 | t - 383 | 18 | f | 9 | t - 384 | 18 | f | 10 | t - 385 | 18 | f | 11 | t - 386 | 18 | f | 12 | t - 387 | 18 | f | 13 | t - 388 | 18 | f | 14 | t - 393 | 18 | f | 19 | t - 395 | 18 | f | 21 | t - 396 | 18 | | 22 | - 397 | 19 | f | 1 | t - 398 | 19 | f | 2 | t - 399 | 19 | f | 3 | t - 405 | 19 | f | 9 | t - 406 | 19 | f | 10 | t - 407 | 19 | f | 11 | t - 408 | 19 | f | 12 | t - 409 | 19 | f | 13 | t - 410 | 19 | f | 14 | t - 415 | 19 | f | 19 | t - 417 | 19 | f | 21 | t - 418 | 19 | f | 22 | - 419 | 20 | f | 1 | t - 420 | 20 | f | 2 | t - 421 | 20 | f | 3 | t - 427 | 20 | f | 9 | t - 428 | 20 | f | 10 | t - 429 | 20 | f | 11 | t - 430 | 20 | f | 12 | t - 431 | 20 | f | 13 | t - 432 | 20 | f | 14 | t - 437 | 20 | f | 19 | t - 439 | 20 | f | 21 | t - 440 | 20 | | 22 | - 441 | 21 | f | 1 | t - 442 | 21 | f | 2 | t - 443 | 21 | f | 3 | t - 449 | 21 | f | 9 | t - 450 | 21 | f | 10 | t - 451 | 21 | f | 11 | t - 452 | 21 | f | 12 | t - 453 | 21 | f | 13 | t - 454 | 21 | f | 14 | t - 459 | 21 | f | 19 | t - 461 | 21 | f | 21 | t - 462 | 21 | f | 22 | - 463 | 22 | f | 1 | t - 464 | 22 | f | 2 | t - 465 | 22 | f | 3 | t - 471 | 22 | f | 9 | t - 472 | 22 | f | 10 | t - 473 | 22 | f | 11 | t - 474 | 22 | f | 12 | t - 475 | 22 | f | 13 | t - 476 | 22 | f | 14 | t - 481 | 22 | f | 19 | t - 483 | 22 | f | 21 | t - 484 | 22 | | 22 | -(264 rows) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) + +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; + b1 | b2 +----+---- + f | + | +(2 rows) --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/12.15/extra/bool.sql b/sql/12.15/extra/bool.sql index 9f0f198f..d736bae0 100644 --- a/sql/12.15/extra/bool.sql +++ b/sql/12.15/extra/bool.sql @@ -140,44 +140,51 @@ CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smal SELECT * FROM "type_BOOLEAN_oper"; --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 69: -EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; --Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; ---Testcase 71: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/bool.sql b/sql/13.11/extra/bool.sql index 9f0f198f..d736bae0 100644 --- a/sql/13.11/extra/bool.sql +++ b/sql/13.11/extra/bool.sql @@ -140,44 +140,51 @@ CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smal SELECT * FROM "type_BOOLEAN_oper"; --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 69: -EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; --Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; ---Testcase 71: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.8/extra/bool.sql b/sql/14.8/extra/bool.sql index 9f0f198f..d736bae0 100644 --- a/sql/14.8/extra/bool.sql +++ b/sql/14.8/extra/bool.sql @@ -140,44 +140,51 @@ CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smal SELECT * FROM "type_BOOLEAN_oper"; --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 69: -EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; --Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; ---Testcase 71: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/extra/bool.sql b/sql/15.3/extra/bool.sql index 9f0f198f..d736bae0 100644 --- a/sql/15.3/extra/bool.sql +++ b/sql/15.3/extra/bool.sql @@ -140,44 +140,51 @@ CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smal SELECT * FROM "type_BOOLEAN_oper"; --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 69: -EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; --Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; ---Testcase 71: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/bool.sql b/sql/16.0/extra/bool.sql index 9f0f198f..d736bae0 100644 --- a/sql/16.0/extra/bool.sql +++ b/sql/16.0/extra/bool.sql @@ -140,44 +140,51 @@ CREATE FOREIGN TABLE "type_BOOLEAN_oper"( "i" int OPTIONS (key 'true'), i1 smal SELECT * FROM "type_BOOLEAN_oper"; --Testcase 60: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 61: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper"; --Testcase 62: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 63: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 AND b2; --Testcase 64: EXPLAIN (VERBOSE, COSTS OFF) -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 65: -SELECT i, b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; +SELECT DISTINCT b1, b2, b1 AND b2 a, b1 OR b2 o FROM "type_BOOLEAN_oper" WHERE b1 OR b2; --Testcase 66: +EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 67: -SELECT * FROM "type_BOOLEAN_oper"; +UPDATE "type_BOOLEAN_oper" SET b1 = NULL WHERE NOT b1; --Testcase 68: -UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 69: -EXPLAIN (VERBOSE, COSTS OFF) UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; --Testcase 70: -SELECT * FROM "type_BOOLEAN_oper"; ---Testcase 71: EXPLAIN (VERBOSE, COSTS OFF) -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +UPDATE "type_BOOLEAN_oper" SET b1 = false WHERE b1 OR b2; +--Testcase 71: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 72: -DELETE FROM "type_BOOLEAN_oper" WHERE b1 AND b2; +EXPLAIN (VERBOSE, COSTS OFF) +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 73: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b1 AND b2; --Testcase 74: -DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 75: -SELECT * FROM "type_BOOLEAN_oper"; +DELETE FROM "type_BOOLEAN_oper" WHERE NOT b2; +--Testcase 76: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; +--Testcase 77: +DELETE FROM "type_BOOLEAN_oper" WHERE b2; +--Testcase 78: +SELECT DISTINCT b1, b2 FROM "type_BOOLEAN_oper"; --Testcase 003: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/init_data/init.sql b/sql/init_data/init.sql index dd6f2f31..c1c93a80 100644 --- a/sql/init_data/init.sql +++ b/sql/init_data/init.sql @@ -98,7 +98,10 @@ INSERT INTO "Unicode data" (i, t) VALUES ('heb', 'עטלף אבק נס דרך מ CREATE TABLE "type_BOOLEAN_oper" AS WITH booldata AS ( SELECT row_number() over () i, column1 AS b - FROM (VALUES ('Yes'), ('YeS'), ('yes'), ('no'),('No'), ('nO'), ('off'),('oFf'),('on'),('ON'),('t'),('T'),('Y'),('y'),('F'),('f'),('n'),(0),(1),('0'),('1'), (NULL)) + FROM ( VALUES + ('Yes'), ('YeS'), ('yes'), ('on'), ('ON'), ('t'), ('T'), ('Y'), ('y'), (1), ('1'), ('true'), ('tRuE'), + ('no'), ('No'), ('nO'), ('off'), ('oFf'), ('f'), ('F'), ('N'), ('n'), (0), ('0'), ('false'), ('fALsE'), + (NULL) ) ) SELECT ROW_NUMBER() OVER () i, t1.i i1, t1.b b1, t2.i i2, t2.b b2 FROM booldata t1 INNER JOIN booldata t2 ON 1; From e81840af1156fc10c8a427591a3f5718bd42519c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:21:53 +0300 Subject: [PATCH 18/27] Revert date in license, README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a4489e00..2a4aa4e8 100644 --- a/README.md +++ b/README.md @@ -636,7 +636,7 @@ Useful links License ------- -* Copyright © 2018 - 2024, TOSHIBA CORPORATION +* Copyright © 2018, TOSHIBA CORPORATION * Copyright © 2011 - 2016, EnterpriseDB Corporation Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. From 08d87482359053057ff47d4418fbd265069a5a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 1 Dec 2023 11:42:32 +0300 Subject: [PATCH 19/27] Improve gcc warning fix --- sqlite_fdw.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/sqlite_fdw.c b/sqlite_fdw.c index 70ab4c9c..7401aec2 100644 --- a/sqlite_fdw.c +++ b/sqlite_fdw.c @@ -1114,14 +1114,14 @@ sqliteGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid ParamPathInfo *param_info = (ParamPathInfo *) lfirst(lc); double rows; int width; - Cost startup_cost1; - Cost total_cost1; + Cost param_startup_cost; + Cost param_total_cost; /* Get a cost estimate from the remote */ sqlite_estimate_path_cost_size(root, baserel, param_info->ppi_clauses, NIL, NULL, &rows, &width, - &startup_cost1, &total_cost1); + ¶m_startup_cost, ¶m_total_cost); /* * ppi_rows currently won't get looked at by anything, but still we @@ -1133,8 +1133,8 @@ sqliteGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid path = create_foreignscan_path(root, baserel, NULL, /* default pathtarget */ rows, - startup_cost1, - total_cost1, + param_startup_cost, + param_total_cost, NIL, /* no pathkeys */ param_info->ppi_req_outer, NULL, @@ -3145,14 +3145,14 @@ sqliteImportForeignSchema(ImportForeignSchemaStmt *stmt, bool not_null; char *default_val; int primary_key; - int rc1 = sqlite3_step(pragma_stmt); - if (rc1 == SQLITE_DONE) + rc = sqlite3_step(pragma_stmt); + if (rc == SQLITE_DONE) break; - else if (rc1 != SQLITE_ROW) + else if (rc != SQLITE_ROW) { /* Not pass sql_stmt because it is finalized in PG_CATCH */ - sqlitefdw_report_error(ERROR, NULL, db, sqlite3_sql(pragma_stmt), rc1); + sqlitefdw_report_error(ERROR, NULL, db, sqlite3_sql(pragma_stmt), rc); } col_name = (char *) sqlite3_column_text(pragma_stmt, 1); type_name = (char *) sqlite3_column_text(pragma_stmt, 2); @@ -3758,7 +3758,6 @@ sqlite_foreign_grouping_ok(PlannerInfo *root, RelOptInfo *grouped_rel) PathTarget *grouping_target; SqliteFdwRelationInfo *fpinfo = (SqliteFdwRelationInfo *) grouped_rel->fdw_private; SqliteFdwRelationInfo *ofpinfo; - List *aggvars = NIL; ListCell *lc; int i; List *tlist = NIL; @@ -3852,6 +3851,7 @@ sqlite_foreign_grouping_ok(PlannerInfo *root, RelOptInfo *grouped_rel) } else { + List *aggvars = NIL; /* Not matched exactly, pull the var with aggregates then */ aggvars = pull_var_clause((Node *) expr, PVC_INCLUDE_AGGREGATES); @@ -3934,18 +3934,17 @@ sqlite_foreign_grouping_ok(PlannerInfo *root, RelOptInfo *grouped_rel) */ if (fpinfo->local_conds) { - List *aggvars1 = NIL; - + List *aggvars = NIL; foreach(lc, fpinfo->local_conds) { RestrictInfo *rinfo = lfirst_node(RestrictInfo, lc); - aggvars1 = list_concat(aggvars1, + aggvars = list_concat(aggvars, pull_var_clause((Node *) rinfo->clause, PVC_INCLUDE_AGGREGATES)); } - foreach(lc, aggvars1) + foreach(lc, aggvars) { Expr *expr = (Expr *) lfirst(lc); From 71a1276dbc9bb462ef105c38a03e9ba6021e27ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 1 Dec 2023 12:06:44 +0300 Subject: [PATCH 20/27] Remove encoding test artifacts from other test --- expected/15.3/sqlite_fdw.out | 10433 --------------------------------- expected/16.0/sqlite_fdw.out | 10433 --------------------------------- sql/15.3/sqlite_fdw.sql | 3600 ------------ sql/16.0/sqlite_fdw.sql | 3600 ------------ 4 files changed, 28066 deletions(-) diff --git a/expected/15.3/sqlite_fdw.out b/expected/15.3/sqlite_fdw.out index a1a8708c..82983f0a 100644 --- a/expected/15.3/sqlite_fdw.out +++ b/expected/15.3/sqlite_fdw.out @@ -1867,10436 +1867,3 @@ DROP FOREIGN TABLE "Unicode data"; DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t -------+------------------------------------------------------------------------- - aze+ | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t -------+-------------------------------------------------------------------- - arm+ | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/expected/16.0/sqlite_fdw.out b/expected/16.0/sqlite_fdw.out index a1a8708c..82983f0a 100644 --- a/expected/16.0/sqlite_fdw.out +++ b/expected/16.0/sqlite_fdw.out @@ -1867,10436 +1867,3 @@ DROP FOREIGN TABLE "Unicode data"; DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t -------+------------------------------------------------------------------------- - aze+ | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t -------+-------------------------------------------------------------------- - arm+ | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/sql/15.3/sqlite_fdw.sql b/sql/15.3/sqlite_fdw.sql index a027a841..ee68ba84 100644 --- a/sql/15.3/sqlite_fdw.sql +++ b/sql/15.3/sqlite_fdw.sql @@ -789,3603 +789,3 @@ DROP FOREIGN TABLE "Unicode data"; DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; - --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested - --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; - --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; - --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; - --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; - --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; - --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; - --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; - --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; - --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; - --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; - --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; - --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; - --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; - --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; - --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; - --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; - --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; - --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; - --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; - --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; - --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; - --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; - --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; - --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; - --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; - --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/sql/16.0/sqlite_fdw.sql b/sql/16.0/sqlite_fdw.sql index a027a841..ee68ba84 100644 --- a/sql/16.0/sqlite_fdw.sql +++ b/sql/16.0/sqlite_fdw.sql @@ -789,3603 +789,3 @@ DROP FOREIGN TABLE "Unicode data"; DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; - --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested - --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; - --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; - --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; - --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; - --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; - --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; - --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; - --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; - --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; - --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; - --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; - --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; - --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; - --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; - --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; - --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; - --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; - --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; - --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; - --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; - --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; - --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; - --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; - --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; - --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; - --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; From 72e1b22177db37251b2cda4474eb46955d1d6f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 15 Dec 2023 07:40:03 +0300 Subject: [PATCH 21/27] Fix SQLite data unifying functions and rc processing --- connection.c | 12 +----------- sqlite_data_norm.c | 45 ++++++++++++++++++++++++++++++++------------- sqlite_fdw.h | 2 +- 3 files changed, 34 insertions(+), 25 deletions(-) diff --git a/connection.c b/connection.c index 63ebf3ee..a13110d7 100644 --- a/connection.c +++ b/connection.c @@ -220,17 +220,7 @@ sqlite_open_db(const char *dbpath) /* add included inner SQLite functions from separate c file * for using in data unifying during deparsing */ - rc = sqlite_fdw_data_norm_functs_init(conn); - if (rc != SQLITE_OK) - { - char *perr = pstrdup(err); - - sqlite3_free(err); - sqlite3_close(conn); - ereport(ERROR, - (errcode(ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION), - errmsg("failed to create UUID support function for SQLite DB. rc=%d err=%s", rc, perr))); - } + sqlite_fdw_data_norm_functs_init(conn); return conn; } diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index 5c543a80..aeb77a0b 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -68,8 +68,10 @@ #include #include "sqlite3.h" +#include "postgres.h" +#include "sqlite_fdw.h" -int sqlite_fdw_data_norm_functs_init(sqlite3* db); +void error_helper(sqlite3* db, int rc); #if !defined(SQLITE_ASCII) && !defined(SQLITE_EBCDIC) #define SQLITE_ASCII 1 @@ -245,7 +247,7 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar return; } } - if ( l == 2 ) + else if ( l == 2 ) { if (strcasecmp(t, "on") == 0) { @@ -258,7 +260,7 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar return; } } - if ( l == 3 ) + else if ( l == 3 ) { if (strcasecmp(t, "yes") == 0) { @@ -271,12 +273,12 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar return; } } - if ( l == 4 && strcasecmp(t, "true") == 0) + else if ( l == 4 && strcasecmp(t, "true") == 0) { sqlite3_result_int(context, 1); return; } - if ( l == 5 && strcasecmp(t, "false") == 0) + else if ( l == 5 && strcasecmp(t, "false") == 0) { sqlite3_result_int(context, 0); return; @@ -284,20 +286,37 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar sqlite3_result_value(context, arg); } -int -sqlite_fdw_data_norm_functs_init(sqlite3* db) { - +/* + * Makes pg error from SQLite error. + * Interrupts normal executing, no need return after place of calling + */ +void +error_helper(sqlite3* db, int rc) +{ + const char * err = sqlite3_errmsg(db); + sqlite3_close(db); + ereport(ERROR, + (errcode(ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION), + errmsg("failed to create data unifying functions for SQLite DB"), + errhint("%s \n SQLite code %d", err, rc))); +} + +void +sqlite_fdw_data_norm_functs_init(sqlite3* db) +{ static const int det_flags = SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC; - int rc = sqlite3_create_function(db, "sqlite_fdw_uuid_blob", 1, det_flags, 0, sqlite_fdw_data_norm_uuid, 0, 0); - int rc1 = sqlite3_create_function(db, "sqlite_fdw_bool", 1, det_flags, 0, sqlite_fdw_data_norm_bool, 0, 0); - + int rc = sqlite3_create_function(db, "sqlite_fdw_uuid_blob", 1, det_flags, 0, sqlite_fdw_data_norm_uuid, 0, 0); + if (rc != SQLITE_OK) + error_helper(db, rc); + rc = sqlite3_create_function(db, "sqlite_fdw_bool", 1, det_flags, 0, sqlite_fdw_data_norm_bool, 0, 0); + if (rc != SQLITE_OK) + error_helper(db, rc); + /* no rc because in future SQLite releases it can be added UUID generation function * PostgreSQL 13+, no gen_random_uuid() before * static const int flags = SQLITE_UTF8 | SQLITE_INNOCUOUS; * sqlite3_create_function(db, "uuid_generate_v4", 0, flags, 0, uuid_generate, 0, 0); * sqlite3_create_function(db, "gen_random_uuid", 1, flags, 0, uuid_generate, 0, 0); */ - - return rc | rc1; } diff --git a/sqlite_fdw.h b/sqlite_fdw.h index 5bf02e37..901fb2ba 100644 --- a/sqlite_fdw.h +++ b/sqlite_fdw.h @@ -380,7 +380,7 @@ NullableDatum sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, i void sqlite_bind_sql_var(Form_pg_attribute att, int attnum, Datum value, sqlite3_stmt * stmt, bool *isnull, Oid relid); extern void sqlite_do_sql_command(sqlite3 * conn, const char *sql, int level, List **busy_connection); -int sqlite_fdw_data_norm_functs_init(sqlite3* db); +void sqlite_fdw_data_norm_functs_init(sqlite3* db); /* sqlite_query.c haders */ sqlite3_int64 binstr2int64(const char *s); From 3f61bd8c7ee1989dafd256c08bdf4850471bc256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:36:55 +0300 Subject: [PATCH 22/27] Fix indents, sqlite_data_norm.c --- sqlite_data_norm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index aeb77a0b..37d6b450 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -210,9 +210,9 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar sqlite3_result_value(context, arg); return; } - + t = (const char*)sqlite3_value_text(arg); - + if ( l == 1 ) { if (strcasecmp(t, "t") == 0) @@ -248,7 +248,7 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar } } else if ( l == 2 ) - { + { if (strcasecmp(t, "on") == 0) { sqlite3_result_int(context, 1); From 15a428e00c0175c1502aca7e972dfc1329cc5697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 15 Dec 2023 12:58:12 +0300 Subject: [PATCH 23/27] Delete trailing whitespaces (by linter) --- deparse.c | 14 +++++++------- sqlite_data_norm.c | 14 +++++++------- sqlite_fdw.c | 22 +++++++++++----------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/deparse.c b/deparse.c index 3796344f..7b8e77b5 100644 --- a/deparse.c +++ b/deparse.c @@ -674,7 +674,7 @@ sqlite_foreign_expr_walker(Node *node, ReleaseSysCache(tuple); /* - * Factorial (!) and Bitwise XOR (^), (#) + * Factorial (!) and Bitwise XOR (^), (#) * cannot be pushed down to SQLite * Full list see in https://www.postgresql.org/docs/current/functions-bitstring.html * ILIKE cannot be pushed down to SQLite @@ -2081,7 +2081,7 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * colname = get_attname(rte->relid, varattno); #endif pg_atttyp = get_atttype(rte->relid, varattno); - + /* PostgreSQL data types with possible mixed affinity SQLite base we should * normalize to preferred form in SQLite before transfer to PostgreSQL. * Recommended form for normalisation is someone from 1<->1 with PostgreSQL @@ -2105,7 +2105,7 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); appendStringInfoString(buf, ")"); } - else + else { elog(DEBUG4, "column name without data unification = \"%s\"", colname); if (qualify_col) @@ -2446,7 +2446,7 @@ sqlite_deparse_direct_delete_sql(StringInfo buf, PlannerInfo *root, List **retrieved_attrs) { deparse_expr_cxt context; - + elog(DEBUG1, "sqlite_fdw : %s", __func__); /* Set up context struct for recursion */ @@ -2656,7 +2656,7 @@ sqlite_deparse_const(Const *node, deparse_expr_cxt *context, int showtype) appendStringInfo(buf, "X\'%s\'", extval + 2); break; case TIMESTAMPOID: - { + { convert_timestamp_tounixepoch = false; extval = OidOutputFunctionCall(typoutput, node->constvalue); @@ -2678,8 +2678,8 @@ sqlite_deparse_const(Const *node, deparse_expr_cxt *context, int showtype) sqlite_deparse_string_literal(buf, extval); } break; - case UUIDOID: - /* always deparse to BLOB because this is internal PostgreSQL storage + case UUIDOID: + /* always deparse to BLOB because this is internal PostgreSQL storage * the string for BYTEA always seems to be in the format "\\x##" * where # is a hex digit, Even if the value passed in is * 'hi'::bytea we will receive "\x6869". Making this assumption diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index 37d6b450..fe46468c 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -4,7 +4,7 @@ * * SQLite functions for data normalization * This function is useful for mixed affinity inputs for PostgreSQL - * data column. Also some UUID functions are implemented here according + * data column. Also some UUID functions are implemented here according * the uuid SQLite exension, Public Domain * https://www.sqlite.org/src/file/ext/misc/uuid.c * @@ -165,8 +165,8 @@ static void sqlite_fdw_data_norm_uuid(sqlite3_context* context, int argc, sqlite3_value** argv) { unsigned char aBlob[16]; - sqlite3_value* arg = argv[0]; - + sqlite3_value* arg = argv[0]; + if (sqlite3_value_type(argv[0]) == SQLITE3_TEXT) { const unsigned char* txt = sqlite3_value_text(arg); @@ -182,7 +182,7 @@ sqlite_fdw_data_norm_uuid(sqlite3_context* context, int argc, sqlite3_value** ar /* * ISO:SQL valid boolean values with text affinity such as Y, no, f, t, oN etc. * will be treated as boolean like in PostgreSQL console input - */ + */ static void sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** argv) { @@ -303,7 +303,7 @@ error_helper(sqlite3* db, int rc) void sqlite_fdw_data_norm_functs_init(sqlite3* db) -{ +{ static const int det_flags = SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC; int rc = sqlite3_create_function(db, "sqlite_fdw_uuid_blob", 1, det_flags, 0, sqlite_fdw_data_norm_uuid, 0, 0); @@ -312,9 +312,9 @@ sqlite_fdw_data_norm_functs_init(sqlite3* db) rc = sqlite3_create_function(db, "sqlite_fdw_bool", 1, det_flags, 0, sqlite_fdw_data_norm_bool, 0, 0); if (rc != SQLITE_OK) error_helper(db, rc); - + /* no rc because in future SQLite releases it can be added UUID generation function - * PostgreSQL 13+, no gen_random_uuid() before + * PostgreSQL 13+, no gen_random_uuid() before * static const int flags = SQLITE_UTF8 | SQLITE_INNOCUOUS; * sqlite3_create_function(db, "uuid_generate_v4", 0, flags, 0, uuid_generate, 0, 0); * sqlite3_create_function(db, "gen_random_uuid", 1, flags, 0, uuid_generate, 0, 0); diff --git a/sqlite_fdw.c b/sqlite_fdw.c index 7401aec2..39abb0ad 100644 --- a/sqlite_fdw.c +++ b/sqlite_fdw.c @@ -1179,7 +1179,7 @@ sqliteGetForeignPlan(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid, #if PG_VERSION_NUM >= 150000 has_final_sort = boolVal(list_nth(best_path->fdw_private, FdwPathPrivateHasFinalSort)); has_limit = boolVal(list_nth(best_path->fdw_private, FdwPathPrivateHasLimit)); - + #else has_final_sort = intVal(list_nth(best_path->fdw_private, FdwPathPrivateHasFinalSort)); has_limit = intVal(list_nth(best_path->fdw_private, FdwPathPrivateHasLimit)); @@ -1595,16 +1595,16 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, if ( sqlite_value_affinity != SQLITE_NULL) { - /* TODO: Processing of column options about special convert behaviour + /* TODO: Processing of column options about special convert behaviour * options = GetForeignColumnOptions(rel, attnum_base); ... foreach(lc_attr, options) */ - + int AffinityBehaviourFlags = 0; /* TODO * Flags about special convert behaviour from options on database, table or column level */ - sqlite_coverted = sqlite_convert_to_pg(att, stmt, stmt_colid, + sqlite_coverted = sqlite_convert_to_pg(att, stmt, stmt_colid, festate->attinmeta, attnum, sqlite_value_affinity, AffinityBehaviourFlags); @@ -2918,7 +2918,7 @@ sqliteExecForeignUpdate(EState *estate, int attnum = lfirst_int(lc); bool is_null; Datum value = 0; - Form_pg_attribute bind_att = NULL; + Form_pg_attribute bind_att = NULL; #if PG_VERSION_NUM >= 140000 TupleDesc tupdesc = RelationGetDescr(fmstate->rel); Form_pg_attribute attr = TupleDescAttr(tupdesc, attnum - 1); @@ -4278,7 +4278,7 @@ sqlite_add_foreign_ordered_paths(PlannerInfo *root, RelOptInfo *input_rel, */ #if (PG_VERSION_NUM >= 150000) fdw_private = list_make2(makeBoolean(true), makeBoolean(false)); -#else +#else fdw_private = list_make2(makeInteger(true), makeInteger(false)); #endif @@ -5238,13 +5238,13 @@ sqlite_execute_insert(EState *estate, int nestlevel; int bindnum = 0; int i; - + #if PG_VERSION_NUM >= 140000 Relation rel = resultRelInfo->ri_RelationDesc; TupleDesc tupdesc = RelationGetDescr(rel); Oid foreignTableId = RelationGetRelid(rel); elog(DEBUG1, "sqlite_fdw : %s for RelId %u", __func__, foreignTableId); -#else +#else elog(DEBUG1, "sqlite_fdw : %s", __func__); #endif @@ -5296,7 +5296,7 @@ sqlite_execute_insert(EState *estate, sqlite_bind_sql_var(att, bindnum, value, fmstate->stmt, &isnull, foreignTableId); #else sqlite_bind_sql_var(att, bindnum, value, fmstate->stmt, &isnull, InvalidOid); -#endif +#endif bindnum++; } } @@ -5390,7 +5390,7 @@ sqlite_process_query_params(ExprContext *econtext, ExprState *expr_state = (ExprState *) lfirst(lc); Datum expr_value; bool isNull; - /* fake structure, bind function usually works with attribute, but just typid in our case */ + /* fake structure, bind function usually works with attribute, but just typid in our case */ Form_pg_attribute att = NULL; /* Evaluate the parameter expression */ @@ -5682,7 +5682,7 @@ sqliteIsForeignRelUpdatable(Relation rel) if (strcmp(def->defname, "updatable") == 0) updatable = defGetBoolean(def); - } + } /* * Currently "updatable" means support for INSERT, UPDATE and DELETE. From 78406b9ad53a7707f033c2f34d6410019a2b8d95 Mon Sep 17 00:00:00 2001 From: MinhLA1410 <36942826+MinhLA1410@users.noreply.github.com> Date: Tue, 26 Dec 2023 17:18:54 -0800 Subject: [PATCH 24/27] RELEASE_v2.4.0-test (#93) Co-authored-by: LeAnhMinh --- README.md | 28 +- expected/{12.15 => 12.16}/aggregate.out | 0 .../{12.15 => 12.16}/extra/aggregates.out | 0 expected/{12.15 => 12.16}/extra/encodings.out | 35 + expected/{12.15 => 12.16}/extra/float4.out | 0 expected/{12.15 => 12.16}/extra/float8.out | 0 expected/{12.15 => 12.16}/extra/insert.out | 0 expected/{12.15 => 12.16}/extra/int4.out | 0 expected/{12.15 => 12.16}/extra/int8.out | 0 expected/{12.15 => 12.16}/extra/join.out | 0 expected/{12.15 => 12.16}/extra/limit.out | 0 expected/{12.15 => 12.16}/extra/numeric.out | 0 expected/{12.15 => 12.16}/extra/prepare.out | 0 expected/{12.15 => 12.16}/extra/select.out | 0 .../{12.15 => 12.16}/extra/select_having.out | 0 .../extra/sqlite_fdw_post.out | 0 expected/{12.15 => 12.16}/extra/timestamp.out | 0 expected/{12.15 => 12.16}/extra/update.out | 0 expected/{12.15 => 12.16}/selectfunc.out | 0 expected/{12.15 => 12.16}/sqlite_fdw.out | 138 + expected/{12.15 => 12.16}/type.out | 0 expected/{13.11 => 13.12}/aggregate.out | 0 .../{13.11 => 13.12}/extra/aggregates.out | 0 expected/{14.8 => 13.12}/extra/encodings.out | 35 + expected/{13.11 => 13.12}/extra/float4.out | 0 expected/{13.11 => 13.12}/extra/float8.out | 0 expected/{13.11 => 13.12}/extra/insert.out | 0 expected/{13.11 => 13.12}/extra/int4.out | 0 expected/{13.11 => 13.12}/extra/int8.out | 0 expected/{13.11 => 13.12}/extra/join.out | 0 expected/{13.11 => 13.12}/extra/limit.out | 0 expected/{13.11 => 13.12}/extra/numeric.out | 0 expected/{13.11 => 13.12}/extra/prepare.out | 0 expected/{13.11 => 13.12}/extra/select.out | 0 .../{13.11 => 13.12}/extra/select_having.out | 0 .../extra/sqlite_fdw_post.out | 0 expected/{13.11 => 13.12}/extra/timestamp.out | 0 expected/{13.11 => 13.12}/extra/update.out | 0 expected/{13.11 => 13.12}/selectfunc.out | 0 expected/{13.11 => 13.12}/sqlite_fdw.out | 138 + expected/{13.11 => 13.12}/type.out | 501 +- expected/{14.8 => 14.9}/aggregate.out | 0 expected/{14.8 => 14.9}/extra/aggregates.out | 0 expected/{13.11 => 14.9}/extra/encodings.out | 35 + expected/{14.8 => 14.9}/extra/float4.out | 0 expected/{14.8 => 14.9}/extra/float8.out | 0 expected/{14.8 => 14.9}/extra/insert.out | 0 expected/{14.8 => 14.9}/extra/int4.out | 0 expected/{14.8 => 14.9}/extra/int8.out | 0 expected/{14.8 => 14.9}/extra/join.out | 0 expected/{14.8 => 14.9}/extra/limit.out | 0 expected/{14.8 => 14.9}/extra/numeric.out | 0 expected/{14.8 => 14.9}/extra/prepare.out | 0 expected/{14.8 => 14.9}/extra/select.out | 0 .../{14.8 => 14.9}/extra/select_having.out | 0 .../{14.8 => 14.9}/extra/sqlite_fdw_post.out | 0 expected/{14.8 => 14.9}/extra/timestamp.out | 0 expected/{14.8 => 14.9}/extra/update.out | 0 expected/{14.8 => 14.9}/selectfunc.out | 0 expected/{14.8 => 14.9}/sqlite_fdw.out | 29 - expected/{14.8 => 14.9}/type.out | 503 +- expected/15.3/sqlite_fdw.out | 12302 ---------------- expected/{15.3 => 15.4}/aggregate.out | 0 expected/{15.3 => 15.4}/extra/aggregates.out | 0 expected/{15.3 => 15.4}/extra/encodings.out | 35 + expected/{15.3 => 15.4}/extra/float4.out | 0 expected/{15.3 => 15.4}/extra/float8.out | 0 expected/{15.3 => 15.4}/extra/insert.out | 0 expected/{15.3 => 15.4}/extra/int4.out | 0 expected/{15.3 => 15.4}/extra/int8.out | 0 expected/{15.3 => 15.4}/extra/join.out | 0 expected/{15.3 => 15.4}/extra/limit.out | 0 expected/{15.3 => 15.4}/extra/numeric.out | 0 expected/{15.3 => 15.4}/extra/prepare.out | 0 expected/{15.3 => 15.4}/extra/select.out | 0 .../{15.3 => 15.4}/extra/select_having.out | 0 .../{15.3 => 15.4}/extra/sqlite_fdw_post.out | 0 expected/{15.3 => 15.4}/extra/timestamp.out | 0 expected/{15.3 => 15.4}/extra/update.out | 0 expected/{15.3 => 15.4}/selectfunc.out | 0 expected/15.4/sqlite_fdw.out | 1849 +++ expected/{15.3 => 15.4}/type.out | 503 +- expected/16.0/extra/encodings.out | 35 + expected/16.0/extra/join.out | 25 + expected/16.0/extra/sqlite_fdw_post.out | 78 +- expected/16.0/sqlite_fdw.out | 10471 +------------ sql/{12.15 => 12.16}/aggregate.sql | 0 sql/{12.15 => 12.16}/extra/aggregates.sql | 0 sql/{12.15 => 12.16}/extra/encodings.sql | 12 + sql/{12.15 => 12.16}/extra/float4.sql | 0 sql/{12.15 => 12.16}/extra/float8.sql | 0 sql/{12.15 => 12.16}/extra/insert.sql | 0 sql/{12.15 => 12.16}/extra/int4.sql | 0 sql/{12.15 => 12.16}/extra/int8.sql | 0 sql/{12.15 => 12.16}/extra/join.sql | 0 sql/{12.15 => 12.16}/extra/limit.sql | 0 sql/{12.15 => 12.16}/extra/numeric.sql | 0 sql/{12.15 => 12.16}/extra/prepare.sql | 0 sql/{12.15 => 12.16}/extra/select.sql | 0 sql/{12.15 => 12.16}/extra/select_having.sql | 0 .../extra/sqlite_fdw_post.sql | 0 sql/{12.15 => 12.16}/extra/timestamp.sql | 0 sql/{12.15 => 12.16}/extra/update.sql | 0 sql/{12.15 => 12.16}/selectfunc.sql | 0 sql/{12.15 => 12.16}/sqlite_fdw.sql | 130 + sql/{12.15 => 12.16}/type.sql | 0 sql/{13.11 => 13.12}/aggregate.sql | 0 sql/{13.11 => 13.12}/extra/aggregates.sql | 0 sql/{13.11 => 13.12}/extra/encodings.sql | 12 + sql/{13.11 => 13.12}/extra/float4.sql | 0 sql/{13.11 => 13.12}/extra/float8.sql | 0 sql/{13.11 => 13.12}/extra/insert.sql | 0 sql/{13.11 => 13.12}/extra/int4.sql | 0 sql/{13.11 => 13.12}/extra/int8.sql | 0 sql/{13.11 => 13.12}/extra/join.sql | 0 sql/{13.11 => 13.12}/extra/limit.sql | 0 sql/{13.11 => 13.12}/extra/numeric.sql | 0 sql/{13.11 => 13.12}/extra/prepare.sql | 0 sql/{13.11 => 13.12}/extra/select.sql | 0 sql/{13.11 => 13.12}/extra/select_having.sql | 0 .../extra/sqlite_fdw_post.sql | 0 sql/{13.11 => 13.12}/extra/timestamp.sql | 0 sql/{13.11 => 13.12}/extra/update.sql | 0 sql/{13.11 => 13.12}/selectfunc.sql | 0 sql/{13.11 => 13.12}/sqlite_fdw.sql | 130 + sql/{14.8 => 13.12}/type.sql | 202 + sql/{14.8 => 14.9}/aggregate.sql | 0 sql/{14.8 => 14.9}/extra/aggregates.sql | 0 sql/{14.8 => 14.9}/extra/encodings.sql | 12 + sql/{14.8 => 14.9}/extra/float4.sql | 0 sql/{14.8 => 14.9}/extra/float8.sql | 0 sql/{14.8 => 14.9}/extra/insert.sql | 0 sql/{14.8 => 14.9}/extra/int4.sql | 0 sql/{14.8 => 14.9}/extra/int8.sql | 0 sql/{14.8 => 14.9}/extra/join.sql | 0 sql/{14.8 => 14.9}/extra/limit.sql | 0 sql/{14.8 => 14.9}/extra/numeric.sql | 0 sql/{14.8 => 14.9}/extra/prepare.sql | 0 sql/{14.8 => 14.9}/extra/select.sql | 0 sql/{14.8 => 14.9}/extra/select_having.sql | 0 sql/{14.8 => 14.9}/extra/sqlite_fdw_post.sql | 0 sql/{14.8 => 14.9}/extra/timestamp.sql | 0 sql/{14.8 => 14.9}/extra/update.sql | 0 sql/{14.8 => 14.9}/selectfunc.sql | 0 sql/14.9/sqlite_fdw.sql | 793 + sql/{15.3 => 14.9}/type.sql | 202 + sql/15.3/sqlite_fdw.sql | 4391 ------ sql/{15.3 => 15.4}/aggregate.sql | 0 sql/{15.3 => 15.4}/extra/aggregates.sql | 0 sql/{15.3 => 15.4}/extra/encodings.sql | 12 + sql/{15.3 => 15.4}/extra/float4.sql | 0 sql/{15.3 => 15.4}/extra/float8.sql | 0 sql/{15.3 => 15.4}/extra/insert.sql | 0 sql/{15.3 => 15.4}/extra/int4.sql | 0 sql/{15.3 => 15.4}/extra/int8.sql | 0 sql/{15.3 => 15.4}/extra/join.sql | 0 sql/{15.3 => 15.4}/extra/limit.sql | 0 sql/{15.3 => 15.4}/extra/numeric.sql | 0 sql/{15.3 => 15.4}/extra/prepare.sql | 0 sql/{15.3 => 15.4}/extra/select.sql | 0 sql/{15.3 => 15.4}/extra/select_having.sql | 0 sql/{15.3 => 15.4}/extra/sqlite_fdw_post.sql | 0 sql/{15.3 => 15.4}/extra/timestamp.sql | 0 sql/{15.3 => 15.4}/extra/update.sql | 0 sql/{15.3 => 15.4}/selectfunc.sql | 0 sql/{14.8 => 15.4}/sqlite_fdw.sql | 7 +- sql/{13.11 => 15.4}/type.sql | 202 + sql/16.0/extra/encodings.sql | 12 + sql/16.0/extra/join.sql | 24 + sql/16.0/extra/sqlite_fdw_post.sql | 47 +- sql/16.0/sqlite_fdw.sql | 3611 +---- sql/init_data/init_core.sql | 4 + 172 files changed, 5695 insertions(+), 30848 deletions(-) rename expected/{12.15 => 12.16}/aggregate.out (100%) rename expected/{12.15 => 12.16}/extra/aggregates.out (100%) rename expected/{12.15 => 12.16}/extra/encodings.out (99%) rename expected/{12.15 => 12.16}/extra/float4.out (100%) rename expected/{12.15 => 12.16}/extra/float8.out (100%) rename expected/{12.15 => 12.16}/extra/insert.out (100%) rename expected/{12.15 => 12.16}/extra/int4.out (100%) rename expected/{12.15 => 12.16}/extra/int8.out (100%) rename expected/{12.15 => 12.16}/extra/join.out (100%) rename expected/{12.15 => 12.16}/extra/limit.out (100%) rename expected/{12.15 => 12.16}/extra/numeric.out (100%) rename expected/{12.15 => 12.16}/extra/prepare.out (100%) rename expected/{12.15 => 12.16}/extra/select.out (100%) rename expected/{12.15 => 12.16}/extra/select_having.out (100%) rename expected/{12.15 => 12.16}/extra/sqlite_fdw_post.out (100%) rename expected/{12.15 => 12.16}/extra/timestamp.out (100%) rename expected/{12.15 => 12.16}/extra/update.out (100%) rename expected/{12.15 => 12.16}/selectfunc.out (100%) rename expected/{12.15 => 12.16}/sqlite_fdw.out (90%) rename expected/{12.15 => 12.16}/type.out (100%) rename expected/{13.11 => 13.12}/aggregate.out (100%) rename expected/{13.11 => 13.12}/extra/aggregates.out (100%) rename expected/{14.8 => 13.12}/extra/encodings.out (99%) rename expected/{13.11 => 13.12}/extra/float4.out (100%) rename expected/{13.11 => 13.12}/extra/float8.out (100%) rename expected/{13.11 => 13.12}/extra/insert.out (100%) rename expected/{13.11 => 13.12}/extra/int4.out (100%) rename expected/{13.11 => 13.12}/extra/int8.out (100%) rename expected/{13.11 => 13.12}/extra/join.out (100%) rename expected/{13.11 => 13.12}/extra/limit.out (100%) rename expected/{13.11 => 13.12}/extra/numeric.out (100%) rename expected/{13.11 => 13.12}/extra/prepare.out (100%) rename expected/{13.11 => 13.12}/extra/select.out (100%) rename expected/{13.11 => 13.12}/extra/select_having.out (100%) rename expected/{13.11 => 13.12}/extra/sqlite_fdw_post.out (100%) rename expected/{13.11 => 13.12}/extra/timestamp.out (100%) rename expected/{13.11 => 13.12}/extra/update.out (100%) rename expected/{13.11 => 13.12}/selectfunc.out (100%) rename expected/{13.11 => 13.12}/sqlite_fdw.out (90%) rename expected/{13.11 => 13.12}/type.out (65%) rename expected/{14.8 => 14.9}/aggregate.out (100%) rename expected/{14.8 => 14.9}/extra/aggregates.out (100%) rename expected/{13.11 => 14.9}/extra/encodings.out (99%) rename expected/{14.8 => 14.9}/extra/float4.out (100%) rename expected/{14.8 => 14.9}/extra/float8.out (100%) rename expected/{14.8 => 14.9}/extra/insert.out (100%) rename expected/{14.8 => 14.9}/extra/int4.out (100%) rename expected/{14.8 => 14.9}/extra/int8.out (100%) rename expected/{14.8 => 14.9}/extra/join.out (100%) rename expected/{14.8 => 14.9}/extra/limit.out (100%) rename expected/{14.8 => 14.9}/extra/numeric.out (100%) rename expected/{14.8 => 14.9}/extra/prepare.out (100%) rename expected/{14.8 => 14.9}/extra/select.out (100%) rename expected/{14.8 => 14.9}/extra/select_having.out (100%) rename expected/{14.8 => 14.9}/extra/sqlite_fdw_post.out (100%) rename expected/{14.8 => 14.9}/extra/timestamp.out (100%) rename expected/{14.8 => 14.9}/extra/update.out (100%) rename expected/{14.8 => 14.9}/selectfunc.out (100%) rename expected/{14.8 => 14.9}/sqlite_fdw.out (95%) rename expected/{14.8 => 14.9}/type.out (65%) delete mode 100644 expected/15.3/sqlite_fdw.out rename expected/{15.3 => 15.4}/aggregate.out (100%) rename expected/{15.3 => 15.4}/extra/aggregates.out (100%) rename expected/{15.3 => 15.4}/extra/encodings.out (99%) rename expected/{15.3 => 15.4}/extra/float4.out (100%) rename expected/{15.3 => 15.4}/extra/float8.out (100%) rename expected/{15.3 => 15.4}/extra/insert.out (100%) rename expected/{15.3 => 15.4}/extra/int4.out (100%) rename expected/{15.3 => 15.4}/extra/int8.out (100%) rename expected/{15.3 => 15.4}/extra/join.out (100%) rename expected/{15.3 => 15.4}/extra/limit.out (100%) rename expected/{15.3 => 15.4}/extra/numeric.out (100%) rename expected/{15.3 => 15.4}/extra/prepare.out (100%) rename expected/{15.3 => 15.4}/extra/select.out (100%) rename expected/{15.3 => 15.4}/extra/select_having.out (100%) rename expected/{15.3 => 15.4}/extra/sqlite_fdw_post.out (100%) rename expected/{15.3 => 15.4}/extra/timestamp.out (100%) rename expected/{15.3 => 15.4}/extra/update.out (100%) rename expected/{15.3 => 15.4}/selectfunc.out (100%) create mode 100644 expected/15.4/sqlite_fdw.out rename expected/{15.3 => 15.4}/type.out (65%) rename sql/{12.15 => 12.16}/aggregate.sql (100%) rename sql/{12.15 => 12.16}/extra/aggregates.sql (100%) rename sql/{12.15 => 12.16}/extra/encodings.sql (99%) rename sql/{12.15 => 12.16}/extra/float4.sql (100%) rename sql/{12.15 => 12.16}/extra/float8.sql (100%) rename sql/{12.15 => 12.16}/extra/insert.sql (100%) rename sql/{12.15 => 12.16}/extra/int4.sql (100%) rename sql/{12.15 => 12.16}/extra/int8.sql (100%) rename sql/{12.15 => 12.16}/extra/join.sql (100%) rename sql/{12.15 => 12.16}/extra/limit.sql (100%) rename sql/{12.15 => 12.16}/extra/numeric.sql (100%) rename sql/{12.15 => 12.16}/extra/prepare.sql (100%) rename sql/{12.15 => 12.16}/extra/select.sql (100%) rename sql/{12.15 => 12.16}/extra/select_having.sql (100%) rename sql/{12.15 => 12.16}/extra/sqlite_fdw_post.sql (100%) rename sql/{12.15 => 12.16}/extra/timestamp.sql (100%) rename sql/{12.15 => 12.16}/extra/update.sql (100%) rename sql/{12.15 => 12.16}/selectfunc.sql (100%) rename sql/{12.15 => 12.16}/sqlite_fdw.sql (81%) rename sql/{12.15 => 12.16}/type.sql (100%) rename sql/{13.11 => 13.12}/aggregate.sql (100%) rename sql/{13.11 => 13.12}/extra/aggregates.sql (100%) rename sql/{13.11 => 13.12}/extra/encodings.sql (99%) rename sql/{13.11 => 13.12}/extra/float4.sql (100%) rename sql/{13.11 => 13.12}/extra/float8.sql (100%) rename sql/{13.11 => 13.12}/extra/insert.sql (100%) rename sql/{13.11 => 13.12}/extra/int4.sql (100%) rename sql/{13.11 => 13.12}/extra/int8.sql (100%) rename sql/{13.11 => 13.12}/extra/join.sql (100%) rename sql/{13.11 => 13.12}/extra/limit.sql (100%) rename sql/{13.11 => 13.12}/extra/numeric.sql (100%) rename sql/{13.11 => 13.12}/extra/prepare.sql (100%) rename sql/{13.11 => 13.12}/extra/select.sql (100%) rename sql/{13.11 => 13.12}/extra/select_having.sql (100%) rename sql/{13.11 => 13.12}/extra/sqlite_fdw_post.sql (100%) rename sql/{13.11 => 13.12}/extra/timestamp.sql (100%) rename sql/{13.11 => 13.12}/extra/update.sql (100%) rename sql/{13.11 => 13.12}/selectfunc.sql (100%) rename sql/{13.11 => 13.12}/sqlite_fdw.sql (81%) rename sql/{14.8 => 13.12}/type.sql (65%) rename sql/{14.8 => 14.9}/aggregate.sql (100%) rename sql/{14.8 => 14.9}/extra/aggregates.sql (100%) rename sql/{14.8 => 14.9}/extra/encodings.sql (99%) rename sql/{14.8 => 14.9}/extra/float4.sql (100%) rename sql/{14.8 => 14.9}/extra/float8.sql (100%) rename sql/{14.8 => 14.9}/extra/insert.sql (100%) rename sql/{14.8 => 14.9}/extra/int4.sql (100%) rename sql/{14.8 => 14.9}/extra/int8.sql (100%) rename sql/{14.8 => 14.9}/extra/join.sql (100%) rename sql/{14.8 => 14.9}/extra/limit.sql (100%) rename sql/{14.8 => 14.9}/extra/numeric.sql (100%) rename sql/{14.8 => 14.9}/extra/prepare.sql (100%) rename sql/{14.8 => 14.9}/extra/select.sql (100%) rename sql/{14.8 => 14.9}/extra/select_having.sql (100%) rename sql/{14.8 => 14.9}/extra/sqlite_fdw_post.sql (100%) rename sql/{14.8 => 14.9}/extra/timestamp.sql (100%) rename sql/{14.8 => 14.9}/extra/update.sql (100%) rename sql/{14.8 => 14.9}/selectfunc.sql (100%) create mode 100644 sql/14.9/sqlite_fdw.sql rename sql/{15.3 => 14.9}/type.sql (65%) delete mode 100644 sql/15.3/sqlite_fdw.sql rename sql/{15.3 => 15.4}/aggregate.sql (100%) rename sql/{15.3 => 15.4}/extra/aggregates.sql (100%) rename sql/{15.3 => 15.4}/extra/encodings.sql (99%) rename sql/{15.3 => 15.4}/extra/float4.sql (100%) rename sql/{15.3 => 15.4}/extra/float8.sql (100%) rename sql/{15.3 => 15.4}/extra/insert.sql (100%) rename sql/{15.3 => 15.4}/extra/int4.sql (100%) rename sql/{15.3 => 15.4}/extra/int8.sql (100%) rename sql/{15.3 => 15.4}/extra/join.sql (100%) rename sql/{15.3 => 15.4}/extra/limit.sql (100%) rename sql/{15.3 => 15.4}/extra/numeric.sql (100%) rename sql/{15.3 => 15.4}/extra/prepare.sql (100%) rename sql/{15.3 => 15.4}/extra/select.sql (100%) rename sql/{15.3 => 15.4}/extra/select_having.sql (100%) rename sql/{15.3 => 15.4}/extra/sqlite_fdw_post.sql (100%) rename sql/{15.3 => 15.4}/extra/timestamp.sql (100%) rename sql/{15.3 => 15.4}/extra/update.sql (100%) rename sql/{15.3 => 15.4}/selectfunc.sql (100%) rename sql/{14.8 => 15.4}/sqlite_fdw.sql (99%) rename sql/{13.11 => 15.4}/type.sql (65%) diff --git a/README.md b/README.md index 34d89b42..3c8c6cd6 100644 --- a/README.md +++ b/README.md @@ -160,19 +160,19 @@ SQLite `NULL` affinity always can be transparent converted for a nullable column - **database** as *string*, **required**, no default SQLite database path. - + - **updatable** as *boolean*, optional, default *true* This option allow or disallow write operations on SQLite database file. - + - **truncatable** as *boolean*, optional, default *true* Allows foreign tables to be truncated using the `TRUNCATE` command. - + - **keep_connections** as *boolean*, optional, default *true* - + Allows to keep connections to SQLite while there is no SQL operations between PostgreSQL and SQLite. - + - **batch_size** as *integer*, optional, default *1* Specifies the number of rows which should be inserted in a single `INSERT` operation. This setting can be overridden for individual tables. @@ -196,17 +196,17 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL SQLite table name. Use if not equal to name of foreign table in PostgreSQL. Also see about [identifier case handling](#identifier-case-handling). - **truncatable** as *boolean*, optional, default from the same `CREATE SERVER` option - + See `CREATE SERVER` options section for details. - **batch_size** as *integer*, optional, default from the same `CREATE SERVER` option See `CREATE SERVER` options section for details. - + - **updatable** as *boolean*, optional, default *true* This option can allow or disallow write operations on a SQLite table independed of the same server option. - + `sqlite_fdw` accepts the following column-level options via the `CREATE FOREIGN TABLE` command: @@ -533,30 +533,30 @@ Test directory have structure as following: ```sql +---sql -| +---12.15 +| +---12.16 | | filename1.sql | | filename2.sql | | -| +---13.11 +| +---13.12 | | filename1.sql | | filename2.sql | | ................. -| \---15.3 +| \---15.4 | filename1.sql | filename2.sql | \---expected -| +---12.15 +| +---12.16 | | filename1.out | | filename2.out | | -| +---13.11 +| +---13.12 | | filename1.out | | filename2.out | | ................. -| \---15.3 +| \---15.4 filename1.out filename2.out ``` diff --git a/expected/12.15/aggregate.out b/expected/12.16/aggregate.out similarity index 100% rename from expected/12.15/aggregate.out rename to expected/12.16/aggregate.out diff --git a/expected/12.15/extra/aggregates.out b/expected/12.16/extra/aggregates.out similarity index 100% rename from expected/12.15/extra/aggregates.out rename to expected/12.16/extra/aggregates.out diff --git a/expected/12.15/extra/encodings.out b/expected/12.16/extra/encodings.out similarity index 99% rename from expected/12.15/extra/encodings.out rename to expected/12.16/extra/encodings.out index eea172c4..1e041e7d 100644 --- a/expected/12.15/extra/encodings.out +++ b/expected/12.16/extra/encodings.out @@ -34,6 +34,41 @@ -- WIN1256 -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; + i | t +-----+------------------------------------------------------------------------------------------------------------------------ + jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. + bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. + rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. + aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. + arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ + ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. + eus | Permin gox dabiltzu yoskiñ. + bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. + gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός + gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. + spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. + kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. + lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. + pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. + fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! + srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. + epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. + cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ + heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם +(20 rows) + +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/expected/12.15/extra/float4.out b/expected/12.16/extra/float4.out similarity index 100% rename from expected/12.15/extra/float4.out rename to expected/12.16/extra/float4.out diff --git a/expected/12.15/extra/float8.out b/expected/12.16/extra/float8.out similarity index 100% rename from expected/12.15/extra/float8.out rename to expected/12.16/extra/float8.out diff --git a/expected/12.15/extra/insert.out b/expected/12.16/extra/insert.out similarity index 100% rename from expected/12.15/extra/insert.out rename to expected/12.16/extra/insert.out diff --git a/expected/12.15/extra/int4.out b/expected/12.16/extra/int4.out similarity index 100% rename from expected/12.15/extra/int4.out rename to expected/12.16/extra/int4.out diff --git a/expected/12.15/extra/int8.out b/expected/12.16/extra/int8.out similarity index 100% rename from expected/12.15/extra/int8.out rename to expected/12.16/extra/int8.out diff --git a/expected/12.15/extra/join.out b/expected/12.16/extra/join.out similarity index 100% rename from expected/12.15/extra/join.out rename to expected/12.16/extra/join.out diff --git a/expected/12.15/extra/limit.out b/expected/12.16/extra/limit.out similarity index 100% rename from expected/12.15/extra/limit.out rename to expected/12.16/extra/limit.out diff --git a/expected/12.15/extra/numeric.out b/expected/12.16/extra/numeric.out similarity index 100% rename from expected/12.15/extra/numeric.out rename to expected/12.16/extra/numeric.out diff --git a/expected/12.15/extra/prepare.out b/expected/12.16/extra/prepare.out similarity index 100% rename from expected/12.15/extra/prepare.out rename to expected/12.16/extra/prepare.out diff --git a/expected/12.15/extra/select.out b/expected/12.16/extra/select.out similarity index 100% rename from expected/12.15/extra/select.out rename to expected/12.16/extra/select.out diff --git a/expected/12.15/extra/select_having.out b/expected/12.16/extra/select_having.out similarity index 100% rename from expected/12.15/extra/select_having.out rename to expected/12.16/extra/select_having.out diff --git a/expected/12.15/extra/sqlite_fdw_post.out b/expected/12.16/extra/sqlite_fdw_post.out similarity index 100% rename from expected/12.15/extra/sqlite_fdw_post.out rename to expected/12.16/extra/sqlite_fdw_post.out diff --git a/expected/12.15/extra/timestamp.out b/expected/12.16/extra/timestamp.out similarity index 100% rename from expected/12.15/extra/timestamp.out rename to expected/12.16/extra/timestamp.out diff --git a/expected/12.15/extra/update.out b/expected/12.16/extra/update.out similarity index 100% rename from expected/12.15/extra/update.out rename to expected/12.16/extra/update.out diff --git a/expected/12.15/selectfunc.out b/expected/12.16/selectfunc.out similarity index 100% rename from expected/12.15/selectfunc.out rename to expected/12.16/selectfunc.out diff --git a/expected/12.15/sqlite_fdw.out b/expected/12.16/sqlite_fdw.out similarity index 90% rename from expected/12.15/sqlite_fdw.out rename to expected/12.16/sqlite_fdw.out index cfec8e7a..7e2f0d97 100644 --- a/expected/12.15/sqlite_fdw.out +++ b/expected/12.16/sqlite_fdw.out @@ -17,6 +17,8 @@ CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 136: CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; +-- updatable option test (github pull 59) +CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; --Testcase 1: SELECT * FROM department LIMIT 10; department_id | department_name @@ -1667,6 +1669,142 @@ SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'ba --Testcase 234: DELETE FROM case_exp; +-- updatable option test (github pull 59) +-- Full combinations +-- D-default, T-true, F-false +-- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF +-- SERVER default TABLE default +-- SERVER true TABLE default +-- SERVER false TABLE default +-- SERVER default TABLE true +-- SERVER default TABLE false +-- SERVER true TABLE true +-- SERVER false TABLE true +-- SERVER false TABLE false +-- SERVER true TABLE false +-- SERVER default TABLE default +--Testcase 235: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK +--Testcase 236: +UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK +--Testcase 237: +DELETE FROM RO_RW_test WHERE i=2; -- OK +-- SERVER true TABLE default +--Testcase 238: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 239: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK +--Testcase 240: +UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK +--Testcase 241: +DELETE FROM RO_RW_test WHERE i=3; -- OK +--Testcase 242: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK +-- SERVER false TABLE default +--Testcase 243: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 244: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 245: +UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 246: +DELETE FROM RO_RW_test WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER default TABLE true +--Testcase 247: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 248: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); +--Testcase 249: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK +--Testcase 250: +UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK +--Testcase 251: +DELETE FROM RO_RW_test WHERE i=6; -- OK +-- SERVER default TABLE false +--Testcase 252: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 253: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 254: +UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 255: +DELETE FROM RO_RW_test WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER true TABLE true +--Testcase 256: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 257: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); +--Testcase 258: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK +--Testcase 258: +UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK +--Testcase 260: +DELETE FROM RO_RW_test WHERE i=8; -- OK +--Testcase 261: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK +-- SERVER false TABLE true +--Testcase 262: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 263: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK +--Testcase 264: +UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK +--Testcase 265: +DELETE FROM RO_RW_test WHERE i=9; -- OK +-- SERVER false TABLE false +--Testcase 266: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 267: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 268: +UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 269: +DELETE FROM RO_RW_test WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER true TABLE false +--Testcase 270: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); +--Testcase 271: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 272: +UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 273: +DELETE FROM RO_RW_test WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +--Testcase 274: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 275: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); +--Testcase 276: +SELECT * FROM RO_RW_test ORDER BY i; + i | a | b | c +----+---+-------+--- + 1 | A | 1.001 | 0 + 4 | F | 0.005 | 5 + 10 | P | 4.15 | 1 +(3 rows) + +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +ERROR: cannot convert constant value to Sqlite value +HINT: Constant value data type: "tsquery" in column "b" +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); +-- updatable option test (github pull 59) +DROP FOREIGN TABLE RO_RW_test; --Testcase 142: DROP FUNCTION test_param_WHERE(); --Testcase 143: diff --git a/expected/12.15/type.out b/expected/12.16/type.out similarity index 100% rename from expected/12.15/type.out rename to expected/12.16/type.out diff --git a/expected/13.11/aggregate.out b/expected/13.12/aggregate.out similarity index 100% rename from expected/13.11/aggregate.out rename to expected/13.12/aggregate.out diff --git a/expected/13.11/extra/aggregates.out b/expected/13.12/extra/aggregates.out similarity index 100% rename from expected/13.11/extra/aggregates.out rename to expected/13.12/extra/aggregates.out diff --git a/expected/14.8/extra/encodings.out b/expected/13.12/extra/encodings.out similarity index 99% rename from expected/14.8/extra/encodings.out rename to expected/13.12/extra/encodings.out index eea172c4..1e041e7d 100644 --- a/expected/14.8/extra/encodings.out +++ b/expected/13.12/extra/encodings.out @@ -34,6 +34,41 @@ -- WIN1256 -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; + i | t +-----+------------------------------------------------------------------------------------------------------------------------ + jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. + bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. + rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. + aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. + arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ + ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. + eus | Permin gox dabiltzu yoskiñ. + bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. + gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός + gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. + spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. + kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. + lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. + pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. + fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! + srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. + epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. + cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ + heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם +(20 rows) + +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/expected/13.11/extra/float4.out b/expected/13.12/extra/float4.out similarity index 100% rename from expected/13.11/extra/float4.out rename to expected/13.12/extra/float4.out diff --git a/expected/13.11/extra/float8.out b/expected/13.12/extra/float8.out similarity index 100% rename from expected/13.11/extra/float8.out rename to expected/13.12/extra/float8.out diff --git a/expected/13.11/extra/insert.out b/expected/13.12/extra/insert.out similarity index 100% rename from expected/13.11/extra/insert.out rename to expected/13.12/extra/insert.out diff --git a/expected/13.11/extra/int4.out b/expected/13.12/extra/int4.out similarity index 100% rename from expected/13.11/extra/int4.out rename to expected/13.12/extra/int4.out diff --git a/expected/13.11/extra/int8.out b/expected/13.12/extra/int8.out similarity index 100% rename from expected/13.11/extra/int8.out rename to expected/13.12/extra/int8.out diff --git a/expected/13.11/extra/join.out b/expected/13.12/extra/join.out similarity index 100% rename from expected/13.11/extra/join.out rename to expected/13.12/extra/join.out diff --git a/expected/13.11/extra/limit.out b/expected/13.12/extra/limit.out similarity index 100% rename from expected/13.11/extra/limit.out rename to expected/13.12/extra/limit.out diff --git a/expected/13.11/extra/numeric.out b/expected/13.12/extra/numeric.out similarity index 100% rename from expected/13.11/extra/numeric.out rename to expected/13.12/extra/numeric.out diff --git a/expected/13.11/extra/prepare.out b/expected/13.12/extra/prepare.out similarity index 100% rename from expected/13.11/extra/prepare.out rename to expected/13.12/extra/prepare.out diff --git a/expected/13.11/extra/select.out b/expected/13.12/extra/select.out similarity index 100% rename from expected/13.11/extra/select.out rename to expected/13.12/extra/select.out diff --git a/expected/13.11/extra/select_having.out b/expected/13.12/extra/select_having.out similarity index 100% rename from expected/13.11/extra/select_having.out rename to expected/13.12/extra/select_having.out diff --git a/expected/13.11/extra/sqlite_fdw_post.out b/expected/13.12/extra/sqlite_fdw_post.out similarity index 100% rename from expected/13.11/extra/sqlite_fdw_post.out rename to expected/13.12/extra/sqlite_fdw_post.out diff --git a/expected/13.11/extra/timestamp.out b/expected/13.12/extra/timestamp.out similarity index 100% rename from expected/13.11/extra/timestamp.out rename to expected/13.12/extra/timestamp.out diff --git a/expected/13.11/extra/update.out b/expected/13.12/extra/update.out similarity index 100% rename from expected/13.11/extra/update.out rename to expected/13.12/extra/update.out diff --git a/expected/13.11/selectfunc.out b/expected/13.12/selectfunc.out similarity index 100% rename from expected/13.11/selectfunc.out rename to expected/13.12/selectfunc.out diff --git a/expected/13.11/sqlite_fdw.out b/expected/13.12/sqlite_fdw.out similarity index 90% rename from expected/13.11/sqlite_fdw.out rename to expected/13.12/sqlite_fdw.out index cfec8e7a..7e2f0d97 100644 --- a/expected/13.11/sqlite_fdw.out +++ b/expected/13.12/sqlite_fdw.out @@ -17,6 +17,8 @@ CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 136: CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; +-- updatable option test (github pull 59) +CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; --Testcase 1: SELECT * FROM department LIMIT 10; department_id | department_name @@ -1667,6 +1669,142 @@ SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'ba --Testcase 234: DELETE FROM case_exp; +-- updatable option test (github pull 59) +-- Full combinations +-- D-default, T-true, F-false +-- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF +-- SERVER default TABLE default +-- SERVER true TABLE default +-- SERVER false TABLE default +-- SERVER default TABLE true +-- SERVER default TABLE false +-- SERVER true TABLE true +-- SERVER false TABLE true +-- SERVER false TABLE false +-- SERVER true TABLE false +-- SERVER default TABLE default +--Testcase 235: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK +--Testcase 236: +UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK +--Testcase 237: +DELETE FROM RO_RW_test WHERE i=2; -- OK +-- SERVER true TABLE default +--Testcase 238: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 239: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK +--Testcase 240: +UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK +--Testcase 241: +DELETE FROM RO_RW_test WHERE i=3; -- OK +--Testcase 242: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK +-- SERVER false TABLE default +--Testcase 243: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 244: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 245: +UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 246: +DELETE FROM RO_RW_test WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER default TABLE true +--Testcase 247: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 248: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); +--Testcase 249: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK +--Testcase 250: +UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK +--Testcase 251: +DELETE FROM RO_RW_test WHERE i=6; -- OK +-- SERVER default TABLE false +--Testcase 252: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 253: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 254: +UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 255: +DELETE FROM RO_RW_test WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER true TABLE true +--Testcase 256: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 257: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); +--Testcase 258: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK +--Testcase 258: +UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK +--Testcase 260: +DELETE FROM RO_RW_test WHERE i=8; -- OK +--Testcase 261: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK +-- SERVER false TABLE true +--Testcase 262: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 263: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK +--Testcase 264: +UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK +--Testcase 265: +DELETE FROM RO_RW_test WHERE i=9; -- OK +-- SERVER false TABLE false +--Testcase 266: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 267: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 268: +UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 269: +DELETE FROM RO_RW_test WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER true TABLE false +--Testcase 270: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); +--Testcase 271: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 272: +UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 273: +DELETE FROM RO_RW_test WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +--Testcase 274: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 275: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); +--Testcase 276: +SELECT * FROM RO_RW_test ORDER BY i; + i | a | b | c +----+---+-------+--- + 1 | A | 1.001 | 0 + 4 | F | 0.005 | 5 + 10 | P | 4.15 | 1 +(3 rows) + +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +ERROR: cannot convert constant value to Sqlite value +HINT: Constant value data type: "tsquery" in column "b" +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); +-- updatable option test (github pull 59) +DROP FOREIGN TABLE RO_RW_test; --Testcase 142: DROP FUNCTION test_param_WHERE(); --Testcase 143: diff --git a/expected/13.11/type.out b/expected/13.12/type.out similarity index 65% rename from expected/13.11/type.out rename to expected/13.12/type.out index 3de91088..365437ae 100644 --- a/expected/13.11/type.out +++ b/expected/13.12/type.out @@ -499,6 +499,502 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE IF EXISTS "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(3 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) +(3 rows) + --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: @@ -1297,7 +1793,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 47 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1322,7 +1818,6 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" -drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1340,6 +1835,8 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" drop cascades to foreign table "type_BIT" drop cascades to foreign table "type_BIT+" drop cascades to foreign table "type_VARBIT" diff --git a/expected/14.8/aggregate.out b/expected/14.9/aggregate.out similarity index 100% rename from expected/14.8/aggregate.out rename to expected/14.9/aggregate.out diff --git a/expected/14.8/extra/aggregates.out b/expected/14.9/extra/aggregates.out similarity index 100% rename from expected/14.8/extra/aggregates.out rename to expected/14.9/extra/aggregates.out diff --git a/expected/13.11/extra/encodings.out b/expected/14.9/extra/encodings.out similarity index 99% rename from expected/13.11/extra/encodings.out rename to expected/14.9/extra/encodings.out index eea172c4..1e041e7d 100644 --- a/expected/13.11/extra/encodings.out +++ b/expected/14.9/extra/encodings.out @@ -34,6 +34,41 @@ -- WIN1256 -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; + i | t +-----+------------------------------------------------------------------------------------------------------------------------ + jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. + bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. + rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. + aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. + arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ + ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. + eus | Permin gox dabiltzu yoskiñ. + bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. + gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός + gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. + spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. + kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. + lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. + pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. + fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! + srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. + epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. + cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ + heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם +(20 rows) + +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/expected/14.8/extra/float4.out b/expected/14.9/extra/float4.out similarity index 100% rename from expected/14.8/extra/float4.out rename to expected/14.9/extra/float4.out diff --git a/expected/14.8/extra/float8.out b/expected/14.9/extra/float8.out similarity index 100% rename from expected/14.8/extra/float8.out rename to expected/14.9/extra/float8.out diff --git a/expected/14.8/extra/insert.out b/expected/14.9/extra/insert.out similarity index 100% rename from expected/14.8/extra/insert.out rename to expected/14.9/extra/insert.out diff --git a/expected/14.8/extra/int4.out b/expected/14.9/extra/int4.out similarity index 100% rename from expected/14.8/extra/int4.out rename to expected/14.9/extra/int4.out diff --git a/expected/14.8/extra/int8.out b/expected/14.9/extra/int8.out similarity index 100% rename from expected/14.8/extra/int8.out rename to expected/14.9/extra/int8.out diff --git a/expected/14.8/extra/join.out b/expected/14.9/extra/join.out similarity index 100% rename from expected/14.8/extra/join.out rename to expected/14.9/extra/join.out diff --git a/expected/14.8/extra/limit.out b/expected/14.9/extra/limit.out similarity index 100% rename from expected/14.8/extra/limit.out rename to expected/14.9/extra/limit.out diff --git a/expected/14.8/extra/numeric.out b/expected/14.9/extra/numeric.out similarity index 100% rename from expected/14.8/extra/numeric.out rename to expected/14.9/extra/numeric.out diff --git a/expected/14.8/extra/prepare.out b/expected/14.9/extra/prepare.out similarity index 100% rename from expected/14.8/extra/prepare.out rename to expected/14.9/extra/prepare.out diff --git a/expected/14.8/extra/select.out b/expected/14.9/extra/select.out similarity index 100% rename from expected/14.8/extra/select.out rename to expected/14.9/extra/select.out diff --git a/expected/14.8/extra/select_having.out b/expected/14.9/extra/select_having.out similarity index 100% rename from expected/14.8/extra/select_having.out rename to expected/14.9/extra/select_having.out diff --git a/expected/14.8/extra/sqlite_fdw_post.out b/expected/14.9/extra/sqlite_fdw_post.out similarity index 100% rename from expected/14.8/extra/sqlite_fdw_post.out rename to expected/14.9/extra/sqlite_fdw_post.out diff --git a/expected/14.8/extra/timestamp.out b/expected/14.9/extra/timestamp.out similarity index 100% rename from expected/14.8/extra/timestamp.out rename to expected/14.9/extra/timestamp.out diff --git a/expected/14.8/extra/update.out b/expected/14.9/extra/update.out similarity index 100% rename from expected/14.8/extra/update.out rename to expected/14.9/extra/update.out diff --git a/expected/14.8/selectfunc.out b/expected/14.9/selectfunc.out similarity index 100% rename from expected/14.8/selectfunc.out rename to expected/14.9/selectfunc.out diff --git a/expected/14.8/sqlite_fdw.out b/expected/14.9/sqlite_fdw.out similarity index 95% rename from expected/14.8/sqlite_fdw.out rename to expected/14.9/sqlite_fdw.out index 4457d647..51690c38 100644 --- a/expected/14.8/sqlite_fdw.out +++ b/expected/14.9/sqlite_fdw.out @@ -1815,33 +1815,6 @@ ERROR: cannot convert constant value to Sqlite value HINT: Constant value data type: "tsquery" in column "b" --Testcase 279: ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. - arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. - eus | Permin gox dabiltzu yoskiñ. - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός - gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. - epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(20 rows) - -- updatable option test (github pull 59) DROP FOREIGN TABLE RO_RW_test; --Testcase 142: @@ -1870,8 +1843,6 @@ DROP FOREIGN TABLE grem1_1; DROP FOREIGN TABLE grem1_2; --Testcase 235: DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; --Testcase 151: DROP SERVER sqlite_svr; --Testcase 152: diff --git a/expected/14.8/type.out b/expected/14.9/type.out similarity index 65% rename from expected/14.8/type.out rename to expected/14.9/type.out index 3de91088..aedd1ec1 100644 --- a/expected/14.8/type.out +++ b/expected/14.9/type.out @@ -499,6 +499,504 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE IF EXISTS "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) +(3 rows) + --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: @@ -1297,7 +1795,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 47 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1322,7 +1820,6 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" -drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1340,6 +1837,8 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" drop cascades to foreign table "type_BIT" drop cascades to foreign table "type_BIT+" drop cascades to foreign table "type_VARBIT" diff --git a/expected/15.3/sqlite_fdw.out b/expected/15.3/sqlite_fdw.out deleted file mode 100644 index a1a8708c..00000000 --- a/expected/15.3/sqlite_fdw.out +++ /dev/null @@ -1,12302 +0,0 @@ ---SET log_min_messages TO DEBUG1; ---SET client_min_messages TO DEBUG1; ---Testcase 129: -CREATE EXTENSION sqlite_fdw; ---Testcase 130: -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 131: -CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; ---Testcase 132: -CREATE FOREIGN TABLE employee(emp_id int OPTIONS (key 'true'), emp_name text, emp_dept_id int) SERVER sqlite_svr; ---Testcase 133: -CREATE FOREIGN TABLE empdata(emp_id int OPTIONS (key 'true'), emp_dat bytea) SERVER sqlite_svr; ---Testcase 134: -CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER sqlite_svr; ---Testcase 135: -CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; ---Testcase 136: -CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; --- updatable option test (github pull 59) -CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; ---Testcase 1: -SELECT * FROM department LIMIT 10; - department_id | department_name ----------------+----------------- -(0 rows) - ---Testcase 2: -SELECT * FROM employee LIMIT 10; - emp_id | emp_name | emp_dept_id ---------+----------+------------- -(0 rows) - ---Testcase 3: -SELECT * FROM empdata LIMIT 10; - emp_id | emp_dat ---------+--------- -(0 rows) - ---Testcase 4: -INSERT INTO department VALUES(generate_series(1,100), 'dept - ' || generate_series(1,100)); ---Testcase 5: -INSERT INTO employee VALUES(generate_series(1,100), 'emp - ' || generate_series(1,100), generate_series(1,100)); ---Testcase 6: -INSERT INTO empdata VALUES(1, decode ('01234567', 'hex')); ---Testcase 7: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 8: -INSERT INTO numbers VALUES(2, 'Two'); ---Testcase 9: -INSERT INTO numbers VALUES(3, 'Three'); ---Testcase 10: -INSERT INTO numbers VALUES(4, 'Four'); ---Testcase 11: -INSERT INTO numbers VALUES(5, 'Five'); ---Testcase 12: -INSERT INTO numbers VALUES(6, 'Six'); ---Testcase 13: -INSERT INTO numbers VALUES(7, 'Seven'); ---Testcase 14: -INSERT INTO numbers VALUES(8, 'Eight'); ---Testcase 15: -INSERT INTO numbers VALUES(9, 'Nine'); ---Testcase 16: -SELECT count(*) FROM department; - count -------- - 100 -(1 row) - ---Testcase 17: -SELECT count(*) FROM employee; - count -------- - 100 -(1 row) - ---Testcase 18: -SELECT count(*) FROM empdata; - count -------- - 1 -(1 row) - ---Testcase 19: -EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; - QUERY PLAN --------------- - Foreign Scan -(1 row) - ---Testcase 20: -EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) LIMIT 10; - QUERY PLAN -------------------------------------------------------------------------- - Limit - -> Nested Loop - -> Nested Loop Semi Join - Join Filter: (d.department_id = department.department_id) - -> Foreign Scan on department d - -> Materialize - -> Foreign Scan on department - -> Materialize - -> Foreign Scan on employee e -(9 rows) - ---Testcase 21: -SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; - department_id | department_name | emp_id | emp_name | emp_dept_id ----------------+-----------------+--------+----------+------------- - 1 | dept - 1 | 1 | emp - 1 | 1 - 2 | dept - 2 | 2 | emp - 2 | 2 - 3 | dept - 3 | 3 | emp - 3 | 3 - 4 | dept - 4 | 4 | emp - 4 | 4 - 5 | dept - 5 | 5 | emp - 5 | 5 - 6 | dept - 6 | 6 | emp - 6 | 6 - 7 | dept - 7 | 7 | emp - 7 | 7 - 8 | dept - 8 | 8 | emp - 8 | 8 - 9 | dept - 9 | 9 | emp - 9 | 9 - 10 | dept - 10 | 10 | emp - 10 | 10 -(10 rows) - ---Testcase 22: -SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) ORDER BY d.department_id LIMIT 10; - department_id | department_name | emp_id | emp_name | emp_dept_id ----------------+-----------------+--------+----------+------------- - 1 | dept - 1 | 1 | emp - 1 | 1 - 1 | dept - 1 | 2 | emp - 2 | 2 - 1 | dept - 1 | 3 | emp - 3 | 3 - 1 | dept - 1 | 4 | emp - 4 | 4 - 1 | dept - 1 | 5 | emp - 5 | 5 - 1 | dept - 1 | 6 | emp - 6 | 6 - 1 | dept - 1 | 7 | emp - 7 | 7 - 1 | dept - 1 | 8 | emp - 8 | 8 - 1 | dept - 1 | 9 | emp - 9 | 9 - 1 | dept - 1 | 10 | emp - 10 | 10 -(10 rows) - ---Testcase 23: -SELECT * FROM empdata; - emp_id | emp_dat ---------+------------ - 1 | \x01234567 -(1 row) - ---Testcase 24: -DELETE FROM employee WHERE emp_id = 10; ---Testcase 25: -SELECT COUNT(*) FROM department LIMIT 10; - count -------- - 100 -(1 row) - ---Testcase 26: -SELECT COUNT(*) FROM employee WHERE emp_id = 10; - count -------- - 0 -(1 row) - ---Testcase 27: -UPDATE employee SET emp_name = 'UPDATEd emp' WHERE emp_id = 20; ---Testcase 28: -SELECT emp_id, emp_name FROM employee WHERE emp_name like 'UPDATEd emp'; - emp_id | emp_name ---------+------------- - 20 | UPDATEd emp -(1 row) - ---Testcase 29: -UPDATE empdata SET emp_dat = decode ('0123', 'hex'); ---Testcase 30: -SELECT * FROM empdata; - emp_id | emp_dat ---------+--------- - 1 | \x0123 -(1 row) - ---Testcase 31: -SELECT * FROM employee LIMIT 10; - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 1 | emp - 1 | 1 - 2 | emp - 2 | 2 - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 - 6 | emp - 6 | 6 - 7 | emp - 7 | 7 - 8 | emp - 8 | 8 - 9 | emp - 9 | 9 - 11 | emp - 11 | 11 -(10 rows) - ---Testcase 32: -SELECT * FROM employee WHERE emp_id IN (1); - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 1 | emp - 1 | 1 -(1 row) - ---Testcase 33: -SELECT * FROM employee WHERE emp_id IN (1,3,4,5); - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 1 | emp - 1 | 1 - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 -(4 rows) - ---Testcase 34: -SELECT * FROM employee WHERE emp_id IN (10000,1000); - emp_id | emp_name | emp_dept_id ---------+----------+------------- -(0 rows) - ---Testcase 35: -SELECT * FROM employee WHERE emp_id NOT IN (1) LIMIT 5; - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 2 | emp - 2 | 2 - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 - 6 | emp - 6 | 6 -(5 rows) - ---Testcase 36: -SELECT * FROM employee WHERE emp_id NOT IN (1,3,4,5) LIMIT 5; - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 2 | emp - 2 | 2 - 6 | emp - 6 | 6 - 7 | emp - 7 | 7 - 8 | emp - 8 | 8 - 9 | emp - 9 | 9 -(5 rows) - ---Testcase 37: -SELECT * FROM employee WHERE emp_id NOT IN (10000,1000) LIMIT 5; - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 1 | emp - 1 | 1 - 2 | emp - 2 | 2 - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 -(5 rows) - ---Testcase 38: -SELECT * FROM employee WHERE emp_id NOT IN (SELECT emp_id FROM employee WHERE emp_id IN (1,10)); - emp_id | emp_name | emp_dept_id ---------+-------------+------------- - 2 | emp - 2 | 2 - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 - 6 | emp - 6 | 6 - 7 | emp - 7 | 7 - 8 | emp - 8 | 8 - 9 | emp - 9 | 9 - 11 | emp - 11 | 11 - 12 | emp - 12 | 12 - 13 | emp - 13 | 13 - 14 | emp - 14 | 14 - 15 | emp - 15 | 15 - 16 | emp - 16 | 16 - 17 | emp - 17 | 17 - 18 | emp - 18 | 18 - 19 | emp - 19 | 19 - 20 | UPDATEd emp | 20 - 21 | emp - 21 | 21 - 22 | emp - 22 | 22 - 23 | emp - 23 | 23 - 24 | emp - 24 | 24 - 25 | emp - 25 | 25 - 26 | emp - 26 | 26 - 27 | emp - 27 | 27 - 28 | emp - 28 | 28 - 29 | emp - 29 | 29 - 30 | emp - 30 | 30 - 31 | emp - 31 | 31 - 32 | emp - 32 | 32 - 33 | emp - 33 | 33 - 34 | emp - 34 | 34 - 35 | emp - 35 | 35 - 36 | emp - 36 | 36 - 37 | emp - 37 | 37 - 38 | emp - 38 | 38 - 39 | emp - 39 | 39 - 40 | emp - 40 | 40 - 41 | emp - 41 | 41 - 42 | emp - 42 | 42 - 43 | emp - 43 | 43 - 44 | emp - 44 | 44 - 45 | emp - 45 | 45 - 46 | emp - 46 | 46 - 47 | emp - 47 | 47 - 48 | emp - 48 | 48 - 49 | emp - 49 | 49 - 50 | emp - 50 | 50 - 51 | emp - 51 | 51 - 52 | emp - 52 | 52 - 53 | emp - 53 | 53 - 54 | emp - 54 | 54 - 55 | emp - 55 | 55 - 56 | emp - 56 | 56 - 57 | emp - 57 | 57 - 58 | emp - 58 | 58 - 59 | emp - 59 | 59 - 60 | emp - 60 | 60 - 61 | emp - 61 | 61 - 62 | emp - 62 | 62 - 63 | emp - 63 | 63 - 64 | emp - 64 | 64 - 65 | emp - 65 | 65 - 66 | emp - 66 | 66 - 67 | emp - 67 | 67 - 68 | emp - 68 | 68 - 69 | emp - 69 | 69 - 70 | emp - 70 | 70 - 71 | emp - 71 | 71 - 72 | emp - 72 | 72 - 73 | emp - 73 | 73 - 74 | emp - 74 | 74 - 75 | emp - 75 | 75 - 76 | emp - 76 | 76 - 77 | emp - 77 | 77 - 78 | emp - 78 | 78 - 79 | emp - 79 | 79 - 80 | emp - 80 | 80 - 81 | emp - 81 | 81 - 82 | emp - 82 | 82 - 83 | emp - 83 | 83 - 84 | emp - 84 | 84 - 85 | emp - 85 | 85 - 86 | emp - 86 | 86 - 87 | emp - 87 | 87 - 88 | emp - 88 | 88 - 89 | emp - 89 | 89 - 90 | emp - 90 | 90 - 91 | emp - 91 | 91 - 92 | emp - 92 | 92 - 93 | emp - 93 | 93 - 94 | emp - 94 | 94 - 95 | emp - 95 | 95 - 96 | emp - 96 | 96 - 97 | emp - 97 | 97 - 98 | emp - 98 | 98 - 99 | emp - 99 | 99 - 100 | emp - 100 | 100 -(98 rows) - ---Testcase 39: -SELECT * FROM employee WHERE emp_name NOT IN ('emp - 1', 'emp - 2') LIMIT 5; - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 - 6 | emp - 6 | 6 - 7 | emp - 7 | 7 -(5 rows) - ---Testcase 40: -SELECT * FROM employee WHERE emp_name NOT IN ('emp - 10') LIMIT 5; - emp_id | emp_name | emp_dept_id ---------+----------+------------- - 1 | emp - 1 | 1 - 2 | emp - 2 | 2 - 3 | emp - 3 | 3 - 4 | emp - 4 | 4 - 5 | emp - 5 | 5 -(5 rows) - ---Testcase 41: -SELECT * FROM numbers WHERE (CASE WHEN a % 2 = 0 THEN 1 WHEN a % 5 = 0 THEN 1 ELSE 0 END) = 1; - a | b ----+------- - 2 | Two - 4 | Four - 5 | Five - 6 | Six - 8 | Eight -(5 rows) - ---Testcase 42: -SELECT * FROM numbers WHERE (CASE b WHEN 'Two' THEN 1 WHEN 'Six' THEN 1 ELSE 0 END) = 1; - a | b ----+----- - 2 | Two - 6 | Six -(2 rows) - ---Testcase 152: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE (round(abs(a)) = 1); - QUERY PLAN ------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..1.00 rows=1 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((round(abs(`a`)) = 1)) -(3 rows) - ---Testcase 153: -SELECT * FROM numbers WHERE (round(abs(a)) = 1); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 137: -create or replace function test_param_WHERE() returns void as $$ -DECLARE - n varchar; -BEGIN - FOR x IN 1..9 LOOP ---Testcase 138: - SELECT b INTO n from numbers WHERE a=x; - raise notice 'Found number %', n; - end loop; - return; -END -$$ LANGUAGE plpgsql; ---Testcase 43: -SELECT test_param_WHERE(); -NOTICE: Found number One -NOTICE: Found number Two -NOTICE: Found number Three -NOTICE: Found number Four -NOTICE: Found number Five -NOTICE: Found number Six -NOTICE: Found number Seven -NOTICE: Found number Eight -NOTICE: Found number Nine - test_param_where ------------------- - -(1 row) - ---Testcase 44: -SELECT b from numbers WHERE a=1; - b ------ - One -(1 row) - ---Testcase 45: -EXPLAIN(COSTS OFF) SELECT b from numbers WHERE a=1; - QUERY PLAN -------------------------- - Foreign Scan on numbers -(1 row) - ---Testcase 46: -SELECT a FROM numbers WHERE b = (SELECT NULL::text); - a ---- -(0 rows) - ---Testcase 47: -PREPARE stmt1 (int, int) AS - SELECT * FROM numbers WHERE a=$1 or a=$2; ---Testcase 48: -EXECUTE stmt1(1,2); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 49: -EXECUTE stmt1(2,2); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 50: -EXECUTE stmt1(3,2); - a | b ----+------- - 2 | Two - 3 | Three -(2 rows) - ---Testcase 51: -EXECUTE stmt1(4,2); - a | b ----+------ - 2 | Two - 4 | Four -(2 rows) - --- generic plan ---Testcase 52: -EXECUTE stmt1(5,2); - a | b ----+------ - 2 | Two - 5 | Five -(2 rows) - ---Testcase 53: -EXECUTE stmt1(6,2); - a | b ----+----- - 2 | Two - 6 | Six -(2 rows) - ---Testcase 54: -EXECUTE stmt1(7,2); - a | b ----+------- - 2 | Two - 7 | Seven -(2 rows) - ---Testcase 55: -DELETE FROM employee; ---Testcase 56: -DELETE FROM department; ---Testcase 57: -DELETE FROM empdata; ---Testcase 58: -DELETE FROM numbers; -BEGIN; ---Testcase 59: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 60: -INSERT INTO numbers VALUES(2, 'Two'); -COMMIT; ---Testcase 61: -SELECT * from numbers; - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - -BEGIN; ---Testcase 62: -INSERT INTO numbers VALUES(3, 'Three'); -ROLLBACK; ---Testcase 63: -SELECT * from numbers; - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - -BEGIN; ---Testcase 64: -INSERT INTO numbers VALUES(4, 'Four'); -SAVEPOINT my_savepoint; ---Testcase 65: -INSERT INTO numbers VALUES(5, 'Five'); -ROLLBACK TO SAVEPOINT my_savepoint; ---Testcase 66: -INSERT INTO numbers VALUES(6, 'Six'); -COMMIT; ---Testcase 67: -SELECT * from numbers; - a | b ----+------ - 1 | One - 2 | Two - 4 | Four - 6 | Six -(4 rows) - --- duplicate key ---Testcase 68: -INSERT INTO numbers VALUES(1, 'One'); -ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: numbers.b - sql=INSERT INTO main."numbers"(`a`, `b`) VALUES (?, ?) ---Testcase 69: -DELETE from numbers; -BEGIN; ---Testcase 70: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 71: -INSERT INTO numbers VALUES(2, 'Two'); -COMMIT; --- violate unique constraint ---Testcase 72: -UPDATE numbers SET b='Two' WHERE a = 1; -ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: numbers.b - sql=UPDATE main."numbers" SET `b` = 'Two' WHERE ((`a` = 1)) ---Testcase 73: -SELECT * from numbers; - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - --- push down ---Testcase 74: -explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); - QUERY PLAN ---------------------------------------------------------------------------------- - Foreign Scan on public.numbers - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (2, 3, 4, 5)) -(3 rows) - --- (1,2,3) is pushed down ---Testcase 75: -explain (verbose, costs off) SELECT * from numbers WHERE a in (1,2,3) AND (1,2) < (a,5); - QUERY PLAN ------------------------------------------------------------------------------- - Foreign Scan on public.numbers - Output: a, b - Filter: (ROW(1, 2) < ROW(numbers.a, 5)) - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2, 3)) -(4 rows) - ---Testcase 76: -explain (verbose, costs off) SELECT * from numbers WHERE a in (a+2*a,5); - QUERY PLAN ------------------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (((`a` = (`a` + (2 * `a`))) OR (`a` = 5))) -(3 rows) - ---Testcase 77: -explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public.numbers - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2, `a`)) -(3 rows) - ---Testcase 78: -SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 79: -SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - --- ANY with ARRAY expression ---Testcase 154: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); - QUERY PLAN ------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..2.00 rows=2 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, (`a` + 1))) -(3 rows) - ---Testcase 155: -SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 156: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); - QUERY PLAN ----------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..150.00 rows=150 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` <> 1) OR (`a` <> (`a` + 1))) -(3 rows) - ---Testcase 157: -SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 158: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); - QUERY PLAN ----------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` >= 1) OR (`a` >= (`a` + 1))) -(3 rows) - ---Testcase 159: -SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 160: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); - QUERY PLAN ----------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` <= 1) OR (`a` <= (`a` + 1))) -(3 rows) - ---Testcase 161: -SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 162: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); - QUERY PLAN --------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` > 1) OR (`a` > (`a` + 1))) -(3 rows) - ---Testcase 163: -SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 164: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); - QUERY PLAN --------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` < 1) OR (`a` < (`a` + 1))) -(3 rows) - ---Testcase 165: -SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - --- ANY with ARRAY const ---Testcase 166: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); - QUERY PLAN ---------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..2.00 rows=2 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2)) -(3 rows) - ---Testcase 167: -SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 168: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); - QUERY PLAN ----------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..150.00 rows=150 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <> 1 OR `a` <> 2) -(3 rows) - ---Testcase 169: -SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 170: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); - QUERY PLAN ----------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` >= 1 OR `a` >= 2) -(3 rows) - ---Testcase 171: -SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 172: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); - QUERY PLAN ----------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <= 1 OR `a` <= 2) -(3 rows) - ---Testcase 173: -SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 174: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` > 1 OR `a` > 2) -(3 rows) - ---Testcase 175: -SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 176: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` < 1 OR `a` < 2) -(3 rows) - ---Testcase 177: -SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 210: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); - QUERY PLAN ------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..3.00 rows=3 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2, 3)) -(3 rows) - ---Testcase 211: -SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 212: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); - QUERY PLAN ----------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..150.00 rows=150 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <> 1 OR `a` <> 2 OR `a` <> 3) -(3 rows) - ---Testcase 213: -SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - --- ALL with ARRAY expression ---Testcase 178: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); - QUERY PLAN ---------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..1.00 rows=1 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` = 1) AND (`a` = (`a` * 1))) -(3 rows) - ---Testcase 179: -SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 180: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..148.00 rows=148 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` NOT IN (1, (`a` + 1))) -(3 rows) - ---Testcase 181: -SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 182: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); - QUERY PLAN ------------------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` >= 1) AND (`a` >= (`a` / 1))) -(3 rows) - ---Testcase 183: -SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 184: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); - QUERY PLAN ------------------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` <= 1) AND (`a` <= (`a` + 1))) -(3 rows) - ---Testcase 185: -SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 186: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); - QUERY PLAN ---------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` > 1) AND (`a` > (`a` - 1))) -(3 rows) - ---Testcase 187: -SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 188: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); - QUERY PLAN ---------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` < 2) AND (`a` < (`a` + 1))) -(3 rows) - ---Testcase 189: -SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); - a | b ----+----- - 1 | One -(1 row) - --- ALL with ARRAY const ---Testcase 190: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); - QUERY PLAN ---------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..1.00 rows=1 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` = 1 AND `a` = 1) -(3 rows) - ---Testcase 191: -SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 192: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); - QUERY PLAN -------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..148.00 rows=148 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` NOT IN (1, 3)) -(3 rows) - ---Testcase 193: -SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 194: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); - QUERY PLAN ------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` >= 1 AND `a` >= 2) -(3 rows) - ---Testcase 195: -SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 196: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); - QUERY PLAN ------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <= 1 AND `a` <= 2) -(3 rows) - ---Testcase 197: -SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); - a | b ----+----- - 1 | One -(1 row) - ---Testcase 198: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); - QUERY PLAN ---------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` > 0 AND `a` > 1) -(3 rows) - ---Testcase 199: -SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 200: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); - QUERY PLAN ---------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` < 2 AND `a` < 3) -(3 rows) - ---Testcase 201: -SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); - a | b ----+----- - 1 | One -(1 row) - --- ANY/ALL with TEXT ARRAY const ---Testcase 202: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); - QUERY PLAN ------------------------------------------------------------------------------------ - Foreign Scan on public.numbers (cost=10.00..2.00 rows=2 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` IN ('One', 'Two')) -(3 rows) - ---Testcase 203: -SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 204: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); - QUERY PLAN ----------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..148.00 rows=148 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` NOT IN ('One', 'Four')) -(3 rows) - ---Testcase 205: -SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 206: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); - QUERY PLAN ----------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` > 'One' OR `b` > 'Two') -(3 rows) - ---Testcase 207: -SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); - a | b ----+----- - 2 | Two -(1 row) - ---Testcase 208: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); - QUERY PLAN -------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` > 'Four' AND `b` > 'Five') -(3 rows) - ---Testcase 209: -SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); - a | b ----+----- - 1 | One - 2 | Two -(2 rows) - ---Testcase 80: -INSERT INTO multiprimary VALUES(1,2,3); ---Testcase 81: -INSERT INTO multiprimary VALUES(1,2,4); ---Testcase 82: -UPDATE multiprimary SET b = 10 WHERE c = 3; ---Testcase 83: -SELECT * from multiprimary; - a | b | c ----+----+--- - 1 | 10 | 3 - 1 | 2 | 4 -(2 rows) - ---Testcase 84: -UPDATE multiprimary SET a = 10 WHERE a = 1; ---Testcase 85: -SELECT * from multiprimary; - a | b | c -----+----+--- - 10 | 10 | 3 - 10 | 2 | 4 -(2 rows) - ---Testcase 86: -UPDATE multiprimary SET a = 100, b=200, c=300 WHERE a=10 AND b=10; ---Testcase 87: -SELECT * from multiprimary; - a | b | c ------+-----+----- - 100 | 200 | 300 - 10 | 2 | 4 -(2 rows) - ---Testcase 88: -UPDATE multiprimary SET a = 1234; ---Testcase 89: -SELECT * from multiprimary; - a | b | c -------+-----+----- - 1234 | 200 | 300 - 1234 | 2 | 4 -(2 rows) - ---Testcase 90: -UPDATE multiprimary SET a = a+1, b=b+1 WHERE b=200 AND c=300; ---Testcase 91: -SELECT * from multiprimary; - a | b | c -------+-----+----- - 1235 | 201 | 300 - 1234 | 2 | 4 -(2 rows) - ---Testcase 92: -DELETE from multiprimary WHERE a = 1235; ---Testcase 93: -SELECT * from multiprimary; - a | b | c -------+---+--- - 1234 | 2 | 4 -(1 row) - ---Testcase 94: -DELETE from multiprimary WHERE b = 2; ---Testcase 95: -SELECT * from multiprimary; - a | b | c ----+---+--- -(0 rows) - ---Testcase 96: -INSERT INTO multiprimary VALUES(1,2,3); ---Testcase 97: -INSERT INTO multiprimary VALUES(1,2,4); ---Testcase 98: -INSERT INTO multiprimary VALUES(1,10,20); ---Testcase 99: -INSERT INTO multiprimary VALUES(2,20,40); ---Testcase 100: -SELECT count(distinct a) from multiprimary; - count -------- - 2 -(1 row) - ---Testcase 101: -SELECT sum(b),max(b), min(b) from multiprimary; - sum | max | min ------+-----+----- - 34 | 20 | 2 -(1 row) - ---Testcase 102: -SELECT sum(b+5)+2 from multiprimary group by b/2 order by b/2; - ?column? ----------- - 16 - 17 - 27 -(3 rows) - ---Testcase 103: -SELECT sum(a) from multiprimary group by b having sum(a) > 0 order by sum(a); - sum ------ - 1 - 2 - 2 -(3 rows) - ---Testcase 104: -SELECT sum(a) A from multiprimary group by b having avg(abs(a)) > 0 AND sum(a) > 0 order by A; - a ---- - 1 - 2 - 2 -(3 rows) - ---Testcase 105: -SELECT count(nullif(a, 1)) FROM multiprimary; - count -------- - 1 -(1 row) - ---Testcase 106: -SELECT a,a FROM multiprimary group by 1,2; - a | a ----+--- - 1 | 1 - 2 | 2 -(2 rows) - ---Testcase 107: -SELECT * from multiprimary, numbers WHERE multiprimary.a=numbers.a; - a | b | c | a | b ----+----+----+---+----- - 1 | 2 | 3 | 1 | One - 1 | 2 | 4 | 1 | One - 1 | 10 | 20 | 1 | One - 2 | 20 | 40 | 2 | Two -(4 rows) - ---Testcase 108: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; - QUERY PLAN ------------------------------------------------------------ - Aggregate - Output: sum(a) - Filter: (sum(multiprimary.a) > 0) - -> Foreign Scan on public.multiprimary - Output: a, b, c - SQLite query: SELECT `a` FROM main."multiprimary" -(6 rows) - ---Testcase 109: -SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; - sum ------ - 5 -(1 row) - ---Testcase 110: -INSERT INTO numbers VALUES(4, 'Four'); --- All where clauses are pushed down ---Testcase 111: -SELECT * FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; - a | b ----+------ - 4 | Four -(1 row) - ---Testcase 112: -EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; - QUERY PLAN ------------------------------------------------------------------------------------------------------ - Foreign Scan on public.numbers - Output: b, length((b)::text) - Filter: ((upper((numbers.b)::text) = 'FOUR'::text) AND (lower((numbers.b)::text) = 'four'::text)) - SQLite query: SELECT `b` FROM main."numbers" WHERE ((abs(`a`) = 4)) -(4 rows) - --- Only "length(b) = 4" are pushed down ---Testcase 113: -SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; - b | length -------+-------- - Four | 4 -(1 row) - ---Testcase 114: -EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public.numbers - Output: b, length((b)::text) - Filter: ((power('1'::double precision, (numbers.a)::double precision) <> '0'::double precision) AND (length(reverse((numbers.b)::text)) = 4)) - SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((length(`b`) = 4)) -(4 rows) - ---Testcase 115: -INSERT INTO multiprimary (b,c) VALUES (99, 100); ---Testcase 116: -SELECT c FROM multiprimary WHERE COALESCE(a,b,c) = 99; - c ------ - 100 -(1 row) - ---Testcase 139: -CREATE FOREIGN TABLE multiprimary2(a int, b int, c int OPTIONS(column_name 'b')) SERVER sqlite_svr OPTIONS (table 'multiprimary'); ---Testcase 117: -SELECT * FROM multiprimary2; - a | b | c ----+----+---- - 1 | 2 | 2 - 1 | 2 | 2 - 1 | 10 | 10 - 2 | 20 | 20 - | 99 | 99 -(5 rows) - ---Testcase 214: -ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN a OPTIONS(ADD column_name 'b'); ---Testcase 118: -SELECT * FROM multiprimary2; - a | b | c -----+----+---- - 2 | 2 | 2 - 2 | 2 | 2 - 10 | 10 | 10 - 20 | 20 | 20 - 99 | 99 | 99 -(5 rows) - ---Testcase 215: -ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN b OPTIONS (column_name 'nosuch column'); ---Testcase 119: -SELECT * FROM multiprimary2; -ERROR: SQL error during prepare: no such column: nosuch column SELECT `b`, `nosuch column`, `b` FROM main."multiprimary" ---Testcase 140: -EXPLAIN (VERBOSE) SELECT * FROM multiprimary2; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public.multiprimary2 (cost=10.00..2275.00 rows=2275 width=12) - Output: a, b, c - SQLite query: SELECT `b`, `nosuch column`, `b` FROM main."multiprimary" -(3 rows) - ---Testcase 120: -SELECT a FROM multiprimary2 WHERE b = 1; -ERROR: SQL error during prepare: no such column: nosuch column SELECT `b` FROM main."multiprimary" WHERE ((`nosuch column` = 1)) ---Testcase 141: -CREATE FOREIGN TABLE columntest(a int OPTIONS(column_name 'a a', key 'true'), "b b" int OPTIONS(key 'true'), c int OPTIONS(column_name 'c c')) SERVER sqlite_svr; ---Testcase 121: -INSERT INTO columntest VALUES(1,2,3); ---Testcase 122: -UPDATE columntest SET c=10 WHERE a = 1; ---Testcase 123: -SELECT * FROM columntest; - a | b b | c ----+-----+---- - 1 | 2 | 10 -(1 row) - ---Testcase 124: -UPDATE columntest SET a=100 WHERE c = 10; ---Testcase 125: -SELECT * FROM columntest; - a | b b | c ------+-----+---- - 100 | 2 | 10 -(1 row) - ---Testcase 126: -INSERT INTO noprimary VALUES(1,'2'); ---Testcase 127: -INSERT INTO noprimary SELECT * FROM noprimary; ---Testcase 128: -SELECT * FROM noprimary; - a | b ----+--- - 1 | 2 - 1 | 2 -(2 rows) - ---get version ---Testcase 153: -\df sqlite* - List of functions - Schema | Name | Result data type | Argument data types | Type ---------+----------------------------+------------------+-----------------------------------------+------ - public | sqlite_fdw_disconnect | boolean | text | func - public | sqlite_fdw_disconnect_all | boolean | | func - public | sqlite_fdw_get_connections | SETOF record | OUT server_name text, OUT valid boolean | func - public | sqlite_fdw_handler | fdw_handler | | func - public | sqlite_fdw_validator | void | text[], oid | func - public | sqlite_fdw_version | integer | | func -(6 rows) - ---Testcase 154: -SELECT * FROM public.sqlite_fdw_version(); - sqlite_fdw_version --------------------- - 20400 -(1 row) - ---Testcase 155: -SELECT sqlite_fdw_version(); - sqlite_fdw_version --------------------- - 20400 -(1 row) - --- issue #44 github ---Testcase 156: -CREATE FOREIGN TABLE fts_table (name text, description text) SERVER sqlite_svr; ---Testcase 157: -INSERT INTO fts_table VALUES ('this is name', 'this is description'); ---Testcase 158: -SELECT * FROM fts_table; -- should work - name | description ---------------+--------------------- - this is name | this is description -(1 row) - ---Testcase 159: -ALTER TABLE fts_table ALTER COLUMN name TYPE int; ---Testcase 160: -SELECT * FROM fts_table; -- should fail -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' --- issue #62 github ---Testcase 236: -INSERT INTO noprimary VALUES (4, 'Test''s'); ---Testcase 237: -INSERT INTO noprimary VALUES (5, 'Test'); ---Testcase 238: -SELECT * FROM noprimary; - a | b ----+-------- - 1 | 2 - 1 | 2 - 4 | Test's - 5 | Test -(4 rows) - ---Testcase 239: -EXPLAIN VERBOSE -SELECT * FROM noprimary where b = 'Test''s'; - QUERY PLAN ---------------------------------------------------------------------------------- - Foreign Scan on public.noprimary (cost=10.00..7.00 rows=7 width=36) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."noprimary" WHERE ((`b` = 'Test''s')) -(3 rows) - ---Testcase 240: -SELECT * FROM noprimary where b = 'Test''s'; - a | b ----+-------- - 4 | Test's -(1 row) - ---Testcase 241: -EXPLAIN VERBOSE -SELECT * FROM noprimary where b in ('Test''s', 'Test'); - QUERY PLAN ------------------------------------------------------------------------------------------- - Foreign Scan on public.noprimary (cost=10.00..14.00 rows=14 width=36) - Output: a, b - SQLite query: SELECT `a`, `b` FROM main."noprimary" WHERE (`b` IN ('Test''s', 'Test')) -(3 rows) - ---Testcase 242: -SELECT * FROM noprimary where b in ('Test''s', 'Test'); - a | b ----+-------- - 4 | Test's - 5 | Test -(2 rows) - --- INSERT/UPDATE whole row with generated column ---Testcase 216: -CREATE FOREIGN TABLE grem1_1 ( - a int generated always as (0) stored) - SERVER sqlite_svr OPTIONS(table 'grem1_1'); ---Testcase 217: -INSERT INTO grem1_1 DEFAULT VALUES; ---Testcase 218: -SELECT * FROM grem1_1; - a ---- - -(1 row) - ---Testcase 219: -CREATE FOREIGN TABLE grem1_2 ( - a int generated always as (0) stored, - b int generated always as (1) stored, - c int generated always as (2) stored, - d int generated always as (3) stored) - SERVER sqlite_svr OPTIONS(table 'grem1_2'); ---Testcase 220: -INSERT INTO grem1_2 DEFAULT VALUES; ---Testcase 221: -SELECT * FROM grem1_2; - a | b | c | d ----+---+---+--- - | | | -(1 row) - --- Executable test case for pushdown CASE expressions (results) ---Testcase 224: -CREATE FOREIGN TABLE case_exp(c1 int OPTIONS (key 'true'), c3 text, c6 varchar(10)) SERVER sqlite_svr; ---Testcase 225: -INSERT INTO case_exp - SELECT id, - to_char(id, 'FM00000'), - id % 10 - FROM generate_series(1, 10) id; ---Testcase 226: -SELECT * FROM case_exp; - c1 | c3 | c6 -----+-------+---- - 1 | 00001 | 1 - 2 | 00002 | 2 - 3 | 00003 | 3 - 4 | 00004 | 4 - 5 | 00005 | 5 - 6 | 00006 | 6 - 7 | 00007 | 7 - 8 | 00008 | 8 - 9 | 00009 | 9 - 10 | 00010 | 0 -(10 rows) - --- CASE arg WHEN ---Testcase 227: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public.case_exp - Output: c1, c3, c6 - SQLite query: SELECT `c1`, `c3`, `c6` FROM main."case_exp" WHERE ((`c1` > CASE mod(`c1`, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END)) -(3 rows) - ---Testcase 228: -SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); - c1 | c3 | c6 -----+-------+---- - 4 | 00004 | 4 - 8 | 00008 | 8 -(2 rows) - --- these are shippable ---Testcase 229: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; - QUERY PLAN --------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public.case_exp - Output: c1, c3, c6 - SQLite query: SELECT `c1`, `c3`, `c6` FROM main."case_exp" WHERE (CASE `c6` WHEN 'foo' THEN 1 ELSE (`c3` < 'bar') END) -(3 rows) - ---Testcase 230: -SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; - c1 | c3 | c6 -----+-------+---- - 1 | 00001 | 1 - 2 | 00002 | 2 - 3 | 00003 | 3 - 4 | 00004 | 4 - 5 | 00005 | 5 - 6 | 00006 | 6 - 7 | 00007 | 7 - 8 | 00008 | 8 - 9 | 00009 | 9 - 10 | 00010 | 0 -(10 rows) - ---Testcase 231: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; - QUERY PLAN -------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public.case_exp - Output: c1, c3, c6 - SQLite query: SELECT `c1`, `c3`, `c6` FROM main."case_exp" WHERE (CASE `c3` WHEN `c6` THEN 1 ELSE (`c3` < 'bar') END) -(3 rows) - ---Testcase 232: -SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; - c1 | c3 | c6 -----+-------+---- - 1 | 00001 | 1 - 2 | 00002 | 2 - 3 | 00003 | 3 - 4 | 00004 | 4 - 5 | 00005 | 5 - 6 | 00006 | 6 - 7 | 00007 | 7 - 8 | 00008 | 8 - 9 | 00009 | 9 - 10 | 00010 | 0 -(10 rows) - --- but this is not because of collation ---Testcase 233: -SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'bar' END; - c1 | c3 | c6 -----+-------+---- - 1 | 00001 | 1 - 2 | 00002 | 2 - 3 | 00003 | 3 - 4 | 00004 | 4 - 5 | 00005 | 5 - 6 | 00006 | 6 - 7 | 00007 | 7 - 8 | 00008 | 8 - 9 | 00009 | 9 - 10 | 00010 | 0 -(10 rows) - ---Testcase 234: -DELETE FROM case_exp; --- updatable option test (github pull 59) --- Full combinations --- D-default, T-true, F-false --- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF --- SERVER default TABLE default --- SERVER true TABLE default --- SERVER false TABLE default --- SERVER default TABLE true --- SERVER default TABLE false --- SERVER true TABLE true --- SERVER false TABLE true --- SERVER false TABLE false --- SERVER true TABLE false --- SERVER default TABLE default ---Testcase 235: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK ---Testcase 236: -UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK ---Testcase 237: -DELETE FROM RO_RW_test WHERE i=2; -- OK --- SERVER true TABLE default ---Testcase 238: -ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); ---Testcase 239: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK ---Testcase 240: -UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK ---Testcase 241: -DELETE FROM RO_RW_test WHERE i=3; -- OK ---Testcase 242: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK --- SERVER false TABLE default ---Testcase 243: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); ---Testcase 244: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR -ERROR: foreign table "ro_rw_test" does not allow inserts ---Testcase 245: -UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR -ERROR: foreign table "ro_rw_test" does not allow updates ---Testcase 246: -DELETE FROM RO_RW_test WHERE i=4; -- ERR -ERROR: foreign table "ro_rw_test" does not allow deletes --- SERVER default TABLE true ---Testcase 247: -ALTER SERVER sqlite_svr OPTIONS (DROP updatable); ---Testcase 248: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); ---Testcase 249: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK ---Testcase 250: -UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK ---Testcase 251: -DELETE FROM RO_RW_test WHERE i=6; -- OK --- SERVER default TABLE false ---Testcase 252: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); ---Testcase 253: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR -ERROR: foreign table "ro_rw_test" does not allow inserts ---Testcase 254: -UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR -ERROR: foreign table "ro_rw_test" does not allow updates ---Testcase 255: -DELETE FROM RO_RW_test WHERE i=4; -- ERR -ERROR: foreign table "ro_rw_test" does not allow deletes --- SERVER true TABLE true ---Testcase 256: -ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); ---Testcase 257: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); ---Testcase 258: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK ---Testcase 258: -UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK ---Testcase 260: -DELETE FROM RO_RW_test WHERE i=8; -- OK ---Testcase 261: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK --- SERVER false TABLE true ---Testcase 262: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); ---Testcase 263: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK ---Testcase 264: -UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK ---Testcase 265: -DELETE FROM RO_RW_test WHERE i=9; -- OK --- SERVER false TABLE false ---Testcase 266: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); ---Testcase 267: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR -ERROR: foreign table "ro_rw_test" does not allow inserts ---Testcase 268: -UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR -ERROR: foreign table "ro_rw_test" does not allow updates ---Testcase 269: -DELETE FROM RO_RW_test WHERE i=9; -- ERR -ERROR: foreign table "ro_rw_test" does not allow deletes --- SERVER true TABLE false ---Testcase 270: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); ---Testcase 271: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR -ERROR: foreign table "ro_rw_test" does not allow inserts ---Testcase 272: -UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR -ERROR: foreign table "ro_rw_test" does not allow updates ---Testcase 273: -DELETE FROM RO_RW_test WHERE i=9; -- ERR -ERROR: foreign table "ro_rw_test" does not allow deletes ---Testcase 274: -ALTER SERVER sqlite_svr OPTIONS (DROP updatable); ---Testcase 275: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); ---Testcase 276: -SELECT * FROM RO_RW_test ORDER BY i; - i | a | b | c -----+---+-------+--- - 1 | A | 1.001 | 0 - 4 | F | 0.005 | 5 - 10 | P | 4.15 | 1 -(3 rows) - --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. - arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. - eus | Permin gox dabiltzu yoskiñ. - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός - gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. - epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(20 rows) - --- updatable option test (github pull 59) -DROP FOREIGN TABLE RO_RW_test; ---Testcase 142: -DROP FUNCTION test_param_WHERE(); ---Testcase 143: -DROP FOREIGN TABLE numbers; ---Testcase 144: -DROP FOREIGN TABLE department; ---Testcase 145: -DROP FOREIGN TABLE employee; ---Testcase 146: -DROP FOREIGN TABLE empdata; ---Testcase 147: -DROP FOREIGN TABLE multiprimary; ---Testcase 148: -DROP FOREIGN TABLE multiprimary2; ---Testcase 149: -DROP FOREIGN TABLE columntest; ---Testcase 150: -DROP FOREIGN TABLE noprimary; ---Testcase 161: -DROP FOREIGN TABLE fts_table; ---Testcase 222: -DROP FOREIGN TABLE grem1_1; ---Testcase 223: -DROP FOREIGN TABLE grem1_2; ---Testcase 235: -DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; ---Testcase 151: -DROP SERVER sqlite_svr; ---Testcase 152: -DROP EXTENSION sqlite_fdw CASCADE; --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t -------+------------------------------------------------------------------------- - aze+ | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t -------+-------------------------------------------------------------------- - arm+ | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/expected/15.3/aggregate.out b/expected/15.4/aggregate.out similarity index 100% rename from expected/15.3/aggregate.out rename to expected/15.4/aggregate.out diff --git a/expected/15.3/extra/aggregates.out b/expected/15.4/extra/aggregates.out similarity index 100% rename from expected/15.3/extra/aggregates.out rename to expected/15.4/extra/aggregates.out diff --git a/expected/15.3/extra/encodings.out b/expected/15.4/extra/encodings.out similarity index 99% rename from expected/15.3/extra/encodings.out rename to expected/15.4/extra/encodings.out index eea172c4..1e041e7d 100644 --- a/expected/15.3/extra/encodings.out +++ b/expected/15.4/extra/encodings.out @@ -34,6 +34,41 @@ -- WIN1256 -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; + i | t +-----+------------------------------------------------------------------------------------------------------------------------ + jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. + bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. + rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. + aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. + arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ + ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. + eus | Permin gox dabiltzu yoskiñ. + bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. + gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός + gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. + spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. + kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. + lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. + pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. + fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! + srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. + epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. + cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ + heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם +(20 rows) + +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/expected/15.3/extra/float4.out b/expected/15.4/extra/float4.out similarity index 100% rename from expected/15.3/extra/float4.out rename to expected/15.4/extra/float4.out diff --git a/expected/15.3/extra/float8.out b/expected/15.4/extra/float8.out similarity index 100% rename from expected/15.3/extra/float8.out rename to expected/15.4/extra/float8.out diff --git a/expected/15.3/extra/insert.out b/expected/15.4/extra/insert.out similarity index 100% rename from expected/15.3/extra/insert.out rename to expected/15.4/extra/insert.out diff --git a/expected/15.3/extra/int4.out b/expected/15.4/extra/int4.out similarity index 100% rename from expected/15.3/extra/int4.out rename to expected/15.4/extra/int4.out diff --git a/expected/15.3/extra/int8.out b/expected/15.4/extra/int8.out similarity index 100% rename from expected/15.3/extra/int8.out rename to expected/15.4/extra/int8.out diff --git a/expected/15.3/extra/join.out b/expected/15.4/extra/join.out similarity index 100% rename from expected/15.3/extra/join.out rename to expected/15.4/extra/join.out diff --git a/expected/15.3/extra/limit.out b/expected/15.4/extra/limit.out similarity index 100% rename from expected/15.3/extra/limit.out rename to expected/15.4/extra/limit.out diff --git a/expected/15.3/extra/numeric.out b/expected/15.4/extra/numeric.out similarity index 100% rename from expected/15.3/extra/numeric.out rename to expected/15.4/extra/numeric.out diff --git a/expected/15.3/extra/prepare.out b/expected/15.4/extra/prepare.out similarity index 100% rename from expected/15.3/extra/prepare.out rename to expected/15.4/extra/prepare.out diff --git a/expected/15.3/extra/select.out b/expected/15.4/extra/select.out similarity index 100% rename from expected/15.3/extra/select.out rename to expected/15.4/extra/select.out diff --git a/expected/15.3/extra/select_having.out b/expected/15.4/extra/select_having.out similarity index 100% rename from expected/15.3/extra/select_having.out rename to expected/15.4/extra/select_having.out diff --git a/expected/15.3/extra/sqlite_fdw_post.out b/expected/15.4/extra/sqlite_fdw_post.out similarity index 100% rename from expected/15.3/extra/sqlite_fdw_post.out rename to expected/15.4/extra/sqlite_fdw_post.out diff --git a/expected/15.3/extra/timestamp.out b/expected/15.4/extra/timestamp.out similarity index 100% rename from expected/15.3/extra/timestamp.out rename to expected/15.4/extra/timestamp.out diff --git a/expected/15.3/extra/update.out b/expected/15.4/extra/update.out similarity index 100% rename from expected/15.3/extra/update.out rename to expected/15.4/extra/update.out diff --git a/expected/15.3/selectfunc.out b/expected/15.4/selectfunc.out similarity index 100% rename from expected/15.3/selectfunc.out rename to expected/15.4/selectfunc.out diff --git a/expected/15.4/sqlite_fdw.out b/expected/15.4/sqlite_fdw.out new file mode 100644 index 00000000..51690c38 --- /dev/null +++ b/expected/15.4/sqlite_fdw.out @@ -0,0 +1,1849 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 129: +CREATE EXTENSION sqlite_fdw; +--Testcase 130: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 131: +CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; +--Testcase 132: +CREATE FOREIGN TABLE employee(emp_id int OPTIONS (key 'true'), emp_name text, emp_dept_id int) SERVER sqlite_svr; +--Testcase 133: +CREATE FOREIGN TABLE empdata(emp_id int OPTIONS (key 'true'), emp_dat bytea) SERVER sqlite_svr; +--Testcase 134: +CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER sqlite_svr; +--Testcase 135: +CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; +--Testcase 136: +CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; +-- updatable option test (github pull 59) +CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; +--Testcase 1: +SELECT * FROM department LIMIT 10; + department_id | department_name +---------------+----------------- +(0 rows) + +--Testcase 2: +SELECT * FROM employee LIMIT 10; + emp_id | emp_name | emp_dept_id +--------+----------+------------- +(0 rows) + +--Testcase 3: +SELECT * FROM empdata LIMIT 10; + emp_id | emp_dat +--------+--------- +(0 rows) + +--Testcase 4: +INSERT INTO department VALUES(generate_series(1,100), 'dept - ' || generate_series(1,100)); +--Testcase 5: +INSERT INTO employee VALUES(generate_series(1,100), 'emp - ' || generate_series(1,100), generate_series(1,100)); +--Testcase 6: +INSERT INTO empdata VALUES(1, decode ('01234567', 'hex')); +--Testcase 7: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 8: +INSERT INTO numbers VALUES(2, 'Two'); +--Testcase 9: +INSERT INTO numbers VALUES(3, 'Three'); +--Testcase 10: +INSERT INTO numbers VALUES(4, 'Four'); +--Testcase 11: +INSERT INTO numbers VALUES(5, 'Five'); +--Testcase 12: +INSERT INTO numbers VALUES(6, 'Six'); +--Testcase 13: +INSERT INTO numbers VALUES(7, 'Seven'); +--Testcase 14: +INSERT INTO numbers VALUES(8, 'Eight'); +--Testcase 15: +INSERT INTO numbers VALUES(9, 'Nine'); +--Testcase 16: +SELECT count(*) FROM department; + count +------- + 100 +(1 row) + +--Testcase 17: +SELECT count(*) FROM employee; + count +------- + 100 +(1 row) + +--Testcase 18: +SELECT count(*) FROM empdata; + count +------- + 1 +(1 row) + +--Testcase 19: +EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; + QUERY PLAN +-------------- + Foreign Scan +(1 row) + +--Testcase 20: +EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) LIMIT 10; + QUERY PLAN +------------------------------------------------------------------------- + Limit + -> Nested Loop + -> Nested Loop Semi Join + Join Filter: (d.department_id = department.department_id) + -> Foreign Scan on department d + -> Materialize + -> Foreign Scan on department + -> Materialize + -> Foreign Scan on employee e +(9 rows) + +--Testcase 21: +SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; + department_id | department_name | emp_id | emp_name | emp_dept_id +---------------+-----------------+--------+----------+------------- + 1 | dept - 1 | 1 | emp - 1 | 1 + 2 | dept - 2 | 2 | emp - 2 | 2 + 3 | dept - 3 | 3 | emp - 3 | 3 + 4 | dept - 4 | 4 | emp - 4 | 4 + 5 | dept - 5 | 5 | emp - 5 | 5 + 6 | dept - 6 | 6 | emp - 6 | 6 + 7 | dept - 7 | 7 | emp - 7 | 7 + 8 | dept - 8 | 8 | emp - 8 | 8 + 9 | dept - 9 | 9 | emp - 9 | 9 + 10 | dept - 10 | 10 | emp - 10 | 10 +(10 rows) + +--Testcase 22: +SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) ORDER BY d.department_id LIMIT 10; + department_id | department_name | emp_id | emp_name | emp_dept_id +---------------+-----------------+--------+----------+------------- + 1 | dept - 1 | 1 | emp - 1 | 1 + 1 | dept - 1 | 2 | emp - 2 | 2 + 1 | dept - 1 | 3 | emp - 3 | 3 + 1 | dept - 1 | 4 | emp - 4 | 4 + 1 | dept - 1 | 5 | emp - 5 | 5 + 1 | dept - 1 | 6 | emp - 6 | 6 + 1 | dept - 1 | 7 | emp - 7 | 7 + 1 | dept - 1 | 8 | emp - 8 | 8 + 1 | dept - 1 | 9 | emp - 9 | 9 + 1 | dept - 1 | 10 | emp - 10 | 10 +(10 rows) + +--Testcase 23: +SELECT * FROM empdata; + emp_id | emp_dat +--------+------------ + 1 | \x01234567 +(1 row) + +--Testcase 24: +DELETE FROM employee WHERE emp_id = 10; +--Testcase 25: +SELECT COUNT(*) FROM department LIMIT 10; + count +------- + 100 +(1 row) + +--Testcase 26: +SELECT COUNT(*) FROM employee WHERE emp_id = 10; + count +------- + 0 +(1 row) + +--Testcase 27: +UPDATE employee SET emp_name = 'UPDATEd emp' WHERE emp_id = 20; +--Testcase 28: +SELECT emp_id, emp_name FROM employee WHERE emp_name like 'UPDATEd emp'; + emp_id | emp_name +--------+------------- + 20 | UPDATEd emp +(1 row) + +--Testcase 29: +UPDATE empdata SET emp_dat = decode ('0123', 'hex'); +--Testcase 30: +SELECT * FROM empdata; + emp_id | emp_dat +--------+--------- + 1 | \x0123 +(1 row) + +--Testcase 31: +SELECT * FROM employee LIMIT 10; + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 1 | emp - 1 | 1 + 2 | emp - 2 | 2 + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 + 6 | emp - 6 | 6 + 7 | emp - 7 | 7 + 8 | emp - 8 | 8 + 9 | emp - 9 | 9 + 11 | emp - 11 | 11 +(10 rows) + +--Testcase 32: +SELECT * FROM employee WHERE emp_id IN (1); + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 1 | emp - 1 | 1 +(1 row) + +--Testcase 33: +SELECT * FROM employee WHERE emp_id IN (1,3,4,5); + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 1 | emp - 1 | 1 + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 +(4 rows) + +--Testcase 34: +SELECT * FROM employee WHERE emp_id IN (10000,1000); + emp_id | emp_name | emp_dept_id +--------+----------+------------- +(0 rows) + +--Testcase 35: +SELECT * FROM employee WHERE emp_id NOT IN (1) LIMIT 5; + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 2 | emp - 2 | 2 + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 + 6 | emp - 6 | 6 +(5 rows) + +--Testcase 36: +SELECT * FROM employee WHERE emp_id NOT IN (1,3,4,5) LIMIT 5; + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 2 | emp - 2 | 2 + 6 | emp - 6 | 6 + 7 | emp - 7 | 7 + 8 | emp - 8 | 8 + 9 | emp - 9 | 9 +(5 rows) + +--Testcase 37: +SELECT * FROM employee WHERE emp_id NOT IN (10000,1000) LIMIT 5; + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 1 | emp - 1 | 1 + 2 | emp - 2 | 2 + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 +(5 rows) + +--Testcase 38: +SELECT * FROM employee WHERE emp_id NOT IN (SELECT emp_id FROM employee WHERE emp_id IN (1,10)); + emp_id | emp_name | emp_dept_id +--------+-------------+------------- + 2 | emp - 2 | 2 + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 + 6 | emp - 6 | 6 + 7 | emp - 7 | 7 + 8 | emp - 8 | 8 + 9 | emp - 9 | 9 + 11 | emp - 11 | 11 + 12 | emp - 12 | 12 + 13 | emp - 13 | 13 + 14 | emp - 14 | 14 + 15 | emp - 15 | 15 + 16 | emp - 16 | 16 + 17 | emp - 17 | 17 + 18 | emp - 18 | 18 + 19 | emp - 19 | 19 + 20 | UPDATEd emp | 20 + 21 | emp - 21 | 21 + 22 | emp - 22 | 22 + 23 | emp - 23 | 23 + 24 | emp - 24 | 24 + 25 | emp - 25 | 25 + 26 | emp - 26 | 26 + 27 | emp - 27 | 27 + 28 | emp - 28 | 28 + 29 | emp - 29 | 29 + 30 | emp - 30 | 30 + 31 | emp - 31 | 31 + 32 | emp - 32 | 32 + 33 | emp - 33 | 33 + 34 | emp - 34 | 34 + 35 | emp - 35 | 35 + 36 | emp - 36 | 36 + 37 | emp - 37 | 37 + 38 | emp - 38 | 38 + 39 | emp - 39 | 39 + 40 | emp - 40 | 40 + 41 | emp - 41 | 41 + 42 | emp - 42 | 42 + 43 | emp - 43 | 43 + 44 | emp - 44 | 44 + 45 | emp - 45 | 45 + 46 | emp - 46 | 46 + 47 | emp - 47 | 47 + 48 | emp - 48 | 48 + 49 | emp - 49 | 49 + 50 | emp - 50 | 50 + 51 | emp - 51 | 51 + 52 | emp - 52 | 52 + 53 | emp - 53 | 53 + 54 | emp - 54 | 54 + 55 | emp - 55 | 55 + 56 | emp - 56 | 56 + 57 | emp - 57 | 57 + 58 | emp - 58 | 58 + 59 | emp - 59 | 59 + 60 | emp - 60 | 60 + 61 | emp - 61 | 61 + 62 | emp - 62 | 62 + 63 | emp - 63 | 63 + 64 | emp - 64 | 64 + 65 | emp - 65 | 65 + 66 | emp - 66 | 66 + 67 | emp - 67 | 67 + 68 | emp - 68 | 68 + 69 | emp - 69 | 69 + 70 | emp - 70 | 70 + 71 | emp - 71 | 71 + 72 | emp - 72 | 72 + 73 | emp - 73 | 73 + 74 | emp - 74 | 74 + 75 | emp - 75 | 75 + 76 | emp - 76 | 76 + 77 | emp - 77 | 77 + 78 | emp - 78 | 78 + 79 | emp - 79 | 79 + 80 | emp - 80 | 80 + 81 | emp - 81 | 81 + 82 | emp - 82 | 82 + 83 | emp - 83 | 83 + 84 | emp - 84 | 84 + 85 | emp - 85 | 85 + 86 | emp - 86 | 86 + 87 | emp - 87 | 87 + 88 | emp - 88 | 88 + 89 | emp - 89 | 89 + 90 | emp - 90 | 90 + 91 | emp - 91 | 91 + 92 | emp - 92 | 92 + 93 | emp - 93 | 93 + 94 | emp - 94 | 94 + 95 | emp - 95 | 95 + 96 | emp - 96 | 96 + 97 | emp - 97 | 97 + 98 | emp - 98 | 98 + 99 | emp - 99 | 99 + 100 | emp - 100 | 100 +(98 rows) + +--Testcase 39: +SELECT * FROM employee WHERE emp_name NOT IN ('emp - 1', 'emp - 2') LIMIT 5; + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 + 6 | emp - 6 | 6 + 7 | emp - 7 | 7 +(5 rows) + +--Testcase 40: +SELECT * FROM employee WHERE emp_name NOT IN ('emp - 10') LIMIT 5; + emp_id | emp_name | emp_dept_id +--------+----------+------------- + 1 | emp - 1 | 1 + 2 | emp - 2 | 2 + 3 | emp - 3 | 3 + 4 | emp - 4 | 4 + 5 | emp - 5 | 5 +(5 rows) + +--Testcase 41: +SELECT * FROM numbers WHERE (CASE WHEN a % 2 = 0 THEN 1 WHEN a % 5 = 0 THEN 1 ELSE 0 END) = 1; + a | b +---+------- + 2 | Two + 4 | Four + 5 | Five + 6 | Six + 8 | Eight +(5 rows) + +--Testcase 42: +SELECT * FROM numbers WHERE (CASE b WHEN 'Two' THEN 1 WHEN 'Six' THEN 1 ELSE 0 END) = 1; + a | b +---+----- + 2 | Two + 6 | Six +(2 rows) + +--Testcase 152: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE (round(abs(a)) = 1); + QUERY PLAN +----------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..1.00 rows=1 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((round(abs(`a`)) = 1)) +(3 rows) + +--Testcase 153: +SELECT * FROM numbers WHERE (round(abs(a)) = 1); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 137: +create or replace function test_param_WHERE() returns void as $$ +DECLARE + n varchar; +BEGIN + FOR x IN 1..9 LOOP +--Testcase 138: + SELECT b INTO n from numbers WHERE a=x; + raise notice 'Found number %', n; + end loop; + return; +END +$$ LANGUAGE plpgsql; +--Testcase 43: +SELECT test_param_WHERE(); +NOTICE: Found number One +NOTICE: Found number Two +NOTICE: Found number Three +NOTICE: Found number Four +NOTICE: Found number Five +NOTICE: Found number Six +NOTICE: Found number Seven +NOTICE: Found number Eight +NOTICE: Found number Nine + test_param_where +------------------ + +(1 row) + +--Testcase 44: +SELECT b from numbers WHERE a=1; + b +----- + One +(1 row) + +--Testcase 45: +EXPLAIN(COSTS OFF) SELECT b from numbers WHERE a=1; + QUERY PLAN +------------------------- + Foreign Scan on numbers +(1 row) + +--Testcase 46: +SELECT a FROM numbers WHERE b = (SELECT NULL::text); + a +--- +(0 rows) + +--Testcase 47: +PREPARE stmt1 (int, int) AS + SELECT * FROM numbers WHERE a=$1 or a=$2; +--Testcase 48: +EXECUTE stmt1(1,2); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 49: +EXECUTE stmt1(2,2); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 50: +EXECUTE stmt1(3,2); + a | b +---+------- + 2 | Two + 3 | Three +(2 rows) + +--Testcase 51: +EXECUTE stmt1(4,2); + a | b +---+------ + 2 | Two + 4 | Four +(2 rows) + +-- generic plan +--Testcase 52: +EXECUTE stmt1(5,2); + a | b +---+------ + 2 | Two + 5 | Five +(2 rows) + +--Testcase 53: +EXECUTE stmt1(6,2); + a | b +---+----- + 2 | Two + 6 | Six +(2 rows) + +--Testcase 54: +EXECUTE stmt1(7,2); + a | b +---+------- + 2 | Two + 7 | Seven +(2 rows) + +--Testcase 55: +DELETE FROM employee; +--Testcase 56: +DELETE FROM department; +--Testcase 57: +DELETE FROM empdata; +--Testcase 58: +DELETE FROM numbers; +BEGIN; +--Testcase 59: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 60: +INSERT INTO numbers VALUES(2, 'Two'); +COMMIT; +--Testcase 61: +SELECT * from numbers; + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +BEGIN; +--Testcase 62: +INSERT INTO numbers VALUES(3, 'Three'); +ROLLBACK; +--Testcase 63: +SELECT * from numbers; + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +BEGIN; +--Testcase 64: +INSERT INTO numbers VALUES(4, 'Four'); +SAVEPOINT my_savepoint; +--Testcase 65: +INSERT INTO numbers VALUES(5, 'Five'); +ROLLBACK TO SAVEPOINT my_savepoint; +--Testcase 66: +INSERT INTO numbers VALUES(6, 'Six'); +COMMIT; +--Testcase 67: +SELECT * from numbers; + a | b +---+------ + 1 | One + 2 | Two + 4 | Four + 6 | Six +(4 rows) + +-- duplicate key +--Testcase 68: +INSERT INTO numbers VALUES(1, 'One'); +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: numbers.b + sql=INSERT INTO main."numbers"(`a`, `b`) VALUES (?, ?) +--Testcase 69: +DELETE from numbers; +BEGIN; +--Testcase 70: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 71: +INSERT INTO numbers VALUES(2, 'Two'); +COMMIT; +-- violate unique constraint +--Testcase 72: +UPDATE numbers SET b='Two' WHERE a = 1; +ERROR: failed to execute remote SQL: rc=19 UNIQUE constraint failed: numbers.b + sql=UPDATE main."numbers" SET `b` = 'Two' WHERE ((`a` = 1)) +--Testcase 73: +SELECT * from numbers; + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +-- push down +--Testcase 74: +explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); + QUERY PLAN +--------------------------------------------------------------------------------- + Foreign Scan on public.numbers + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (2, 3, 4, 5)) +(3 rows) + +-- (1,2,3) is pushed down +--Testcase 75: +explain (verbose, costs off) SELECT * from numbers WHERE a in (1,2,3) AND (1,2) < (a,5); + QUERY PLAN +------------------------------------------------------------------------------ + Foreign Scan on public.numbers + Output: a, b + Filter: (ROW(1, 2) < ROW(numbers.a, 5)) + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2, 3)) +(4 rows) + +--Testcase 76: +explain (verbose, costs off) SELECT * from numbers WHERE a in (a+2*a,5); + QUERY PLAN +------------------------------------------------------------------------------------------------------ + Foreign Scan on public.numbers + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (((`a` = (`a` + (2 * `a`))) OR (`a` = 5))) +(3 rows) + +--Testcase 77: +explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public.numbers + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2, `a`)) +(3 rows) + +--Testcase 78: +SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 79: +SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +-- ANY with ARRAY expression +--Testcase 154: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); + QUERY PLAN +----------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..2.00 rows=2 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, (`a` + 1))) +(3 rows) + +--Testcase 155: +SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 156: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); + QUERY PLAN +---------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..150.00 rows=150 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` <> 1) OR (`a` <> (`a` + 1))) +(3 rows) + +--Testcase 157: +SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 158: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); + QUERY PLAN +---------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` >= 1) OR (`a` >= (`a` + 1))) +(3 rows) + +--Testcase 159: +SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 160: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); + QUERY PLAN +---------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` <= 1) OR (`a` <= (`a` + 1))) +(3 rows) + +--Testcase 161: +SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 162: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); + QUERY PLAN +-------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` > 1) OR (`a` > (`a` + 1))) +(3 rows) + +--Testcase 163: +SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 164: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); + QUERY PLAN +-------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` < 1) OR (`a` < (`a` + 1))) +(3 rows) + +--Testcase 165: +SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +-- ANY with ARRAY const +--Testcase 166: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); + QUERY PLAN +--------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..2.00 rows=2 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2)) +(3 rows) + +--Testcase 167: +SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 168: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); + QUERY PLAN +---------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..150.00 rows=150 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <> 1 OR `a` <> 2) +(3 rows) + +--Testcase 169: +SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 170: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); + QUERY PLAN +---------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` >= 1 OR `a` >= 2) +(3 rows) + +--Testcase 171: +SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 172: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); + QUERY PLAN +---------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <= 1 OR `a` <= 2) +(3 rows) + +--Testcase 173: +SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 174: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` > 1 OR `a` > 2) +(3 rows) + +--Testcase 175: +SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 176: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` < 1 OR `a` < 2) +(3 rows) + +--Testcase 177: +SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 210: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); + QUERY PLAN +------------------------------------------------------------------------------ + Foreign Scan on public.numbers (cost=10.00..3.00 rows=3 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` IN (1, 2, 3)) +(3 rows) + +--Testcase 211: +SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 212: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); + QUERY PLAN +---------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..150.00 rows=150 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <> 1 OR `a` <> 2 OR `a` <> 3) +(3 rows) + +--Testcase 213: +SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +-- ALL with ARRAY expression +--Testcase 178: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); + QUERY PLAN +--------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..1.00 rows=1 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` = 1) AND (`a` = (`a` * 1))) +(3 rows) + +--Testcase 179: +SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 180: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..148.00 rows=148 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` NOT IN (1, (`a` + 1))) +(3 rows) + +--Testcase 181: +SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 182: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); + QUERY PLAN +----------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` >= 1) AND (`a` >= (`a` / 1))) +(3 rows) + +--Testcase 183: +SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 184: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); + QUERY PLAN +----------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` <= 1) AND (`a` <= (`a` + 1))) +(3 rows) + +--Testcase 185: +SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 186: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); + QUERY PLAN +--------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` > 1) AND (`a` > (`a` - 1))) +(3 rows) + +--Testcase 187: +SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 188: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); + QUERY PLAN +--------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((`a` < 2) AND (`a` < (`a` + 1))) +(3 rows) + +--Testcase 189: +SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); + a | b +---+----- + 1 | One +(1 row) + +-- ALL with ARRAY const +--Testcase 190: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); + QUERY PLAN +--------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..1.00 rows=1 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` = 1 AND `a` = 1) +(3 rows) + +--Testcase 191: +SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 192: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); + QUERY PLAN +------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..148.00 rows=148 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` NOT IN (1, 3)) +(3 rows) + +--Testcase 193: +SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 194: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); + QUERY PLAN +----------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` >= 1 AND `a` >= 2) +(3 rows) + +--Testcase 195: +SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 196: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); + QUERY PLAN +----------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` <= 1 AND `a` <= 2) +(3 rows) + +--Testcase 197: +SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); + a | b +---+----- + 1 | One +(1 row) + +--Testcase 198: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); + QUERY PLAN +--------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` > 0 AND `a` > 1) +(3 rows) + +--Testcase 199: +SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 200: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); + QUERY PLAN +--------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`a` < 2 AND `a` < 3) +(3 rows) + +--Testcase 201: +SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); + a | b +---+----- + 1 | One +(1 row) + +-- ANY/ALL with TEXT ARRAY const +--Testcase 202: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); + QUERY PLAN +----------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..2.00 rows=2 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` IN ('One', 'Two')) +(3 rows) + +--Testcase 203: +SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 204: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); + QUERY PLAN +---------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..148.00 rows=148 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` NOT IN ('One', 'Four')) +(3 rows) + +--Testcase 205: +SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 206: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); + QUERY PLAN +---------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..83.00 rows=83 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` > 'One' OR `b` > 'Two') +(3 rows) + +--Testcase 207: +SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); + a | b +---+----- + 2 | Two +(1 row) + +--Testcase 208: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); + QUERY PLAN +------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers (cost=10.00..17.00 rows=17 width=520) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE (`b` > 'Four' AND `b` > 'Five') +(3 rows) + +--Testcase 209: +SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); + a | b +---+----- + 1 | One + 2 | Two +(2 rows) + +--Testcase 80: +INSERT INTO multiprimary VALUES(1,2,3); +--Testcase 81: +INSERT INTO multiprimary VALUES(1,2,4); +--Testcase 82: +UPDATE multiprimary SET b = 10 WHERE c = 3; +--Testcase 83: +SELECT * from multiprimary; + a | b | c +---+----+--- + 1 | 10 | 3 + 1 | 2 | 4 +(2 rows) + +--Testcase 84: +UPDATE multiprimary SET a = 10 WHERE a = 1; +--Testcase 85: +SELECT * from multiprimary; + a | b | c +----+----+--- + 10 | 10 | 3 + 10 | 2 | 4 +(2 rows) + +--Testcase 86: +UPDATE multiprimary SET a = 100, b=200, c=300 WHERE a=10 AND b=10; +--Testcase 87: +SELECT * from multiprimary; + a | b | c +-----+-----+----- + 100 | 200 | 300 + 10 | 2 | 4 +(2 rows) + +--Testcase 88: +UPDATE multiprimary SET a = 1234; +--Testcase 89: +SELECT * from multiprimary; + a | b | c +------+-----+----- + 1234 | 200 | 300 + 1234 | 2 | 4 +(2 rows) + +--Testcase 90: +UPDATE multiprimary SET a = a+1, b=b+1 WHERE b=200 AND c=300; +--Testcase 91: +SELECT * from multiprimary; + a | b | c +------+-----+----- + 1235 | 201 | 300 + 1234 | 2 | 4 +(2 rows) + +--Testcase 92: +DELETE from multiprimary WHERE a = 1235; +--Testcase 93: +SELECT * from multiprimary; + a | b | c +------+---+--- + 1234 | 2 | 4 +(1 row) + +--Testcase 94: +DELETE from multiprimary WHERE b = 2; +--Testcase 95: +SELECT * from multiprimary; + a | b | c +---+---+--- +(0 rows) + +--Testcase 96: +INSERT INTO multiprimary VALUES(1,2,3); +--Testcase 97: +INSERT INTO multiprimary VALUES(1,2,4); +--Testcase 98: +INSERT INTO multiprimary VALUES(1,10,20); +--Testcase 99: +INSERT INTO multiprimary VALUES(2,20,40); +--Testcase 100: +SELECT count(distinct a) from multiprimary; + count +------- + 2 +(1 row) + +--Testcase 101: +SELECT sum(b),max(b), min(b) from multiprimary; + sum | max | min +-----+-----+----- + 34 | 20 | 2 +(1 row) + +--Testcase 102: +SELECT sum(b+5)+2 from multiprimary group by b/2 order by b/2; + ?column? +---------- + 16 + 17 + 27 +(3 rows) + +--Testcase 103: +SELECT sum(a) from multiprimary group by b having sum(a) > 0 order by sum(a); + sum +----- + 1 + 2 + 2 +(3 rows) + +--Testcase 104: +SELECT sum(a) A from multiprimary group by b having avg(abs(a)) > 0 AND sum(a) > 0 order by A; + a +--- + 1 + 2 + 2 +(3 rows) + +--Testcase 105: +SELECT count(nullif(a, 1)) FROM multiprimary; + count +------- + 1 +(1 row) + +--Testcase 106: +SELECT a,a FROM multiprimary group by 1,2; + a | a +---+--- + 1 | 1 + 2 | 2 +(2 rows) + +--Testcase 107: +SELECT * from multiprimary, numbers WHERE multiprimary.a=numbers.a; + a | b | c | a | b +---+----+----+---+----- + 1 | 2 | 3 | 1 | One + 1 | 2 | 4 | 1 | One + 1 | 10 | 20 | 1 | One + 2 | 20 | 40 | 2 | Two +(4 rows) + +--Testcase 108: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; + QUERY PLAN +----------------------------------------------------------- + Aggregate + Output: sum(a) + Filter: (sum(multiprimary.a) > 0) + -> Foreign Scan on public.multiprimary + Output: a, b, c + SQLite query: SELECT `a` FROM main."multiprimary" +(6 rows) + +--Testcase 109: +SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; + sum +----- + 5 +(1 row) + +--Testcase 110: +INSERT INTO numbers VALUES(4, 'Four'); +-- All where clauses are pushed down +--Testcase 111: +SELECT * FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; + a | b +---+------ + 4 | Four +(1 row) + +--Testcase 112: +EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; + QUERY PLAN +----------------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers + Output: b, length((b)::text) + Filter: ((upper((numbers.b)::text) = 'FOUR'::text) AND (lower((numbers.b)::text) = 'four'::text)) + SQLite query: SELECT `b` FROM main."numbers" WHERE ((abs(`a`) = 4)) +(4 rows) + +-- Only "length(b) = 4" are pushed down +--Testcase 113: +SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; + b | length +------+-------- + Four | 4 +(1 row) + +--Testcase 114: +EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public.numbers + Output: b, length((b)::text) + Filter: ((power('1'::double precision, (numbers.a)::double precision) <> '0'::double precision) AND (length(reverse((numbers.b)::text)) = 4)) + SQLite query: SELECT `a`, `b` FROM main."numbers" WHERE ((length(`b`) = 4)) +(4 rows) + +--Testcase 115: +INSERT INTO multiprimary (b,c) VALUES (99, 100); +--Testcase 116: +SELECT c FROM multiprimary WHERE COALESCE(a,b,c) = 99; + c +----- + 100 +(1 row) + +--Testcase 139: +CREATE FOREIGN TABLE multiprimary2(a int, b int, c int OPTIONS(column_name 'b')) SERVER sqlite_svr OPTIONS (table 'multiprimary'); +--Testcase 117: +SELECT * FROM multiprimary2; + a | b | c +---+----+---- + 1 | 2 | 2 + 1 | 2 | 2 + 1 | 10 | 10 + 2 | 20 | 20 + | 99 | 99 +(5 rows) + +--Testcase 214: +ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN a OPTIONS(ADD column_name 'b'); +--Testcase 118: +SELECT * FROM multiprimary2; + a | b | c +----+----+---- + 2 | 2 | 2 + 2 | 2 | 2 + 10 | 10 | 10 + 20 | 20 | 20 + 99 | 99 | 99 +(5 rows) + +--Testcase 215: +ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN b OPTIONS (column_name 'nosuch column'); +--Testcase 119: +SELECT * FROM multiprimary2; +ERROR: SQL error during prepare: no such column: nosuch column SELECT `b`, `nosuch column`, `b` FROM main."multiprimary" +--Testcase 140: +EXPLAIN (VERBOSE) SELECT * FROM multiprimary2; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public.multiprimary2 (cost=10.00..2275.00 rows=2275 width=12) + Output: a, b, c + SQLite query: SELECT `b`, `nosuch column`, `b` FROM main."multiprimary" +(3 rows) + +--Testcase 120: +SELECT a FROM multiprimary2 WHERE b = 1; +ERROR: SQL error during prepare: no such column: nosuch column SELECT `b` FROM main."multiprimary" WHERE ((`nosuch column` = 1)) +--Testcase 141: +CREATE FOREIGN TABLE columntest(a int OPTIONS(column_name 'a a', key 'true'), "b b" int OPTIONS(key 'true'), c int OPTIONS(column_name 'c c')) SERVER sqlite_svr; +--Testcase 121: +INSERT INTO columntest VALUES(1,2,3); +--Testcase 122: +UPDATE columntest SET c=10 WHERE a = 1; +--Testcase 123: +SELECT * FROM columntest; + a | b b | c +---+-----+---- + 1 | 2 | 10 +(1 row) + +--Testcase 124: +UPDATE columntest SET a=100 WHERE c = 10; +--Testcase 125: +SELECT * FROM columntest; + a | b b | c +-----+-----+---- + 100 | 2 | 10 +(1 row) + +--Testcase 126: +INSERT INTO noprimary VALUES(1,'2'); +--Testcase 127: +INSERT INTO noprimary SELECT * FROM noprimary; +--Testcase 128: +SELECT * FROM noprimary; + a | b +---+--- + 1 | 2 + 1 | 2 +(2 rows) + +--get version +--Testcase 153: +\df sqlite* + List of functions + Schema | Name | Result data type | Argument data types | Type +--------+----------------------------+------------------+-----------------------------------------+------ + public | sqlite_fdw_disconnect | boolean | text | func + public | sqlite_fdw_disconnect_all | boolean | | func + public | sqlite_fdw_get_connections | SETOF record | OUT server_name text, OUT valid boolean | func + public | sqlite_fdw_handler | fdw_handler | | func + public | sqlite_fdw_validator | void | text[], oid | func + public | sqlite_fdw_version | integer | | func +(6 rows) + +--Testcase 154: +SELECT * FROM public.sqlite_fdw_version(); + sqlite_fdw_version +-------------------- + 20400 +(1 row) + +--Testcase 155: +SELECT sqlite_fdw_version(); + sqlite_fdw_version +-------------------- + 20400 +(1 row) + +-- issue #44 github +--Testcase 156: +CREATE FOREIGN TABLE fts_table (name text, description text) SERVER sqlite_svr; +--Testcase 157: +INSERT INTO fts_table VALUES ('this is name', 'this is description'); +--Testcase 158: +SELECT * FROM fts_table; -- should work + name | description +--------------+--------------------- + this is name | this is description +(1 row) + +--Testcase 159: +ALTER TABLE fts_table ALTER COLUMN name TYPE int; +--Testcase 160: +SELECT * FROM fts_table; -- should fail +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' +-- issue #62 github +--Testcase 236: +INSERT INTO noprimary VALUES (4, 'Test''s'); +--Testcase 237: +INSERT INTO noprimary VALUES (5, 'Test'); +--Testcase 238: +SELECT * FROM noprimary; + a | b +---+-------- + 1 | 2 + 1 | 2 + 4 | Test's + 5 | Test +(4 rows) + +--Testcase 239: +EXPLAIN VERBOSE +SELECT * FROM noprimary where b = 'Test''s'; + QUERY PLAN +--------------------------------------------------------------------------------- + Foreign Scan on public.noprimary (cost=10.00..7.00 rows=7 width=36) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."noprimary" WHERE ((`b` = 'Test''s')) +(3 rows) + +--Testcase 240: +SELECT * FROM noprimary where b = 'Test''s'; + a | b +---+-------- + 4 | Test's +(1 row) + +--Testcase 241: +EXPLAIN VERBOSE +SELECT * FROM noprimary where b in ('Test''s', 'Test'); + QUERY PLAN +------------------------------------------------------------------------------------------ + Foreign Scan on public.noprimary (cost=10.00..14.00 rows=14 width=36) + Output: a, b + SQLite query: SELECT `a`, `b` FROM main."noprimary" WHERE (`b` IN ('Test''s', 'Test')) +(3 rows) + +--Testcase 242: +SELECT * FROM noprimary where b in ('Test''s', 'Test'); + a | b +---+-------- + 4 | Test's + 5 | Test +(2 rows) + +-- INSERT/UPDATE whole row with generated column +--Testcase 216: +CREATE FOREIGN TABLE grem1_1 ( + a int generated always as (0) stored) + SERVER sqlite_svr OPTIONS(table 'grem1_1'); +--Testcase 217: +INSERT INTO grem1_1 DEFAULT VALUES; +--Testcase 218: +SELECT * FROM grem1_1; + a +--- + +(1 row) + +--Testcase 219: +CREATE FOREIGN TABLE grem1_2 ( + a int generated always as (0) stored, + b int generated always as (1) stored, + c int generated always as (2) stored, + d int generated always as (3) stored) + SERVER sqlite_svr OPTIONS(table 'grem1_2'); +--Testcase 220: +INSERT INTO grem1_2 DEFAULT VALUES; +--Testcase 221: +SELECT * FROM grem1_2; + a | b | c | d +---+---+---+--- + | | | +(1 row) + +-- Executable test case for pushdown CASE expressions (results) +--Testcase 224: +CREATE FOREIGN TABLE case_exp(c1 int OPTIONS (key 'true'), c3 text, c6 varchar(10)) SERVER sqlite_svr; +--Testcase 225: +INSERT INTO case_exp + SELECT id, + to_char(id, 'FM00000'), + id % 10 + FROM generate_series(1, 10) id; +--Testcase 226: +SELECT * FROM case_exp; + c1 | c3 | c6 +----+-------+---- + 1 | 00001 | 1 + 2 | 00002 | 2 + 3 | 00003 | 3 + 4 | 00004 | 4 + 5 | 00005 | 5 + 6 | 00006 | 6 + 7 | 00007 | 7 + 8 | 00008 | 8 + 9 | 00009 | 9 + 10 | 00010 | 0 +(10 rows) + +-- CASE arg WHEN +--Testcase 227: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public.case_exp + Output: c1, c3, c6 + SQLite query: SELECT `c1`, `c3`, `c6` FROM main."case_exp" WHERE ((`c1` > CASE mod(`c1`, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END)) +(3 rows) + +--Testcase 228: +SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); + c1 | c3 | c6 +----+-------+---- + 4 | 00004 | 4 + 8 | 00008 | 8 +(2 rows) + +-- these are shippable +--Testcase 229: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public.case_exp + Output: c1, c3, c6 + SQLite query: SELECT `c1`, `c3`, `c6` FROM main."case_exp" WHERE (CASE `c6` WHEN 'foo' THEN 1 ELSE (`c3` < 'bar') END) +(3 rows) + +--Testcase 230: +SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; + c1 | c3 | c6 +----+-------+---- + 1 | 00001 | 1 + 2 | 00002 | 2 + 3 | 00003 | 3 + 4 | 00004 | 4 + 5 | 00005 | 5 + 6 | 00006 | 6 + 7 | 00007 | 7 + 8 | 00008 | 8 + 9 | 00009 | 9 + 10 | 00010 | 0 +(10 rows) + +--Testcase 231: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public.case_exp + Output: c1, c3, c6 + SQLite query: SELECT `c1`, `c3`, `c6` FROM main."case_exp" WHERE (CASE `c3` WHEN `c6` THEN 1 ELSE (`c3` < 'bar') END) +(3 rows) + +--Testcase 232: +SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; + c1 | c3 | c6 +----+-------+---- + 1 | 00001 | 1 + 2 | 00002 | 2 + 3 | 00003 | 3 + 4 | 00004 | 4 + 5 | 00005 | 5 + 6 | 00006 | 6 + 7 | 00007 | 7 + 8 | 00008 | 8 + 9 | 00009 | 9 + 10 | 00010 | 0 +(10 rows) + +-- but this is not because of collation +--Testcase 233: +SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'bar' END; + c1 | c3 | c6 +----+-------+---- + 1 | 00001 | 1 + 2 | 00002 | 2 + 3 | 00003 | 3 + 4 | 00004 | 4 + 5 | 00005 | 5 + 6 | 00006 | 6 + 7 | 00007 | 7 + 8 | 00008 | 8 + 9 | 00009 | 9 + 10 | 00010 | 0 +(10 rows) + +--Testcase 234: +DELETE FROM case_exp; +-- updatable option test (github pull 59) +-- Full combinations +-- D-default, T-true, F-false +-- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF +-- SERVER default TABLE default +-- SERVER true TABLE default +-- SERVER false TABLE default +-- SERVER default TABLE true +-- SERVER default TABLE false +-- SERVER true TABLE true +-- SERVER false TABLE true +-- SERVER false TABLE false +-- SERVER true TABLE false +-- SERVER default TABLE default +--Testcase 235: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK +--Testcase 236: +UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK +--Testcase 237: +DELETE FROM RO_RW_test WHERE i=2; -- OK +-- SERVER true TABLE default +--Testcase 238: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 239: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK +--Testcase 240: +UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK +--Testcase 241: +DELETE FROM RO_RW_test WHERE i=3; -- OK +--Testcase 242: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK +-- SERVER false TABLE default +--Testcase 243: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 244: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 245: +UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 246: +DELETE FROM RO_RW_test WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER default TABLE true +--Testcase 247: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 248: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); +--Testcase 249: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK +--Testcase 250: +UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK +--Testcase 251: +DELETE FROM RO_RW_test WHERE i=6; -- OK +-- SERVER default TABLE false +--Testcase 252: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 253: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 254: +UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 255: +DELETE FROM RO_RW_test WHERE i=4; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER true TABLE true +--Testcase 256: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 257: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); +--Testcase 258: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK +--Testcase 258: +UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK +--Testcase 260: +DELETE FROM RO_RW_test WHERE i=8; -- OK +--Testcase 261: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK +-- SERVER false TABLE true +--Testcase 262: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 263: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK +--Testcase 264: +UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK +--Testcase 265: +DELETE FROM RO_RW_test WHERE i=9; -- OK +-- SERVER false TABLE false +--Testcase 266: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 267: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 268: +UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 269: +DELETE FROM RO_RW_test WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +-- SERVER true TABLE false +--Testcase 270: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); +--Testcase 271: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR +ERROR: foreign table "ro_rw_test" does not allow inserts +--Testcase 272: +UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow updates +--Testcase 273: +DELETE FROM RO_RW_test WHERE i=9; -- ERR +ERROR: foreign table "ro_rw_test" does not allow deletes +--Testcase 274: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 275: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); +--Testcase 276: +SELECT * FROM RO_RW_test ORDER BY i; + i | a | b | c +----+---+-------+--- + 1 | A | 1.001 | 0 + 4 | F | 0.005 | 5 + 10 | P | 4.15 | 1 +(3 rows) + +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +ERROR: cannot convert constant value to Sqlite value +HINT: Constant value data type: "tsquery" in column "b" +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); +-- updatable option test (github pull 59) +DROP FOREIGN TABLE RO_RW_test; +--Testcase 142: +DROP FUNCTION test_param_WHERE(); +--Testcase 143: +DROP FOREIGN TABLE numbers; +--Testcase 144: +DROP FOREIGN TABLE department; +--Testcase 145: +DROP FOREIGN TABLE employee; +--Testcase 146: +DROP FOREIGN TABLE empdata; +--Testcase 147: +DROP FOREIGN TABLE multiprimary; +--Testcase 148: +DROP FOREIGN TABLE multiprimary2; +--Testcase 149: +DROP FOREIGN TABLE columntest; +--Testcase 150: +DROP FOREIGN TABLE noprimary; +--Testcase 161: +DROP FOREIGN TABLE fts_table; +--Testcase 222: +DROP FOREIGN TABLE grem1_1; +--Testcase 223: +DROP FOREIGN TABLE grem1_2; +--Testcase 235: +DROP FOREIGN TABLE case_exp; +--Testcase 151: +DROP SERVER sqlite_svr; +--Testcase 152: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/15.3/type.out b/expected/15.4/type.out similarity index 65% rename from expected/15.3/type.out rename to expected/15.4/type.out index 3de91088..aedd1ec1 100644 --- a/expected/15.3/type.out +++ b/expected/15.4/type.out @@ -499,6 +499,504 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE IF EXISTS "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); + QUERY PLAN +------------------------------------------------------------------ + Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) + Batch Size: 1 + -> Result (cost=0.00..0.01 rows=1 width=20) + Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid +(4 rows) + +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(40 rows) + +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(20 rows) + +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) +(3 rows) + +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; + i | u | t | l +----+--------------------------------------+------+---- + 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 + 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 + 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 + 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 + 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 + 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 + 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 +(20 rows) + +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) +(3 rows) + +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) +(3 rows) + +--Testcase 174: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 + 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 + 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 + 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 + 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 + 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 + 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 +(21 rows) + +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 +(1 row) + +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 177: +SELECT * FROM "type_UUID+"; + i | u | t | l +---+---+---+--- +(0 rows) + +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 +(1 row) + +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) +(3 rows) + +--Testcase 182: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) + -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) + SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) +(3 rows) + +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 17 bytes length +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value +HINT: incorrect value is 15 bytes length +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); + QUERY PLAN +--------------------------------------------------------------------------------- + Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) + -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) + SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) +(3 rows) + +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 + 44 | | null | +(2 rows) + +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + i | u | t | l +----+---+------+--- + 44 | | null | +(1 row) + +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + i | u | t | l +----+--------------------------------------+------+---- + 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 +(1 row) + +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; + QUERY PLAN +---------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NULL)) +(3 rows) + +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + QUERY PLAN +-------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) + Output: i, u, t, l + SQLite query: SELECT `i`, coalesce(sqlite_fdw_uuid_blob(`u`),`u`), `t`, `l` FROM main."type_UUID+" WHERE ((coalesce(sqlite_fdw_uuid_blob(`u`),`u`) IS NOT NULL)) +(3 rows) + --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: @@ -1297,7 +1795,7 @@ SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 47 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1322,7 +1820,6 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" -drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1340,6 +1837,8 @@ drop cascades to foreign table "RO_RW_test" drop cascades to foreign table "Unicode data" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" +drop cascades to foreign table "type_UUID" +drop cascades to foreign table "type_UUID+" drop cascades to foreign table "type_BIT" drop cascades to foreign table "type_BIT+" drop cascades to foreign table "type_VARBIT" diff --git a/expected/16.0/extra/encodings.out b/expected/16.0/extra/encodings.out index eea172c4..1e041e7d 100644 --- a/expected/16.0/extra/encodings.out +++ b/expected/16.0/extra/encodings.out @@ -34,6 +34,41 @@ -- WIN1256 -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; + i | t +-----+------------------------------------------------------------------------------------------------------------------------ + jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. + bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. + rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. + aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. + arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ + ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. + eus | Permin gox dabiltzu yoskiñ. + bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. + gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός + gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. + spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. + kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. + lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. + pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. + fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! + srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. + epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. + cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ + heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם +(20 rows) + +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/expected/16.0/extra/join.out b/expected/16.0/extra/join.out index 0e280b5d..d9676b58 100644 --- a/expected/16.0/extra/join.out +++ b/expected/16.0/extra/join.out @@ -5383,6 +5383,31 @@ select 1 from ---------- (0 rows) +-- +-- check a case where we formerly generated invalid parameterized paths +-- +begin; +--Testcase 630: +CREATE FOREIGN TABLE t (a int options (key 'true')) SERVER sqlite_svr; +--Testcase 631: +explain (costs off) +select 1 from t t1 + join lateral (select t1.a from (select 1) foo offset 0) as s1 on true + join + (select 1 from t t2 + inner join (t t3 + left join (t t4 left join t t5 on t4.a = 1) + on t3.a = t4.a) + on false + where t3.a = coalesce(t5.a,1)) as s2 + on true; + QUERY PLAN +-------------------------- + Result + One-Time Filter: false +(2 rows) + +rollback; -- -- check a case in which a PlaceHolderVar forces join order -- diff --git a/expected/16.0/extra/sqlite_fdw_post.out b/expected/16.0/extra/sqlite_fdw_post.out index 921b8a04..ae05737a 100644 --- a/expected/16.0/extra/sqlite_fdw_post.out +++ b/expected/16.0/extra/sqlite_fdw_post.out @@ -694,10 +694,10 @@ EXPLAIN (VERBOSE, COSTS OFF) (3 rows) --Testcase 50: -SELECT * FROM ft2 a, ft2 b WHERE a.c1 = 47 AND b.c1 = a.c2; - c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 -----+----+-------+------------------------------+--------------------------+----+------------+-----+----+----+-------+------------------------------+--------------------------+----+------------+----- - 47 | 7 | 00047 | Tue Feb 17 00:00:00 1970 PST | Tue Feb 17 00:00:00 1970 | 7 | 7 | foo | 7 | 7 | 00007 | Thu Jan 08 00:00:00 1970 PST | Thu Jan 08 00:00:00 1970 | 7 | 7 | foo +SELECT * FROM "S 1"."T 1" a, ft2 b WHERE a."C 1" = 47 AND b.c1 = a.c2; + C 1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 +-----+----+-------+------------------------------+--------------------------+----+------------+-----+----+----+-------+------------------------------+--------------------------+----+------------+----- + 47 | 7 | 00047 | Tue Feb 17 00:00:00 1970 PST | Tue Feb 17 00:00:00 1970 | 7 | 7 | foo | 7 | 7 | 00007 | Thu Jan 08 00:00:00 1970 PST | Thu Jan 08 00:00:00 1970 | 7 | 7 | foo (1 row) -- check both safe and unsafe join conditions @@ -1175,6 +1175,7 @@ WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; ALTER EXTENSION sqlite_fdw ADD TEXT SEARCH CONFIGURATION public.custom_search; -- however, that doesn't flush the shippability cache, so do a quick reconnect \c - +--Testcase 995: EXPLAIN (VERBOSE, COSTS OFF) SELECT c1, to_tsvector('custom_search'::regconfig, c3) FROM ft1 WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; @@ -1186,6 +1187,7 @@ WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; SQLite query: SELECT `C 1`, `c3` FROM main."T 1" WHERE ((`C 1` = 642)) (4 rows) +--Testcase 996: SELECT c1, to_tsvector('custom_search'::regconfig, c3) FROM ft1 WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; c1 | to_tsvector @@ -2619,6 +2621,30 @@ SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM 1 (10 rows) +-- join with pseudoconstant quals, not pushed down. +--Testcase 997: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT t1.c1, t2.c1 FROM ft1 t1 JOIN ft2 t2 ON (t1.c1 = t2.c1 AND CURRENT_USER = SESSION_USER) ORDER BY t1.c3, t1.c1 OFFSET 100 LIMIT 10; + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------- + Limit + Output: t1.c1, t2.c1, t1.c3 + -> Result + Output: t1.c1, t2.c1, t1.c3 + One-Time Filter: (CURRENT_USER = SESSION_USER) + -> Nested Loop + Output: t1.c1, t1.c3, t2.c1 + Join Filter: (t1.c1 = t2.c1) + -> Foreign Scan on public.ft1 t1 + Output: t1.c1, t1.c3 + SQLite query: SELECT `C 1`, `c3` FROM main."T 1" ORDER BY `c3` ASC NULLS LAST, `C 1` ASC NULLS LAST + -> Materialize + Output: t2.c1 + -> Foreign Scan on public.ft2 t2 + Output: t2.c1 + SQLite query: SELECT `C 1` FROM main."T 1" +(16 rows) + -- non-Var items in targetlist of the nullable rel of a join preventing -- push-down in some cases -- unable to push {ft1, ft2} @@ -3031,6 +3057,31 @@ SELECT t1.c1, t2.c2 FROM v4 t1 LEFT JOIN ft5 t2 ON (t1.c1 = t2.c1) ORDER BY t1.c --Testcase 785: ALTER VIEW v4 OWNER TO regress_view_owner; +-- Comment out these test cases. +-- sqlite_fdw does not need to getUserMapping in planning phase, +-- so it is unable to check userid to use when querying the remote table is correctly propagated into foreign rels. +-- -- ==================================================================== +-- -- Check that userid to use when querying the remote table is correctly +-- -- propagated into foreign rels present in subqueries under an UNION ALL +-- -- ==================================================================== +-- CREATE ROLE regress_view_owner_another; +-- ALTER VIEW v4 OWNER TO regress_view_owner_another; +-- GRANT SELECT ON ft4 TO regress_view_owner_another; +-- ALTER FOREIGN TABLE ft4 OPTIONS (ADD use_remote_estimate 'true'); +-- -- The following should query the remote backing table of ft4 as user +-- -- regress_view_owner_another, the view owner, though it fails as expected +-- -- due to the lack of a user mapping for that user. +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM v4; +-- -- Likewise, but with the query under an UNION ALL +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM (SELECT * FROM v4 UNION ALL SELECT * FROM v4); +-- -- Should not get that error once a user mapping is created +-- CREATE USER MAPPING FOR regress_view_owner_another SERVER loopback OPTIONS (password_required 'false'); +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM v4; +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM (SELECT * FROM v4 UNION ALL SELECT * FROM v4); +-- DROP USER MAPPING FOR regress_view_owner_another SERVER loopback; +-- DROP OWNED BY regress_view_owner_another; +-- DROP ROLE regress_view_owner_another; +-- ALTER FOREIGN TABLE ft4 OPTIONS (SET use_remote_estimate 'false'); -- cleanup --Testcase 512: DROP OWNED BY regress_view_owner; @@ -7796,6 +7847,7 @@ END;$$; --Testcase 642: CREATE TRIGGER trig_stmt_before BEFORE DELETE OR INSERT OR UPDATE OR TRUNCATE ON rem1 FOR EACH STATEMENT EXECUTE PROCEDURE trigger_func(); +--Testcase 1005: CREATE TRIGGER trig_stmt_after AFTER DELETE OR INSERT OR UPDATE OR TRUNCATE ON rem1 FOR EACH STATEMENT EXECUTE PROCEDURE trigger_func(); --Testcase 644: @@ -11234,27 +11286,11 @@ INSERT INTO ftable SELECT * FROM generate_series(11, 31) i; INSERT INTO ftable VALUES (32); --Testcase 940: INSERT INTO ftable VALUES (33), (34); ---Testcase 941: -SELECT COUNT(*) FROM ftable; - count -------- - 34 -(1 row) - ---Testcase 942: -DELETE FROM ftable; ---Testcase 943: -DROP FOREIGN TABLE ftable; --- try if large batches exceed max number of bind parameters ---Testcase 944: -CREATE FOREIGN TABLE ftable ( x int OPTIONS (key 'true') ) SERVER sqlite_svr OPTIONS ( table 'batch_table', batch_size '100000' ); ---Testcase 945: -INSERT INTO ftable SELECT * FROM generate_series(1, 70000) i; --Testcase 946: SELECT COUNT(*) FROM ftable; count ------- - 70000 + 34 (1 row) --Testcase 947: diff --git a/expected/16.0/sqlite_fdw.out b/expected/16.0/sqlite_fdw.out index a1a8708c..51690c38 100644 --- a/expected/16.0/sqlite_fdw.out +++ b/expected/16.0/sqlite_fdw.out @@ -1806,33 +1806,15 @@ SELECT * FROM RO_RW_test ORDER BY i; 10 | P | 4.15 | 1 (3 rows) --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. - arm | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։ - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. - eus | Permin gox dabiltzu yoskiñ. - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός - gle | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig. - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. - epo | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(20 rows) - +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +ERROR: cannot convert constant value to Sqlite value +HINT: Constant value data type: "tsquery" in column "b" +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); -- updatable option test (github pull 59) DROP FOREIGN TABLE RO_RW_test; --Testcase 142: @@ -1861,10442 +1843,7 @@ DROP FOREIGN TABLE grem1_1; DROP FOREIGN TABLE grem1_2; --Testcase 235: DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; --Testcase 151: DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "EUC_KR" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN1" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN2" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN3" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN4" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN5" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN6" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN7" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN8" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN9" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "LATIN10" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1250" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1251" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1253" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1254" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa9 in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1255" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xb3 in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1256" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; -ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -ERROR: character with byte sequence 0xd4 0xb2 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t ----+--- -(0 rows) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -ERROR: character with byte sequence 0xc5 0xad in encoding "UTF8" has no equivalent in encoding "WIN1257" -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; - i | t ------+-------------------------------------------------------------------------------------------------------- - jap | いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; - n ---- - 0 -(1 row) - --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'bul'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'rus'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'ukr'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; - i | t ------+--------------------------------------------------------------------- - bel | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; - i | t ------+--------------------------------------------------- - bul | Ах, чудна българска земьо, полюшвай цъфтящи жита. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; - i | t ------+--------------------------------------------------------------------------------------- - rus | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; - i | t ------+------------------------------------------------------------------------- - ukr | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; - i | t -------+---------------------------------------------------------------------- - bel+ | У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; - i | t -------+---------------------------------------------------- - bul+ | Ах, чудна българска земьо, полюшвай цъфтящи жита._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; - i | t -------+---------------------------------------------------------------------------------------- - rus+ | Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; - i | t -------+-------------------------------------------------------------------------- - ukr+ | Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; - n ---- - 0 -(1 row) - --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; - i | t ------+------------------------------------- - ara | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; - i | t -------+-------------------------------------- - ara+ | أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; - n ---- - 0 -(1 row) - --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; - i | t ------+--------------------------------------------------------------- - gre | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; - i | t -------+---------------------------------------------------------------- - gre+ | Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; - i | t ------+------------------------------------ - heb | עטלף אבק נס דרך מזגן שהתפוצץ כי חם -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; - i | t -------+------------------------------------- - heb+ | עטלף אבק נס דרך מזגן שהתפוצץ כי חם_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; - n ---- - 0 -(1 row) - --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'fra'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'spa'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; - i | t ------+----------------------------- - eus | Permin gox dabiltzu yoskiñ. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; - i | t ------+------------------------------------------------------------------------------------------------------------------------ - fra | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera ! -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; - i | t ------+-------------------------------------------------------- - spa | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; - i | t -------+------------------------------ - eus+ | Permin gox dabiltzu yoskiñ._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; - i | t -------+------------------------------------------------------------------------------------------------------------------------- - fra+ | Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; - i | t -------+--------------------------------------------------------- - spa+ | Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; - n ---- - 0 -(1 row) - --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'pol'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE i = 'srp'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; - i | t ------+---------------------------------------------------- - cze | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; - i | t ------+------------------------------------------- - pol | Pchnąć w tę łódź jeża lub ośm skrzyń fig. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; - i | t ------+----------------------------------------------------------------- - srp | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; - i | t -------+----------------------------------------------------- - cze+ | Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; - i | t -------+-------------------------------------------- - pol+ | Pchnąć w tę łódź jeża lub ośm skrzyń fig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; - i | t -------+------------------------------------------------------------------ - srp+ | Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; - n ---- - 0 -(1 row) - --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; - i | t ------+------------------------------------------------------------------- - lav | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; - i | t -------+-------------------------------------------------------------------- - lav+ | Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; - n ---- - 0 -(1 row) - --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; - i | t ------+------------------------------------------------------------------- - kor | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; - i | t -------+-------------------------------------------------------------------- - kor+ | 키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; - n ---- - 0 -(1 row) - --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; - i | t ------+------------------------------------------------------------------------ - aze | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq. -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; - i | t -------+------------------------------------------------------------------------- - aze+ | Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; - n ---- - 0 -(1 row) - --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; - i | t -------+-------------------------------------------------------------------- - arm+ | Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; - i | t -------+------------------------------------------------------------------------------ - gle+ | Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; - n ---- - 0 -(1 row) - -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; - i | t -------+----------------------------------------------------------------- - epo+ | Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._ -(1 row) - -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - n ---- - 0 -(1 row) - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/sql/12.15/aggregate.sql b/sql/12.16/aggregate.sql similarity index 100% rename from sql/12.15/aggregate.sql rename to sql/12.16/aggregate.sql diff --git a/sql/12.15/extra/aggregates.sql b/sql/12.16/extra/aggregates.sql similarity index 100% rename from sql/12.15/extra/aggregates.sql rename to sql/12.16/extra/aggregates.sql diff --git a/sql/12.15/extra/encodings.sql b/sql/12.16/extra/encodings.sql similarity index 99% rename from sql/12.15/extra/encodings.sql rename to sql/12.16/extra/encodings.sql index 9db05943..63c19191 100644 --- a/sql/12.15/extra/encodings.sql +++ b/sql/12.16/extra/encodings.sql @@ -35,6 +35,18 @@ -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; + -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/sql/12.15/extra/float4.sql b/sql/12.16/extra/float4.sql similarity index 100% rename from sql/12.15/extra/float4.sql rename to sql/12.16/extra/float4.sql diff --git a/sql/12.15/extra/float8.sql b/sql/12.16/extra/float8.sql similarity index 100% rename from sql/12.15/extra/float8.sql rename to sql/12.16/extra/float8.sql diff --git a/sql/12.15/extra/insert.sql b/sql/12.16/extra/insert.sql similarity index 100% rename from sql/12.15/extra/insert.sql rename to sql/12.16/extra/insert.sql diff --git a/sql/12.15/extra/int4.sql b/sql/12.16/extra/int4.sql similarity index 100% rename from sql/12.15/extra/int4.sql rename to sql/12.16/extra/int4.sql diff --git a/sql/12.15/extra/int8.sql b/sql/12.16/extra/int8.sql similarity index 100% rename from sql/12.15/extra/int8.sql rename to sql/12.16/extra/int8.sql diff --git a/sql/12.15/extra/join.sql b/sql/12.16/extra/join.sql similarity index 100% rename from sql/12.15/extra/join.sql rename to sql/12.16/extra/join.sql diff --git a/sql/12.15/extra/limit.sql b/sql/12.16/extra/limit.sql similarity index 100% rename from sql/12.15/extra/limit.sql rename to sql/12.16/extra/limit.sql diff --git a/sql/12.15/extra/numeric.sql b/sql/12.16/extra/numeric.sql similarity index 100% rename from sql/12.15/extra/numeric.sql rename to sql/12.16/extra/numeric.sql diff --git a/sql/12.15/extra/prepare.sql b/sql/12.16/extra/prepare.sql similarity index 100% rename from sql/12.15/extra/prepare.sql rename to sql/12.16/extra/prepare.sql diff --git a/sql/12.15/extra/select.sql b/sql/12.16/extra/select.sql similarity index 100% rename from sql/12.15/extra/select.sql rename to sql/12.16/extra/select.sql diff --git a/sql/12.15/extra/select_having.sql b/sql/12.16/extra/select_having.sql similarity index 100% rename from sql/12.15/extra/select_having.sql rename to sql/12.16/extra/select_having.sql diff --git a/sql/12.15/extra/sqlite_fdw_post.sql b/sql/12.16/extra/sqlite_fdw_post.sql similarity index 100% rename from sql/12.15/extra/sqlite_fdw_post.sql rename to sql/12.16/extra/sqlite_fdw_post.sql diff --git a/sql/12.15/extra/timestamp.sql b/sql/12.16/extra/timestamp.sql similarity index 100% rename from sql/12.15/extra/timestamp.sql rename to sql/12.16/extra/timestamp.sql diff --git a/sql/12.15/extra/update.sql b/sql/12.16/extra/update.sql similarity index 100% rename from sql/12.15/extra/update.sql rename to sql/12.16/extra/update.sql diff --git a/sql/12.15/selectfunc.sql b/sql/12.16/selectfunc.sql similarity index 100% rename from sql/12.15/selectfunc.sql rename to sql/12.16/selectfunc.sql diff --git a/sql/12.15/sqlite_fdw.sql b/sql/12.16/sqlite_fdw.sql similarity index 81% rename from sql/12.15/sqlite_fdw.sql rename to sql/12.16/sqlite_fdw.sql index abad6560..7e781308 100644 --- a/sql/12.15/sqlite_fdw.sql +++ b/sql/12.16/sqlite_fdw.sql @@ -18,6 +18,9 @@ CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIO --Testcase 136: CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; +-- updatable option test (github pull 59) +CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; + --Testcase 1: SELECT * FROM department LIMIT 10; --Testcase 2: @@ -611,6 +614,133 @@ SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'ba --Testcase 234: DELETE FROM case_exp; +-- updatable option test (github pull 59) +-- Full combinations +-- D-default, T-true, F-false +-- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF +-- SERVER default TABLE default +-- SERVER true TABLE default +-- SERVER false TABLE default +-- SERVER default TABLE true +-- SERVER default TABLE false +-- SERVER true TABLE true +-- SERVER false TABLE true +-- SERVER false TABLE false +-- SERVER true TABLE false +-- SERVER default TABLE default +--Testcase 235: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK +--Testcase 236: +UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK +--Testcase 237: +DELETE FROM RO_RW_test WHERE i=2; -- OK + +-- SERVER true TABLE default +--Testcase 238: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 239: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK +--Testcase 240: +UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK +--Testcase 241: +DELETE FROM RO_RW_test WHERE i=3; -- OK +--Testcase 242: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK +-- SERVER false TABLE default +--Testcase 243: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 244: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR +--Testcase 245: +UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR +--Testcase 246: +DELETE FROM RO_RW_test WHERE i=4; -- ERR + +-- SERVER default TABLE true +--Testcase 247: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 248: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); +--Testcase 249: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK +--Testcase 250: +UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK +--Testcase 251: +DELETE FROM RO_RW_test WHERE i=6; -- OK + +-- SERVER default TABLE false +--Testcase 252: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 253: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR +--Testcase 254: +UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR +--Testcase 255: +DELETE FROM RO_RW_test WHERE i=4; -- ERR + +-- SERVER true TABLE true +--Testcase 256: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 257: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); +--Testcase 258: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK +--Testcase 258: +UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK +--Testcase 260: +DELETE FROM RO_RW_test WHERE i=8; -- OK +--Testcase 261: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK + +-- SERVER false TABLE true +--Testcase 262: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 263: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK +--Testcase 264: +UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK +--Testcase 265: +DELETE FROM RO_RW_test WHERE i=9; -- OK + +-- SERVER false TABLE false +--Testcase 266: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 267: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR +--Testcase 268: +UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR +--Testcase 269: +DELETE FROM RO_RW_test WHERE i=9; -- ERR + +-- SERVER true TABLE false +--Testcase 270: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); +--Testcase 271: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR +--Testcase 272: +UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR +--Testcase 273: +DELETE FROM RO_RW_test WHERE i=9; -- ERR + +--Testcase 274: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 275: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); + +--Testcase 276: +SELECT * FROM RO_RW_test ORDER BY i; + +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); + +-- updatable option test (github pull 59) +DROP FOREIGN TABLE RO_RW_test; + --Testcase 142: DROP FUNCTION test_param_WHERE(); --Testcase 143: diff --git a/sql/12.15/type.sql b/sql/12.16/type.sql similarity index 100% rename from sql/12.15/type.sql rename to sql/12.16/type.sql diff --git a/sql/13.11/aggregate.sql b/sql/13.12/aggregate.sql similarity index 100% rename from sql/13.11/aggregate.sql rename to sql/13.12/aggregate.sql diff --git a/sql/13.11/extra/aggregates.sql b/sql/13.12/extra/aggregates.sql similarity index 100% rename from sql/13.11/extra/aggregates.sql rename to sql/13.12/extra/aggregates.sql diff --git a/sql/13.11/extra/encodings.sql b/sql/13.12/extra/encodings.sql similarity index 99% rename from sql/13.11/extra/encodings.sql rename to sql/13.12/extra/encodings.sql index 9db05943..63c19191 100644 --- a/sql/13.11/extra/encodings.sql +++ b/sql/13.12/extra/encodings.sql @@ -35,6 +35,18 @@ -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; + -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/sql/13.11/extra/float4.sql b/sql/13.12/extra/float4.sql similarity index 100% rename from sql/13.11/extra/float4.sql rename to sql/13.12/extra/float4.sql diff --git a/sql/13.11/extra/float8.sql b/sql/13.12/extra/float8.sql similarity index 100% rename from sql/13.11/extra/float8.sql rename to sql/13.12/extra/float8.sql diff --git a/sql/13.11/extra/insert.sql b/sql/13.12/extra/insert.sql similarity index 100% rename from sql/13.11/extra/insert.sql rename to sql/13.12/extra/insert.sql diff --git a/sql/13.11/extra/int4.sql b/sql/13.12/extra/int4.sql similarity index 100% rename from sql/13.11/extra/int4.sql rename to sql/13.12/extra/int4.sql diff --git a/sql/13.11/extra/int8.sql b/sql/13.12/extra/int8.sql similarity index 100% rename from sql/13.11/extra/int8.sql rename to sql/13.12/extra/int8.sql diff --git a/sql/13.11/extra/join.sql b/sql/13.12/extra/join.sql similarity index 100% rename from sql/13.11/extra/join.sql rename to sql/13.12/extra/join.sql diff --git a/sql/13.11/extra/limit.sql b/sql/13.12/extra/limit.sql similarity index 100% rename from sql/13.11/extra/limit.sql rename to sql/13.12/extra/limit.sql diff --git a/sql/13.11/extra/numeric.sql b/sql/13.12/extra/numeric.sql similarity index 100% rename from sql/13.11/extra/numeric.sql rename to sql/13.12/extra/numeric.sql diff --git a/sql/13.11/extra/prepare.sql b/sql/13.12/extra/prepare.sql similarity index 100% rename from sql/13.11/extra/prepare.sql rename to sql/13.12/extra/prepare.sql diff --git a/sql/13.11/extra/select.sql b/sql/13.12/extra/select.sql similarity index 100% rename from sql/13.11/extra/select.sql rename to sql/13.12/extra/select.sql diff --git a/sql/13.11/extra/select_having.sql b/sql/13.12/extra/select_having.sql similarity index 100% rename from sql/13.11/extra/select_having.sql rename to sql/13.12/extra/select_having.sql diff --git a/sql/13.11/extra/sqlite_fdw_post.sql b/sql/13.12/extra/sqlite_fdw_post.sql similarity index 100% rename from sql/13.11/extra/sqlite_fdw_post.sql rename to sql/13.12/extra/sqlite_fdw_post.sql diff --git a/sql/13.11/extra/timestamp.sql b/sql/13.12/extra/timestamp.sql similarity index 100% rename from sql/13.11/extra/timestamp.sql rename to sql/13.12/extra/timestamp.sql diff --git a/sql/13.11/extra/update.sql b/sql/13.12/extra/update.sql similarity index 100% rename from sql/13.11/extra/update.sql rename to sql/13.12/extra/update.sql diff --git a/sql/13.11/selectfunc.sql b/sql/13.12/selectfunc.sql similarity index 100% rename from sql/13.11/selectfunc.sql rename to sql/13.12/selectfunc.sql diff --git a/sql/13.11/sqlite_fdw.sql b/sql/13.12/sqlite_fdw.sql similarity index 81% rename from sql/13.11/sqlite_fdw.sql rename to sql/13.12/sqlite_fdw.sql index abad6560..7e781308 100644 --- a/sql/13.11/sqlite_fdw.sql +++ b/sql/13.12/sqlite_fdw.sql @@ -18,6 +18,9 @@ CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIO --Testcase 136: CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; +-- updatable option test (github pull 59) +CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; + --Testcase 1: SELECT * FROM department LIMIT 10; --Testcase 2: @@ -611,6 +614,133 @@ SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'ba --Testcase 234: DELETE FROM case_exp; +-- updatable option test (github pull 59) +-- Full combinations +-- D-default, T-true, F-false +-- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF +-- SERVER default TABLE default +-- SERVER true TABLE default +-- SERVER false TABLE default +-- SERVER default TABLE true +-- SERVER default TABLE false +-- SERVER true TABLE true +-- SERVER false TABLE true +-- SERVER false TABLE false +-- SERVER true TABLE false +-- SERVER default TABLE default +--Testcase 235: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK +--Testcase 236: +UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK +--Testcase 237: +DELETE FROM RO_RW_test WHERE i=2; -- OK + +-- SERVER true TABLE default +--Testcase 238: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 239: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK +--Testcase 240: +UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK +--Testcase 241: +DELETE FROM RO_RW_test WHERE i=3; -- OK +--Testcase 242: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK +-- SERVER false TABLE default +--Testcase 243: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 244: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR +--Testcase 245: +UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR +--Testcase 246: +DELETE FROM RO_RW_test WHERE i=4; -- ERR + +-- SERVER default TABLE true +--Testcase 247: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 248: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); +--Testcase 249: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK +--Testcase 250: +UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK +--Testcase 251: +DELETE FROM RO_RW_test WHERE i=6; -- OK + +-- SERVER default TABLE false +--Testcase 252: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 253: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR +--Testcase 254: +UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR +--Testcase 255: +DELETE FROM RO_RW_test WHERE i=4; -- ERR + +-- SERVER true TABLE true +--Testcase 256: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 257: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); +--Testcase 258: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK +--Testcase 258: +UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK +--Testcase 260: +DELETE FROM RO_RW_test WHERE i=8; -- OK +--Testcase 261: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK + +-- SERVER false TABLE true +--Testcase 262: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 263: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK +--Testcase 264: +UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK +--Testcase 265: +DELETE FROM RO_RW_test WHERE i=9; -- OK + +-- SERVER false TABLE false +--Testcase 266: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 267: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR +--Testcase 268: +UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR +--Testcase 269: +DELETE FROM RO_RW_test WHERE i=9; -- ERR + +-- SERVER true TABLE false +--Testcase 270: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); +--Testcase 271: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR +--Testcase 272: +UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR +--Testcase 273: +DELETE FROM RO_RW_test WHERE i=9; -- ERR + +--Testcase 274: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 275: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); + +--Testcase 276: +SELECT * FROM RO_RW_test ORDER BY i; + +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); + +-- updatable option test (github pull 59) +DROP FOREIGN TABLE RO_RW_test; + --Testcase 142: DROP FUNCTION test_param_WHERE(); --Testcase 143: diff --git a/sql/14.8/type.sql b/sql/13.12/type.sql similarity index 65% rename from sql/14.8/type.sql rename to sql/13.12/type.sql index c1310ab5..bf6d2c48 100644 --- a/sql/14.8/type.sql +++ b/sql/13.12/type.sql @@ -266,6 +266,208 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE IF EXISTS "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: diff --git a/sql/14.8/aggregate.sql b/sql/14.9/aggregate.sql similarity index 100% rename from sql/14.8/aggregate.sql rename to sql/14.9/aggregate.sql diff --git a/sql/14.8/extra/aggregates.sql b/sql/14.9/extra/aggregates.sql similarity index 100% rename from sql/14.8/extra/aggregates.sql rename to sql/14.9/extra/aggregates.sql diff --git a/sql/14.8/extra/encodings.sql b/sql/14.9/extra/encodings.sql similarity index 99% rename from sql/14.8/extra/encodings.sql rename to sql/14.9/extra/encodings.sql index 9db05943..63c19191 100644 --- a/sql/14.8/extra/encodings.sql +++ b/sql/14.9/extra/encodings.sql @@ -35,6 +35,18 @@ -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; + -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/sql/14.8/extra/float4.sql b/sql/14.9/extra/float4.sql similarity index 100% rename from sql/14.8/extra/float4.sql rename to sql/14.9/extra/float4.sql diff --git a/sql/14.8/extra/float8.sql b/sql/14.9/extra/float8.sql similarity index 100% rename from sql/14.8/extra/float8.sql rename to sql/14.9/extra/float8.sql diff --git a/sql/14.8/extra/insert.sql b/sql/14.9/extra/insert.sql similarity index 100% rename from sql/14.8/extra/insert.sql rename to sql/14.9/extra/insert.sql diff --git a/sql/14.8/extra/int4.sql b/sql/14.9/extra/int4.sql similarity index 100% rename from sql/14.8/extra/int4.sql rename to sql/14.9/extra/int4.sql diff --git a/sql/14.8/extra/int8.sql b/sql/14.9/extra/int8.sql similarity index 100% rename from sql/14.8/extra/int8.sql rename to sql/14.9/extra/int8.sql diff --git a/sql/14.8/extra/join.sql b/sql/14.9/extra/join.sql similarity index 100% rename from sql/14.8/extra/join.sql rename to sql/14.9/extra/join.sql diff --git a/sql/14.8/extra/limit.sql b/sql/14.9/extra/limit.sql similarity index 100% rename from sql/14.8/extra/limit.sql rename to sql/14.9/extra/limit.sql diff --git a/sql/14.8/extra/numeric.sql b/sql/14.9/extra/numeric.sql similarity index 100% rename from sql/14.8/extra/numeric.sql rename to sql/14.9/extra/numeric.sql diff --git a/sql/14.8/extra/prepare.sql b/sql/14.9/extra/prepare.sql similarity index 100% rename from sql/14.8/extra/prepare.sql rename to sql/14.9/extra/prepare.sql diff --git a/sql/14.8/extra/select.sql b/sql/14.9/extra/select.sql similarity index 100% rename from sql/14.8/extra/select.sql rename to sql/14.9/extra/select.sql diff --git a/sql/14.8/extra/select_having.sql b/sql/14.9/extra/select_having.sql similarity index 100% rename from sql/14.8/extra/select_having.sql rename to sql/14.9/extra/select_having.sql diff --git a/sql/14.8/extra/sqlite_fdw_post.sql b/sql/14.9/extra/sqlite_fdw_post.sql similarity index 100% rename from sql/14.8/extra/sqlite_fdw_post.sql rename to sql/14.9/extra/sqlite_fdw_post.sql diff --git a/sql/14.8/extra/timestamp.sql b/sql/14.9/extra/timestamp.sql similarity index 100% rename from sql/14.8/extra/timestamp.sql rename to sql/14.9/extra/timestamp.sql diff --git a/sql/14.8/extra/update.sql b/sql/14.9/extra/update.sql similarity index 100% rename from sql/14.8/extra/update.sql rename to sql/14.9/extra/update.sql diff --git a/sql/14.8/selectfunc.sql b/sql/14.9/selectfunc.sql similarity index 100% rename from sql/14.8/selectfunc.sql rename to sql/14.9/selectfunc.sql diff --git a/sql/14.9/sqlite_fdw.sql b/sql/14.9/sqlite_fdw.sql new file mode 100644 index 00000000..8b1fa77e --- /dev/null +++ b/sql/14.9/sqlite_fdw.sql @@ -0,0 +1,793 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 129: +CREATE EXTENSION sqlite_fdw; +--Testcase 130: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +--Testcase 131: +CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; +--Testcase 132: +CREATE FOREIGN TABLE employee(emp_id int OPTIONS (key 'true'), emp_name text, emp_dept_id int) SERVER sqlite_svr; +--Testcase 133: +CREATE FOREIGN TABLE empdata(emp_id int OPTIONS (key 'true'), emp_dat bytea) SERVER sqlite_svr; +--Testcase 134: +CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER sqlite_svr; +--Testcase 135: +CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; +--Testcase 136: +CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; + +-- updatable option test (github pull 59) +CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; + +--Testcase 1: +SELECT * FROM department LIMIT 10; +--Testcase 2: +SELECT * FROM employee LIMIT 10; +--Testcase 3: +SELECT * FROM empdata LIMIT 10; + +--Testcase 4: +INSERT INTO department VALUES(generate_series(1,100), 'dept - ' || generate_series(1,100)); +--Testcase 5: +INSERT INTO employee VALUES(generate_series(1,100), 'emp - ' || generate_series(1,100), generate_series(1,100)); +--Testcase 6: +INSERT INTO empdata VALUES(1, decode ('01234567', 'hex')); + +--Testcase 7: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 8: +INSERT INTO numbers VALUES(2, 'Two'); +--Testcase 9: +INSERT INTO numbers VALUES(3, 'Three'); +--Testcase 10: +INSERT INTO numbers VALUES(4, 'Four'); +--Testcase 11: +INSERT INTO numbers VALUES(5, 'Five'); +--Testcase 12: +INSERT INTO numbers VALUES(6, 'Six'); +--Testcase 13: +INSERT INTO numbers VALUES(7, 'Seven'); +--Testcase 14: +INSERT INTO numbers VALUES(8, 'Eight'); +--Testcase 15: +INSERT INTO numbers VALUES(9, 'Nine'); + +--Testcase 16: +SELECT count(*) FROM department; +--Testcase 17: +SELECT count(*) FROM employee; +--Testcase 18: +SELECT count(*) FROM empdata; + +--Testcase 19: +EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; + +--Testcase 20: +EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) LIMIT 10; + +--Testcase 21: +SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; +--Testcase 22: +SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) ORDER BY d.department_id LIMIT 10; +--Testcase 23: +SELECT * FROM empdata; + +--Testcase 24: +DELETE FROM employee WHERE emp_id = 10; + +--Testcase 25: +SELECT COUNT(*) FROM department LIMIT 10; +--Testcase 26: +SELECT COUNT(*) FROM employee WHERE emp_id = 10; + +--Testcase 27: +UPDATE employee SET emp_name = 'UPDATEd emp' WHERE emp_id = 20; +--Testcase 28: +SELECT emp_id, emp_name FROM employee WHERE emp_name like 'UPDATEd emp'; + +--Testcase 29: +UPDATE empdata SET emp_dat = decode ('0123', 'hex'); +--Testcase 30: +SELECT * FROM empdata; + +--Testcase 31: +SELECT * FROM employee LIMIT 10; +--Testcase 32: +SELECT * FROM employee WHERE emp_id IN (1); +--Testcase 33: +SELECT * FROM employee WHERE emp_id IN (1,3,4,5); +--Testcase 34: +SELECT * FROM employee WHERE emp_id IN (10000,1000); + +--Testcase 35: +SELECT * FROM employee WHERE emp_id NOT IN (1) LIMIT 5; +--Testcase 36: +SELECT * FROM employee WHERE emp_id NOT IN (1,3,4,5) LIMIT 5; +--Testcase 37: +SELECT * FROM employee WHERE emp_id NOT IN (10000,1000) LIMIT 5; + +--Testcase 38: +SELECT * FROM employee WHERE emp_id NOT IN (SELECT emp_id FROM employee WHERE emp_id IN (1,10)); +--Testcase 39: +SELECT * FROM employee WHERE emp_name NOT IN ('emp - 1', 'emp - 2') LIMIT 5; +--Testcase 40: +SELECT * FROM employee WHERE emp_name NOT IN ('emp - 10') LIMIT 5; + +--Testcase 41: +SELECT * FROM numbers WHERE (CASE WHEN a % 2 = 0 THEN 1 WHEN a % 5 = 0 THEN 1 ELSE 0 END) = 1; +--Testcase 42: +SELECT * FROM numbers WHERE (CASE b WHEN 'Two' THEN 1 WHEN 'Six' THEN 1 ELSE 0 END) = 1; + +--Testcase 152: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE (round(abs(a)) = 1); +--Testcase 153: +SELECT * FROM numbers WHERE (round(abs(a)) = 1); + +--Testcase 137: +create or replace function test_param_WHERE() returns void as $$ +DECLARE + n varchar; +BEGIN + FOR x IN 1..9 LOOP +--Testcase 138: + SELECT b INTO n from numbers WHERE a=x; + raise notice 'Found number %', n; + end loop; + return; +END +$$ LANGUAGE plpgsql; +--Testcase 43: +SELECT test_param_WHERE(); + +--Testcase 44: +SELECT b from numbers WHERE a=1; +--Testcase 45: +EXPLAIN(COSTS OFF) SELECT b from numbers WHERE a=1; + +--Testcase 46: +SELECT a FROM numbers WHERE b = (SELECT NULL::text); + + +--Testcase 47: +PREPARE stmt1 (int, int) AS + SELECT * FROM numbers WHERE a=$1 or a=$2; +--Testcase 48: +EXECUTE stmt1(1,2); +--Testcase 49: +EXECUTE stmt1(2,2); +--Testcase 50: +EXECUTE stmt1(3,2); +--Testcase 51: +EXECUTE stmt1(4,2); +-- generic plan +--Testcase 52: +EXECUTE stmt1(5,2); +--Testcase 53: +EXECUTE stmt1(6,2); +--Testcase 54: +EXECUTE stmt1(7,2); + +--Testcase 55: +DELETE FROM employee; +--Testcase 56: +DELETE FROM department; +--Testcase 57: +DELETE FROM empdata; +--Testcase 58: +DELETE FROM numbers; + +BEGIN; +--Testcase 59: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 60: +INSERT INTO numbers VALUES(2, 'Two'); +COMMIT; + +--Testcase 61: +SELECT * from numbers; + +BEGIN; +--Testcase 62: +INSERT INTO numbers VALUES(3, 'Three'); +ROLLBACK; +--Testcase 63: +SELECT * from numbers; + +BEGIN; +--Testcase 64: +INSERT INTO numbers VALUES(4, 'Four'); +SAVEPOINT my_savepoint; +--Testcase 65: +INSERT INTO numbers VALUES(5, 'Five'); +ROLLBACK TO SAVEPOINT my_savepoint; +--Testcase 66: +INSERT INTO numbers VALUES(6, 'Six'); +COMMIT; + +--Testcase 67: +SELECT * from numbers; + +-- duplicate key +--Testcase 68: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 69: +DELETE from numbers; + +BEGIN; +--Testcase 70: +INSERT INTO numbers VALUES(1, 'One'); +--Testcase 71: +INSERT INTO numbers VALUES(2, 'Two'); +COMMIT; +-- violate unique constraint +--Testcase 72: +UPDATE numbers SET b='Two' WHERE a = 1; +--Testcase 73: +SELECT * from numbers; + +-- push down +--Testcase 74: +explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); +-- (1,2,3) is pushed down +--Testcase 75: +explain (verbose, costs off) SELECT * from numbers WHERE a in (1,2,3) AND (1,2) < (a,5); + +--Testcase 76: +explain (verbose, costs off) SELECT * from numbers WHERE a in (a+2*a,5); + +--Testcase 77: +explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); + +--Testcase 78: +SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); +--Testcase 79: +SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); + +-- ANY with ARRAY expression +--Testcase 154: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); +--Testcase 155: +SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); + +--Testcase 156: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); +--Testcase 157: +SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); + +--Testcase 158: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); +--Testcase 159: +SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); + +--Testcase 160: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); +--Testcase 161: +SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); + +--Testcase 162: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); +--Testcase 163: +SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); + +--Testcase 164: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); +--Testcase 165: +SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); + +-- ANY with ARRAY const +--Testcase 166: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); +--Testcase 167: +SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); + +--Testcase 168: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); +--Testcase 169: +SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); + +--Testcase 170: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); +--Testcase 171: +SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); + +--Testcase 172: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); +--Testcase 173: +SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); + +--Testcase 174: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); +--Testcase 175: +SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); + +--Testcase 176: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); +--Testcase 177: +SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); + +--Testcase 210: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); +--Testcase 211: +SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); + +--Testcase 212: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); +--Testcase 213: +SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); + +-- ALL with ARRAY expression +--Testcase 178: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); +--Testcase 179: +SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); + +--Testcase 180: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); +--Testcase 181: +SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); + +--Testcase 182: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); +--Testcase 183: +SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); + +--Testcase 184: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); +--Testcase 185: +SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); + +--Testcase 186: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); +--Testcase 187: +SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); + +--Testcase 188: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); +--Testcase 189: +SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); + +-- ALL with ARRAY const +--Testcase 190: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); +--Testcase 191: +SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); + +--Testcase 192: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); +--Testcase 193: +SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); + +--Testcase 194: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); +--Testcase 195: +SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); + +--Testcase 196: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); +--Testcase 197: +SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); + +--Testcase 198: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); +--Testcase 199: +SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); + +--Testcase 200: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); +--Testcase 201: +SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); + +-- ANY/ALL with TEXT ARRAY const +--Testcase 202: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); +--Testcase 203: +SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); + +--Testcase 204: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); +--Testcase 205: +SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); + +--Testcase 206: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); +--Testcase 207: +SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); + +--Testcase 208: +EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); +--Testcase 209: +SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); + +--Testcase 80: +INSERT INTO multiprimary VALUES(1,2,3); +--Testcase 81: +INSERT INTO multiprimary VALUES(1,2,4); +--Testcase 82: +UPDATE multiprimary SET b = 10 WHERE c = 3; +--Testcase 83: +SELECT * from multiprimary; +--Testcase 84: +UPDATE multiprimary SET a = 10 WHERE a = 1; +--Testcase 85: +SELECT * from multiprimary; +--Testcase 86: +UPDATE multiprimary SET a = 100, b=200, c=300 WHERE a=10 AND b=10; +--Testcase 87: +SELECT * from multiprimary; +--Testcase 88: +UPDATE multiprimary SET a = 1234; +--Testcase 89: +SELECT * from multiprimary; +--Testcase 90: +UPDATE multiprimary SET a = a+1, b=b+1 WHERE b=200 AND c=300; + +--Testcase 91: +SELECT * from multiprimary; +--Testcase 92: +DELETE from multiprimary WHERE a = 1235; +--Testcase 93: +SELECT * from multiprimary; +--Testcase 94: +DELETE from multiprimary WHERE b = 2; +--Testcase 95: +SELECT * from multiprimary; + +--Testcase 96: +INSERT INTO multiprimary VALUES(1,2,3); +--Testcase 97: +INSERT INTO multiprimary VALUES(1,2,4); +--Testcase 98: +INSERT INTO multiprimary VALUES(1,10,20); +--Testcase 99: +INSERT INTO multiprimary VALUES(2,20,40); + + + +--Testcase 100: +SELECT count(distinct a) from multiprimary; +--Testcase 101: +SELECT sum(b),max(b), min(b) from multiprimary; +--Testcase 102: +SELECT sum(b+5)+2 from multiprimary group by b/2 order by b/2; +--Testcase 103: +SELECT sum(a) from multiprimary group by b having sum(a) > 0 order by sum(a); +--Testcase 104: +SELECT sum(a) A from multiprimary group by b having avg(abs(a)) > 0 AND sum(a) > 0 order by A; +--Testcase 105: +SELECT count(nullif(a, 1)) FROM multiprimary; +--Testcase 106: +SELECT a,a FROM multiprimary group by 1,2; +--Testcase 107: +SELECT * from multiprimary, numbers WHERE multiprimary.a=numbers.a; + +--Testcase 108: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; +--Testcase 109: +SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; + +--Testcase 110: +INSERT INTO numbers VALUES(4, 'Four'); + +-- All where clauses are pushed down +--Testcase 111: +SELECT * FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; +--Testcase 112: +EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; + +-- Only "length(b) = 4" are pushed down +--Testcase 113: +SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; +--Testcase 114: +EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; + +--Testcase 115: +INSERT INTO multiprimary (b,c) VALUES (99, 100); +--Testcase 116: +SELECT c FROM multiprimary WHERE COALESCE(a,b,c) = 99; + + +--Testcase 139: +CREATE FOREIGN TABLE multiprimary2(a int, b int, c int OPTIONS(column_name 'b')) SERVER sqlite_svr OPTIONS (table 'multiprimary'); +--Testcase 117: +SELECT * FROM multiprimary2; +--Testcase 214: +ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN a OPTIONS(ADD column_name 'b'); +--Testcase 118: +SELECT * FROM multiprimary2; +--Testcase 215: +ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN b OPTIONS (column_name 'nosuch column'); +--Testcase 119: +SELECT * FROM multiprimary2; +--Testcase 140: +EXPLAIN (VERBOSE) SELECT * FROM multiprimary2; +--Testcase 120: +SELECT a FROM multiprimary2 WHERE b = 1; + + +--Testcase 141: +CREATE FOREIGN TABLE columntest(a int OPTIONS(column_name 'a a', key 'true'), "b b" int OPTIONS(key 'true'), c int OPTIONS(column_name 'c c')) SERVER sqlite_svr; +--Testcase 121: +INSERT INTO columntest VALUES(1,2,3); +--Testcase 122: +UPDATE columntest SET c=10 WHERE a = 1; +--Testcase 123: +SELECT * FROM columntest; +--Testcase 124: +UPDATE columntest SET a=100 WHERE c = 10; +--Testcase 125: +SELECT * FROM columntest; +--Testcase 126: +INSERT INTO noprimary VALUES(1,'2'); +--Testcase 127: +INSERT INTO noprimary SELECT * FROM noprimary; +--Testcase 128: +SELECT * FROM noprimary; + +--get version +--Testcase 153: +\df sqlite* +--Testcase 154: +SELECT * FROM public.sqlite_fdw_version(); +--Testcase 155: +SELECT sqlite_fdw_version(); + +-- issue #44 github +--Testcase 156: +CREATE FOREIGN TABLE fts_table (name text, description text) SERVER sqlite_svr; + +--Testcase 157: +INSERT INTO fts_table VALUES ('this is name', 'this is description'); + +--Testcase 158: +SELECT * FROM fts_table; -- should work + +--Testcase 159: +ALTER TABLE fts_table ALTER COLUMN name TYPE int; + +--Testcase 160: +SELECT * FROM fts_table; -- should fail + +-- issue #62 github +--Testcase 236: +INSERT INTO noprimary VALUES (4, 'Test''s'); +--Testcase 237: +INSERT INTO noprimary VALUES (5, 'Test'); + +--Testcase 238: +SELECT * FROM noprimary; +--Testcase 239: +EXPLAIN VERBOSE +SELECT * FROM noprimary where b = 'Test''s'; +--Testcase 240: +SELECT * FROM noprimary where b = 'Test''s'; + +--Testcase 241: +EXPLAIN VERBOSE +SELECT * FROM noprimary where b in ('Test''s', 'Test'); +--Testcase 242: +SELECT * FROM noprimary where b in ('Test''s', 'Test'); + +-- INSERT/UPDATE whole row with generated column +--Testcase 216: +CREATE FOREIGN TABLE grem1_1 ( + a int generated always as (0) stored) + SERVER sqlite_svr OPTIONS(table 'grem1_1'); + +--Testcase 217: +INSERT INTO grem1_1 DEFAULT VALUES; +--Testcase 218: +SELECT * FROM grem1_1; + +--Testcase 219: +CREATE FOREIGN TABLE grem1_2 ( + a int generated always as (0) stored, + b int generated always as (1) stored, + c int generated always as (2) stored, + d int generated always as (3) stored) + SERVER sqlite_svr OPTIONS(table 'grem1_2'); +--Testcase 220: +INSERT INTO grem1_2 DEFAULT VALUES; +--Testcase 221: +SELECT * FROM grem1_2; + +-- Executable test case for pushdown CASE expressions (results) +--Testcase 224: +CREATE FOREIGN TABLE case_exp(c1 int OPTIONS (key 'true'), c3 text, c6 varchar(10)) SERVER sqlite_svr; + +--Testcase 225: +INSERT INTO case_exp + SELECT id, + to_char(id, 'FM00000'), + id % 10 + FROM generate_series(1, 10) id; + +--Testcase 226: +SELECT * FROM case_exp; + +-- CASE arg WHEN +--Testcase 227: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); +--Testcase 228: +SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); + +-- these are shippable +--Testcase 229: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; +--Testcase 230: +SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; +--Testcase 231: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; +--Testcase 232: +SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; + +-- but this is not because of collation +--Testcase 233: +SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'bar' END; + +--Testcase 234: +DELETE FROM case_exp; + +-- updatable option test (github pull 59) +-- Full combinations +-- D-default, T-true, F-false +-- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF +-- SERVER default TABLE default +-- SERVER true TABLE default +-- SERVER false TABLE default +-- SERVER default TABLE true +-- SERVER default TABLE false +-- SERVER true TABLE true +-- SERVER false TABLE true +-- SERVER false TABLE false +-- SERVER true TABLE false +-- SERVER default TABLE default +--Testcase 235: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK +--Testcase 236: +UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK +--Testcase 237: +DELETE FROM RO_RW_test WHERE i=2; -- OK + +-- SERVER true TABLE default +--Testcase 238: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 239: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK +--Testcase 240: +UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK +--Testcase 241: +DELETE FROM RO_RW_test WHERE i=3; -- OK +--Testcase 242: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK +-- SERVER false TABLE default +--Testcase 243: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 244: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR +--Testcase 245: +UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR +--Testcase 246: +DELETE FROM RO_RW_test WHERE i=4; -- ERR + +-- SERVER default TABLE true +--Testcase 247: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 248: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); +--Testcase 249: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK +--Testcase 250: +UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK +--Testcase 251: +DELETE FROM RO_RW_test WHERE i=6; -- OK + +-- SERVER default TABLE false +--Testcase 252: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 253: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR +--Testcase 254: +UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR +--Testcase 255: +DELETE FROM RO_RW_test WHERE i=4; -- ERR + +-- SERVER true TABLE true +--Testcase 256: +ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); +--Testcase 257: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); +--Testcase 258: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK +--Testcase 258: +UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK +--Testcase 260: +DELETE FROM RO_RW_test WHERE i=8; -- OK +--Testcase 261: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK + +-- SERVER false TABLE true +--Testcase 262: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); +--Testcase 263: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK +--Testcase 264: +UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK +--Testcase 265: +DELETE FROM RO_RW_test WHERE i=9; -- OK + +-- SERVER false TABLE false +--Testcase 266: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); +--Testcase 267: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR +--Testcase 268: +UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR +--Testcase 269: +DELETE FROM RO_RW_test WHERE i=9; -- ERR + +-- SERVER true TABLE false +--Testcase 270: +ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); +--Testcase 271: +INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR +--Testcase 272: +UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR +--Testcase 273: +DELETE FROM RO_RW_test WHERE i=9; -- ERR + +--Testcase 274: +ALTER SERVER sqlite_svr OPTIONS (DROP updatable); +--Testcase 275: +ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); + +--Testcase 276: +SELECT * FROM RO_RW_test ORDER BY i; + +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); + +-- updatable option test (github pull 59) +DROP FOREIGN TABLE RO_RW_test; + +--Testcase 142: +DROP FUNCTION test_param_WHERE(); +--Testcase 143: +DROP FOREIGN TABLE numbers; +--Testcase 144: +DROP FOREIGN TABLE department; +--Testcase 145: +DROP FOREIGN TABLE employee; +--Testcase 146: +DROP FOREIGN TABLE empdata; +--Testcase 147: +DROP FOREIGN TABLE multiprimary; +--Testcase 148: +DROP FOREIGN TABLE multiprimary2; +--Testcase 149: +DROP FOREIGN TABLE columntest; +--Testcase 150: +DROP FOREIGN TABLE noprimary; +--Testcase 161: +DROP FOREIGN TABLE fts_table; +--Testcase 222: +DROP FOREIGN TABLE grem1_1; +--Testcase 223: +DROP FOREIGN TABLE grem1_2; +--Testcase 235: +DROP FOREIGN TABLE case_exp; + +--Testcase 151: +DROP SERVER sqlite_svr; +--Testcase 152: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.3/type.sql b/sql/14.9/type.sql similarity index 65% rename from sql/15.3/type.sql rename to sql/14.9/type.sql index c1310ab5..bf6d2c48 100644 --- a/sql/15.3/type.sql +++ b/sql/14.9/type.sql @@ -266,6 +266,208 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE IF EXISTS "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: diff --git a/sql/15.3/sqlite_fdw.sql b/sql/15.3/sqlite_fdw.sql deleted file mode 100644 index a027a841..00000000 --- a/sql/15.3/sqlite_fdw.sql +++ /dev/null @@ -1,4391 +0,0 @@ ---SET log_min_messages TO DEBUG1; ---SET client_min_messages TO DEBUG1; ---Testcase 129: -CREATE EXTENSION sqlite_fdw; ---Testcase 130: -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 131: -CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; ---Testcase 132: -CREATE FOREIGN TABLE employee(emp_id int OPTIONS (key 'true'), emp_name text, emp_dept_id int) SERVER sqlite_svr; ---Testcase 133: -CREATE FOREIGN TABLE empdata(emp_id int OPTIONS (key 'true'), emp_dat bytea) SERVER sqlite_svr; ---Testcase 134: -CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER sqlite_svr; ---Testcase 135: -CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; ---Testcase 136: -CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; - --- updatable option test (github pull 59) -CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; - ---Testcase 1: -SELECT * FROM department LIMIT 10; ---Testcase 2: -SELECT * FROM employee LIMIT 10; ---Testcase 3: -SELECT * FROM empdata LIMIT 10; - ---Testcase 4: -INSERT INTO department VALUES(generate_series(1,100), 'dept - ' || generate_series(1,100)); ---Testcase 5: -INSERT INTO employee VALUES(generate_series(1,100), 'emp - ' || generate_series(1,100), generate_series(1,100)); ---Testcase 6: -INSERT INTO empdata VALUES(1, decode ('01234567', 'hex')); - ---Testcase 7: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 8: -INSERT INTO numbers VALUES(2, 'Two'); ---Testcase 9: -INSERT INTO numbers VALUES(3, 'Three'); ---Testcase 10: -INSERT INTO numbers VALUES(4, 'Four'); ---Testcase 11: -INSERT INTO numbers VALUES(5, 'Five'); ---Testcase 12: -INSERT INTO numbers VALUES(6, 'Six'); ---Testcase 13: -INSERT INTO numbers VALUES(7, 'Seven'); ---Testcase 14: -INSERT INTO numbers VALUES(8, 'Eight'); ---Testcase 15: -INSERT INTO numbers VALUES(9, 'Nine'); - ---Testcase 16: -SELECT count(*) FROM department; ---Testcase 17: -SELECT count(*) FROM employee; ---Testcase 18: -SELECT count(*) FROM empdata; - ---Testcase 19: -EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; - ---Testcase 20: -EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) LIMIT 10; - ---Testcase 21: -SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; ---Testcase 22: -SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) ORDER BY d.department_id LIMIT 10; ---Testcase 23: -SELECT * FROM empdata; - ---Testcase 24: -DELETE FROM employee WHERE emp_id = 10; - ---Testcase 25: -SELECT COUNT(*) FROM department LIMIT 10; ---Testcase 26: -SELECT COUNT(*) FROM employee WHERE emp_id = 10; - ---Testcase 27: -UPDATE employee SET emp_name = 'UPDATEd emp' WHERE emp_id = 20; ---Testcase 28: -SELECT emp_id, emp_name FROM employee WHERE emp_name like 'UPDATEd emp'; - ---Testcase 29: -UPDATE empdata SET emp_dat = decode ('0123', 'hex'); ---Testcase 30: -SELECT * FROM empdata; - ---Testcase 31: -SELECT * FROM employee LIMIT 10; ---Testcase 32: -SELECT * FROM employee WHERE emp_id IN (1); ---Testcase 33: -SELECT * FROM employee WHERE emp_id IN (1,3,4,5); ---Testcase 34: -SELECT * FROM employee WHERE emp_id IN (10000,1000); - ---Testcase 35: -SELECT * FROM employee WHERE emp_id NOT IN (1) LIMIT 5; ---Testcase 36: -SELECT * FROM employee WHERE emp_id NOT IN (1,3,4,5) LIMIT 5; ---Testcase 37: -SELECT * FROM employee WHERE emp_id NOT IN (10000,1000) LIMIT 5; - ---Testcase 38: -SELECT * FROM employee WHERE emp_id NOT IN (SELECT emp_id FROM employee WHERE emp_id IN (1,10)); ---Testcase 39: -SELECT * FROM employee WHERE emp_name NOT IN ('emp - 1', 'emp - 2') LIMIT 5; ---Testcase 40: -SELECT * FROM employee WHERE emp_name NOT IN ('emp - 10') LIMIT 5; - ---Testcase 41: -SELECT * FROM numbers WHERE (CASE WHEN a % 2 = 0 THEN 1 WHEN a % 5 = 0 THEN 1 ELSE 0 END) = 1; ---Testcase 42: -SELECT * FROM numbers WHERE (CASE b WHEN 'Two' THEN 1 WHEN 'Six' THEN 1 ELSE 0 END) = 1; - ---Testcase 152: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE (round(abs(a)) = 1); ---Testcase 153: -SELECT * FROM numbers WHERE (round(abs(a)) = 1); - ---Testcase 137: -create or replace function test_param_WHERE() returns void as $$ -DECLARE - n varchar; -BEGIN - FOR x IN 1..9 LOOP ---Testcase 138: - SELECT b INTO n from numbers WHERE a=x; - raise notice 'Found number %', n; - end loop; - return; -END -$$ LANGUAGE plpgsql; ---Testcase 43: -SELECT test_param_WHERE(); - ---Testcase 44: -SELECT b from numbers WHERE a=1; ---Testcase 45: -EXPLAIN(COSTS OFF) SELECT b from numbers WHERE a=1; - ---Testcase 46: -SELECT a FROM numbers WHERE b = (SELECT NULL::text); - - ---Testcase 47: -PREPARE stmt1 (int, int) AS - SELECT * FROM numbers WHERE a=$1 or a=$2; ---Testcase 48: -EXECUTE stmt1(1,2); ---Testcase 49: -EXECUTE stmt1(2,2); ---Testcase 50: -EXECUTE stmt1(3,2); ---Testcase 51: -EXECUTE stmt1(4,2); --- generic plan ---Testcase 52: -EXECUTE stmt1(5,2); ---Testcase 53: -EXECUTE stmt1(6,2); ---Testcase 54: -EXECUTE stmt1(7,2); - ---Testcase 55: -DELETE FROM employee; ---Testcase 56: -DELETE FROM department; ---Testcase 57: -DELETE FROM empdata; ---Testcase 58: -DELETE FROM numbers; - -BEGIN; ---Testcase 59: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 60: -INSERT INTO numbers VALUES(2, 'Two'); -COMMIT; - ---Testcase 61: -SELECT * from numbers; - -BEGIN; ---Testcase 62: -INSERT INTO numbers VALUES(3, 'Three'); -ROLLBACK; ---Testcase 63: -SELECT * from numbers; - -BEGIN; ---Testcase 64: -INSERT INTO numbers VALUES(4, 'Four'); -SAVEPOINT my_savepoint; ---Testcase 65: -INSERT INTO numbers VALUES(5, 'Five'); -ROLLBACK TO SAVEPOINT my_savepoint; ---Testcase 66: -INSERT INTO numbers VALUES(6, 'Six'); -COMMIT; - ---Testcase 67: -SELECT * from numbers; - --- duplicate key ---Testcase 68: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 69: -DELETE from numbers; - -BEGIN; ---Testcase 70: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 71: -INSERT INTO numbers VALUES(2, 'Two'); -COMMIT; --- violate unique constraint ---Testcase 72: -UPDATE numbers SET b='Two' WHERE a = 1; ---Testcase 73: -SELECT * from numbers; - --- push down ---Testcase 74: -explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); --- (1,2,3) is pushed down ---Testcase 75: -explain (verbose, costs off) SELECT * from numbers WHERE a in (1,2,3) AND (1,2) < (a,5); - ---Testcase 76: -explain (verbose, costs off) SELECT * from numbers WHERE a in (a+2*a,5); - ---Testcase 77: -explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); - ---Testcase 78: -SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); ---Testcase 79: -SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); - --- ANY with ARRAY expression ---Testcase 154: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); ---Testcase 155: -SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); - ---Testcase 156: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); ---Testcase 157: -SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); - ---Testcase 158: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); ---Testcase 159: -SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); - ---Testcase 160: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); ---Testcase 161: -SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); - ---Testcase 162: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); ---Testcase 163: -SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); - ---Testcase 164: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); ---Testcase 165: -SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); - --- ANY with ARRAY const ---Testcase 166: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); ---Testcase 167: -SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); - ---Testcase 168: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); ---Testcase 169: -SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); - ---Testcase 170: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); ---Testcase 171: -SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); - ---Testcase 172: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); ---Testcase 173: -SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); - ---Testcase 174: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); ---Testcase 175: -SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); - ---Testcase 176: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); ---Testcase 177: -SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); - ---Testcase 210: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); ---Testcase 211: -SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); - ---Testcase 212: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); ---Testcase 213: -SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); - --- ALL with ARRAY expression ---Testcase 178: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); ---Testcase 179: -SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); - ---Testcase 180: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); ---Testcase 181: -SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); - ---Testcase 182: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); ---Testcase 183: -SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); - ---Testcase 184: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); ---Testcase 185: -SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); - ---Testcase 186: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); ---Testcase 187: -SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); - ---Testcase 188: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); ---Testcase 189: -SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); - --- ALL with ARRAY const ---Testcase 190: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); ---Testcase 191: -SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); - ---Testcase 192: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); ---Testcase 193: -SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); - ---Testcase 194: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); ---Testcase 195: -SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); - ---Testcase 196: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); ---Testcase 197: -SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); - ---Testcase 198: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); ---Testcase 199: -SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); - ---Testcase 200: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); ---Testcase 201: -SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); - --- ANY/ALL with TEXT ARRAY const ---Testcase 202: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); ---Testcase 203: -SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); - ---Testcase 204: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); ---Testcase 205: -SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); - ---Testcase 206: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); ---Testcase 207: -SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); - ---Testcase 208: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); ---Testcase 209: -SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); - ---Testcase 80: -INSERT INTO multiprimary VALUES(1,2,3); ---Testcase 81: -INSERT INTO multiprimary VALUES(1,2,4); ---Testcase 82: -UPDATE multiprimary SET b = 10 WHERE c = 3; ---Testcase 83: -SELECT * from multiprimary; ---Testcase 84: -UPDATE multiprimary SET a = 10 WHERE a = 1; ---Testcase 85: -SELECT * from multiprimary; ---Testcase 86: -UPDATE multiprimary SET a = 100, b=200, c=300 WHERE a=10 AND b=10; ---Testcase 87: -SELECT * from multiprimary; ---Testcase 88: -UPDATE multiprimary SET a = 1234; ---Testcase 89: -SELECT * from multiprimary; ---Testcase 90: -UPDATE multiprimary SET a = a+1, b=b+1 WHERE b=200 AND c=300; - ---Testcase 91: -SELECT * from multiprimary; ---Testcase 92: -DELETE from multiprimary WHERE a = 1235; ---Testcase 93: -SELECT * from multiprimary; ---Testcase 94: -DELETE from multiprimary WHERE b = 2; ---Testcase 95: -SELECT * from multiprimary; - ---Testcase 96: -INSERT INTO multiprimary VALUES(1,2,3); ---Testcase 97: -INSERT INTO multiprimary VALUES(1,2,4); ---Testcase 98: -INSERT INTO multiprimary VALUES(1,10,20); ---Testcase 99: -INSERT INTO multiprimary VALUES(2,20,40); - - - ---Testcase 100: -SELECT count(distinct a) from multiprimary; ---Testcase 101: -SELECT sum(b),max(b), min(b) from multiprimary; ---Testcase 102: -SELECT sum(b+5)+2 from multiprimary group by b/2 order by b/2; ---Testcase 103: -SELECT sum(a) from multiprimary group by b having sum(a) > 0 order by sum(a); ---Testcase 104: -SELECT sum(a) A from multiprimary group by b having avg(abs(a)) > 0 AND sum(a) > 0 order by A; ---Testcase 105: -SELECT count(nullif(a, 1)) FROM multiprimary; ---Testcase 106: -SELECT a,a FROM multiprimary group by 1,2; ---Testcase 107: -SELECT * from multiprimary, numbers WHERE multiprimary.a=numbers.a; - ---Testcase 108: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; ---Testcase 109: -SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; - ---Testcase 110: -INSERT INTO numbers VALUES(4, 'Four'); - --- All where clauses are pushed down ---Testcase 111: -SELECT * FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; ---Testcase 112: -EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; - --- Only "length(b) = 4" are pushed down ---Testcase 113: -SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; ---Testcase 114: -EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; - ---Testcase 115: -INSERT INTO multiprimary (b,c) VALUES (99, 100); ---Testcase 116: -SELECT c FROM multiprimary WHERE COALESCE(a,b,c) = 99; - - ---Testcase 139: -CREATE FOREIGN TABLE multiprimary2(a int, b int, c int OPTIONS(column_name 'b')) SERVER sqlite_svr OPTIONS (table 'multiprimary'); ---Testcase 117: -SELECT * FROM multiprimary2; ---Testcase 214: -ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN a OPTIONS(ADD column_name 'b'); ---Testcase 118: -SELECT * FROM multiprimary2; ---Testcase 215: -ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN b OPTIONS (column_name 'nosuch column'); ---Testcase 119: -SELECT * FROM multiprimary2; ---Testcase 140: -EXPLAIN (VERBOSE) SELECT * FROM multiprimary2; ---Testcase 120: -SELECT a FROM multiprimary2 WHERE b = 1; - - ---Testcase 141: -CREATE FOREIGN TABLE columntest(a int OPTIONS(column_name 'a a', key 'true'), "b b" int OPTIONS(key 'true'), c int OPTIONS(column_name 'c c')) SERVER sqlite_svr; ---Testcase 121: -INSERT INTO columntest VALUES(1,2,3); ---Testcase 122: -UPDATE columntest SET c=10 WHERE a = 1; ---Testcase 123: -SELECT * FROM columntest; ---Testcase 124: -UPDATE columntest SET a=100 WHERE c = 10; ---Testcase 125: -SELECT * FROM columntest; ---Testcase 126: -INSERT INTO noprimary VALUES(1,'2'); ---Testcase 127: -INSERT INTO noprimary SELECT * FROM noprimary; ---Testcase 128: -SELECT * FROM noprimary; - ---get version ---Testcase 153: -\df sqlite* ---Testcase 154: -SELECT * FROM public.sqlite_fdw_version(); ---Testcase 155: -SELECT sqlite_fdw_version(); - --- issue #44 github ---Testcase 156: -CREATE FOREIGN TABLE fts_table (name text, description text) SERVER sqlite_svr; - ---Testcase 157: -INSERT INTO fts_table VALUES ('this is name', 'this is description'); - ---Testcase 158: -SELECT * FROM fts_table; -- should work - ---Testcase 159: -ALTER TABLE fts_table ALTER COLUMN name TYPE int; - ---Testcase 160: -SELECT * FROM fts_table; -- should fail - --- issue #62 github ---Testcase 236: -INSERT INTO noprimary VALUES (4, 'Test''s'); ---Testcase 237: -INSERT INTO noprimary VALUES (5, 'Test'); - ---Testcase 238: -SELECT * FROM noprimary; ---Testcase 239: -EXPLAIN VERBOSE -SELECT * FROM noprimary where b = 'Test''s'; ---Testcase 240: -SELECT * FROM noprimary where b = 'Test''s'; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT * FROM noprimary where b in ('Test''s', 'Test'); ---Testcase 242: -SELECT * FROM noprimary where b in ('Test''s', 'Test'); - --- INSERT/UPDATE whole row with generated column ---Testcase 216: -CREATE FOREIGN TABLE grem1_1 ( - a int generated always as (0) stored) - SERVER sqlite_svr OPTIONS(table 'grem1_1'); - ---Testcase 217: -INSERT INTO grem1_1 DEFAULT VALUES; ---Testcase 218: -SELECT * FROM grem1_1; - ---Testcase 219: -CREATE FOREIGN TABLE grem1_2 ( - a int generated always as (0) stored, - b int generated always as (1) stored, - c int generated always as (2) stored, - d int generated always as (3) stored) - SERVER sqlite_svr OPTIONS(table 'grem1_2'); ---Testcase 220: -INSERT INTO grem1_2 DEFAULT VALUES; ---Testcase 221: -SELECT * FROM grem1_2; - --- Executable test case for pushdown CASE expressions (results) ---Testcase 224: -CREATE FOREIGN TABLE case_exp(c1 int OPTIONS (key 'true'), c3 text, c6 varchar(10)) SERVER sqlite_svr; - ---Testcase 225: -INSERT INTO case_exp - SELECT id, - to_char(id, 'FM00000'), - id % 10 - FROM generate_series(1, 10) id; - ---Testcase 226: -SELECT * FROM case_exp; - --- CASE arg WHEN ---Testcase 227: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); ---Testcase 228: -SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); - --- these are shippable ---Testcase 229: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; ---Testcase 230: -SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; ---Testcase 231: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; ---Testcase 232: -SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; - --- but this is not because of collation ---Testcase 233: -SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'bar' END; - ---Testcase 234: -DELETE FROM case_exp; - --- updatable option test (github pull 59) --- Full combinations --- D-default, T-true, F-false --- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF --- SERVER default TABLE default --- SERVER true TABLE default --- SERVER false TABLE default --- SERVER default TABLE true --- SERVER default TABLE false --- SERVER true TABLE true --- SERVER false TABLE true --- SERVER false TABLE false --- SERVER true TABLE false --- SERVER default TABLE default ---Testcase 235: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK ---Testcase 236: -UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK ---Testcase 237: -DELETE FROM RO_RW_test WHERE i=2; -- OK - --- SERVER true TABLE default ---Testcase 238: -ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); ---Testcase 239: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK ---Testcase 240: -UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK ---Testcase 241: -DELETE FROM RO_RW_test WHERE i=3; -- OK ---Testcase 242: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK --- SERVER false TABLE default ---Testcase 243: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); ---Testcase 244: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR ---Testcase 245: -UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR ---Testcase 246: -DELETE FROM RO_RW_test WHERE i=4; -- ERR - --- SERVER default TABLE true ---Testcase 247: -ALTER SERVER sqlite_svr OPTIONS (DROP updatable); ---Testcase 248: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); ---Testcase 249: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK ---Testcase 250: -UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK ---Testcase 251: -DELETE FROM RO_RW_test WHERE i=6; -- OK - --- SERVER default TABLE false ---Testcase 252: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); ---Testcase 253: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR ---Testcase 254: -UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR ---Testcase 255: -DELETE FROM RO_RW_test WHERE i=4; -- ERR - --- SERVER true TABLE true ---Testcase 256: -ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); ---Testcase 257: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); ---Testcase 258: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK ---Testcase 258: -UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK ---Testcase 260: -DELETE FROM RO_RW_test WHERE i=8; -- OK ---Testcase 261: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK - --- SERVER false TABLE true ---Testcase 262: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); ---Testcase 263: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK ---Testcase 264: -UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK ---Testcase 265: -DELETE FROM RO_RW_test WHERE i=9; -- OK - --- SERVER false TABLE false ---Testcase 266: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); ---Testcase 267: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR ---Testcase 268: -UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR ---Testcase 269: -DELETE FROM RO_RW_test WHERE i=9; -- ERR - --- SERVER true TABLE false ---Testcase 270: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); ---Testcase 271: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR ---Testcase 272: -UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR ---Testcase 273: -DELETE FROM RO_RW_test WHERE i=9; -- ERR - ---Testcase 274: -ALTER SERVER sqlite_svr OPTIONS (DROP updatable); ---Testcase 275: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); - ---Testcase 276: -SELECT * FROM RO_RW_test ORDER BY i; - --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; - --- updatable option test (github pull 59) -DROP FOREIGN TABLE RO_RW_test; - ---Testcase 142: -DROP FUNCTION test_param_WHERE(); ---Testcase 143: -DROP FOREIGN TABLE numbers; ---Testcase 144: -DROP FOREIGN TABLE department; ---Testcase 145: -DROP FOREIGN TABLE employee; ---Testcase 146: -DROP FOREIGN TABLE empdata; ---Testcase 147: -DROP FOREIGN TABLE multiprimary; ---Testcase 148: -DROP FOREIGN TABLE multiprimary2; ---Testcase 149: -DROP FOREIGN TABLE columntest; ---Testcase 150: -DROP FOREIGN TABLE noprimary; ---Testcase 161: -DROP FOREIGN TABLE fts_table; ---Testcase 222: -DROP FOREIGN TABLE grem1_1; ---Testcase 223: -DROP FOREIGN TABLE grem1_2; ---Testcase 235: -DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; - ---Testcase 151: -DROP SERVER sqlite_svr; ---Testcase 152: -DROP EXTENSION sqlite_fdw CASCADE; - --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested - --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; - --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; - --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; - --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; - --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; - --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; - --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; - --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; - --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; - --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; - --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; - --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; - --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; - --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; - --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; - --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; - --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; - --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; - --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; - --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; - --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; - --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; - --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; - --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; - --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; - --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/sql/15.3/aggregate.sql b/sql/15.4/aggregate.sql similarity index 100% rename from sql/15.3/aggregate.sql rename to sql/15.4/aggregate.sql diff --git a/sql/15.3/extra/aggregates.sql b/sql/15.4/extra/aggregates.sql similarity index 100% rename from sql/15.3/extra/aggregates.sql rename to sql/15.4/extra/aggregates.sql diff --git a/sql/15.3/extra/encodings.sql b/sql/15.4/extra/encodings.sql similarity index 99% rename from sql/15.3/extra/encodings.sql rename to sql/15.4/extra/encodings.sql index 9db05943..63c19191 100644 --- a/sql/15.3/extra/encodings.sql +++ b/sql/15.4/extra/encodings.sql @@ -35,6 +35,18 @@ -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; + -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/sql/15.3/extra/float4.sql b/sql/15.4/extra/float4.sql similarity index 100% rename from sql/15.3/extra/float4.sql rename to sql/15.4/extra/float4.sql diff --git a/sql/15.3/extra/float8.sql b/sql/15.4/extra/float8.sql similarity index 100% rename from sql/15.3/extra/float8.sql rename to sql/15.4/extra/float8.sql diff --git a/sql/15.3/extra/insert.sql b/sql/15.4/extra/insert.sql similarity index 100% rename from sql/15.3/extra/insert.sql rename to sql/15.4/extra/insert.sql diff --git a/sql/15.3/extra/int4.sql b/sql/15.4/extra/int4.sql similarity index 100% rename from sql/15.3/extra/int4.sql rename to sql/15.4/extra/int4.sql diff --git a/sql/15.3/extra/int8.sql b/sql/15.4/extra/int8.sql similarity index 100% rename from sql/15.3/extra/int8.sql rename to sql/15.4/extra/int8.sql diff --git a/sql/15.3/extra/join.sql b/sql/15.4/extra/join.sql similarity index 100% rename from sql/15.3/extra/join.sql rename to sql/15.4/extra/join.sql diff --git a/sql/15.3/extra/limit.sql b/sql/15.4/extra/limit.sql similarity index 100% rename from sql/15.3/extra/limit.sql rename to sql/15.4/extra/limit.sql diff --git a/sql/15.3/extra/numeric.sql b/sql/15.4/extra/numeric.sql similarity index 100% rename from sql/15.3/extra/numeric.sql rename to sql/15.4/extra/numeric.sql diff --git a/sql/15.3/extra/prepare.sql b/sql/15.4/extra/prepare.sql similarity index 100% rename from sql/15.3/extra/prepare.sql rename to sql/15.4/extra/prepare.sql diff --git a/sql/15.3/extra/select.sql b/sql/15.4/extra/select.sql similarity index 100% rename from sql/15.3/extra/select.sql rename to sql/15.4/extra/select.sql diff --git a/sql/15.3/extra/select_having.sql b/sql/15.4/extra/select_having.sql similarity index 100% rename from sql/15.3/extra/select_having.sql rename to sql/15.4/extra/select_having.sql diff --git a/sql/15.3/extra/sqlite_fdw_post.sql b/sql/15.4/extra/sqlite_fdw_post.sql similarity index 100% rename from sql/15.3/extra/sqlite_fdw_post.sql rename to sql/15.4/extra/sqlite_fdw_post.sql diff --git a/sql/15.3/extra/timestamp.sql b/sql/15.4/extra/timestamp.sql similarity index 100% rename from sql/15.3/extra/timestamp.sql rename to sql/15.4/extra/timestamp.sql diff --git a/sql/15.3/extra/update.sql b/sql/15.4/extra/update.sql similarity index 100% rename from sql/15.3/extra/update.sql rename to sql/15.4/extra/update.sql diff --git a/sql/15.3/selectfunc.sql b/sql/15.4/selectfunc.sql similarity index 100% rename from sql/15.3/selectfunc.sql rename to sql/15.4/selectfunc.sql diff --git a/sql/14.8/sqlite_fdw.sql b/sql/15.4/sqlite_fdw.sql similarity index 99% rename from sql/14.8/sqlite_fdw.sql rename to sql/15.4/sqlite_fdw.sql index cde82174..5b84984f 100644 --- a/sql/14.8/sqlite_fdw.sql +++ b/sql/15.4/sqlite_fdw.sql @@ -757,10 +757,6 @@ INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); --Testcase 279: ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; - -- updatable option test (github pull 59) DROP FOREIGN TABLE RO_RW_test; @@ -790,10 +786,9 @@ DROP FOREIGN TABLE grem1_1; DROP FOREIGN TABLE grem1_2; --Testcase 235: DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; --Testcase 151: DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; + diff --git a/sql/13.11/type.sql b/sql/15.4/type.sql similarity index 65% rename from sql/13.11/type.sql rename to sql/15.4/type.sql index c1310ab5..bf6d2c48 100644 --- a/sql/13.11/type.sql +++ b/sql/15.4/type.sql @@ -266,6 +266,208 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; +--Testcase 108: +DROP FOREIGN TABLE IF EXISTS "type_UUID"; +--Testcase 109: +CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); +--Testcase 110: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; +--Testcase 111: +INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 112: +INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 113: +INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 114: +INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 115: +INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 116: +INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 117: +INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 118: +INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 119: +INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 120: +INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 121: +INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 122: +INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 123: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 124: +INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 125: +INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 126: +INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); +--Testcase 127: +INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); +--Testcase 128: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 129: +INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 130: +INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 131: +INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 132: +INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 133: +INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 134: +INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 135: +INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 136: +INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 137: +INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 138: +INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 139: +INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 140: +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 141: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 142: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); +--Testcase 143: +INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); +--Testcase 144: +INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); +--Testcase 145: +INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); +--Testcase 146: +INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); +--Testcase 147: +INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); +--Testcase 148: +INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); +--Testcase 149: +INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); +--Testcase 150: +INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); +--Testcase 151: +INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); +--Testcase 152: +INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); +--Testcase 153: +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 154: +INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); +--Testcase 155: +EXPLAIN VERBOSE +INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); +--Testcase 156: +CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); +--Testcase 157: +SELECT * FROM "type_UUID+"; +--Testcase 158: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 159: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 160: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 161: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 162: +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 163: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; +--Testcase 164: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 165: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 166: +SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; +--Testcase 167: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 168: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 169: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 170: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; +--Testcase 171: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 172: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 173: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; +--Testcase 174: +SELECT * FROM "type_UUID+"; +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; +--Testcase 176: +SELECT * FROM "type_UUID+"; +--Testcase 177: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); +--Testcase 175: +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 176: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; +--Testcase 177: +SELECT * FROM "type_UUID+"; +--Testcase 178: +INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); +--Testcase 179: +SELECT * FROM "type_UUID+" WHERE "i" = 41; +--Testcase 180: +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 181: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; +--Testcase 182: +SELECT * FROM "type_UUID+"; +--Testcase 183: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); +--Testcase 184: +EXPLAIN VERBOSE +UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; +--Testcase 185: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; +--Testcase 186: +INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); +--Testcase 187: +INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); +--Testcase 188: +ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; +--Testcase 189: +SELECT * FROM "type_UUID+" WHERE "i" = 42; +--Testcase 190: +SELECT * FROM "type_UUID+" WHERE "i" = 43; +--Testcase 191: +EXPLAIN VERBOSE +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 192: +DELETE FROM "type_UUID" WHERE "i" IN (42, 43); +--Testcase 193: +INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); +--Testcase 194: +SELECT * FROM "type_UUID+"; +--Testcase 195: +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 196: +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; +--Testcase 197: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NULL; +--Testcase 198: +EXPLAIN VERBOSE +SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; + --Testcase 199: DROP FOREIGN TABLE IF EXISTS "type_BIT"; --Testcase 200: diff --git a/sql/16.0/extra/encodings.sql b/sql/16.0/extra/encodings.sql index 9db05943..63c19191 100644 --- a/sql/16.0/extra/encodings.sql +++ b/sql/16.0/extra/encodings.sql @@ -35,6 +35,18 @@ -- WIN1257 -- WIN1258, not tested +-- ================ +-- check all data in UTF8 +-- ================ +CREATE EXTENSION sqlite_fdw; +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlitefdw_test.db'); +CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; +SELECT * FROM "Unicode data"; +DROP FOREIGN TABLE "Unicode data"; +DROP SERVER sqlite_svr; +DROP EXTENSION sqlite_fdw; + -- euc_jp CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; \connect "contrib_regression_EUC_JP" diff --git a/sql/16.0/extra/join.sql b/sql/16.0/extra/join.sql index 48e3f535..5636b975 100644 --- a/sql/16.0/extra/join.sql +++ b/sql/16.0/extra/join.sql @@ -2211,6 +2211,30 @@ select 1 from on false, lateral (select i4.f1, ss1.n from int8_tbl as i8 limit 1) as ss3; +-- +-- check a case where we formerly generated invalid parameterized paths +-- + +begin; + +--Testcase 630: +CREATE FOREIGN TABLE t (a int options (key 'true')) SERVER sqlite_svr; + +--Testcase 631: +explain (costs off) +select 1 from t t1 + join lateral (select t1.a from (select 1) foo offset 0) as s1 on true + join + (select 1 from t t2 + inner join (t t3 + left join (t t4 left join t t5 on t4.a = 1) + on t3.a = t4.a) + on false + where t3.a = coalesce(t5.a,1)) as s2 + on true; + +rollback; + -- -- check a case in which a PlaceHolderVar forces join order -- diff --git a/sql/16.0/extra/sqlite_fdw_post.sql b/sql/16.0/extra/sqlite_fdw_post.sql index 53dcd4ec..f60bdf67 100644 --- a/sql/16.0/extra/sqlite_fdw_post.sql +++ b/sql/16.0/extra/sqlite_fdw_post.sql @@ -313,7 +313,7 @@ EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c8 = 'foo'; -- can't be EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM "S 1"."T 1" a, ft2 b WHERE a."C 1" = 47 AND b.c1 = a.c2; --Testcase 50: -SELECT * FROM ft2 a, ft2 b WHERE a.c1 = 47 AND b.c1 = a.c2; +SELECT * FROM "S 1"."T 1" a, ft2 b WHERE a."C 1" = 47 AND b.c1 = a.c2; -- check both safe and unsafe join conditions --Testcase 51: @@ -463,9 +463,11 @@ WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; ALTER EXTENSION sqlite_fdw ADD TEXT SEARCH CONFIGURATION public.custom_search; -- however, that doesn't flush the shippability cache, so do a quick reconnect \c - +--Testcase 995: EXPLAIN (VERBOSE, COSTS OFF) SELECT c1, to_tsvector('custom_search'::regconfig, c3) FROM ft1 WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; +--Testcase 996: SELECT c1, to_tsvector('custom_search'::regconfig, c3) FROM ft1 WHERE c1 = 642 AND length(to_tsvector('custom_search'::regconfig, c3)) > 0; @@ -727,6 +729,10 @@ EXPLAIN (VERBOSE, COSTS OFF) SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM ft1 t2, ft2 t3 WHERE t2.c1 = t3.c1 AND t2.c2 = t1.c2) q ORDER BY t1."C 1" OFFSET 10 LIMIT 10; --Testcase 139: SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM ft1 t2, ft2 t3 WHERE t2.c1 = t3.c1 AND t2.c2 = t1.c2) q ORDER BY t1."C 1" OFFSET 10 LIMIT 10; +-- join with pseudoconstant quals, not pushed down. +--Testcase 997: +EXPLAIN (VERBOSE, COSTS OFF) +SELECT t1.c1, t2.c1 FROM ft1 t1 JOIN ft2 t2 ON (t1.c1 = t2.c1 AND CURRENT_USER = SESSION_USER) ORDER BY t1.c3, t1.c1 OFFSET 100 LIMIT 10; -- non-Var items in targetlist of the nullable rel of a join preventing -- push-down in some cases @@ -836,6 +842,32 @@ SELECT t1.c1, t2.c2 FROM v4 t1 LEFT JOIN ft5 t2 ON (t1.c1 = t2.c1) ORDER BY t1.c --Testcase 785: ALTER VIEW v4 OWNER TO regress_view_owner; +-- Comment out these test cases. +-- sqlite_fdw does not need to getUserMapping in planning phase, +-- so it is unable to check userid to use when querying the remote table is correctly propagated into foreign rels. +-- -- ==================================================================== +-- -- Check that userid to use when querying the remote table is correctly +-- -- propagated into foreign rels present in subqueries under an UNION ALL +-- -- ==================================================================== +-- CREATE ROLE regress_view_owner_another; +-- ALTER VIEW v4 OWNER TO regress_view_owner_another; +-- GRANT SELECT ON ft4 TO regress_view_owner_another; +-- ALTER FOREIGN TABLE ft4 OPTIONS (ADD use_remote_estimate 'true'); +-- -- The following should query the remote backing table of ft4 as user +-- -- regress_view_owner_another, the view owner, though it fails as expected +-- -- due to the lack of a user mapping for that user. +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM v4; +-- -- Likewise, but with the query under an UNION ALL +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM (SELECT * FROM v4 UNION ALL SELECT * FROM v4); +-- -- Should not get that error once a user mapping is created +-- CREATE USER MAPPING FOR regress_view_owner_another SERVER loopback OPTIONS (password_required 'false'); +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM v4; +-- EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM (SELECT * FROM v4 UNION ALL SELECT * FROM v4); +-- DROP USER MAPPING FOR regress_view_owner_another SERVER loopback; +-- DROP OWNED BY regress_view_owner_another; +-- DROP ROLE regress_view_owner_another; +-- ALTER FOREIGN TABLE ft4 OPTIONS (SET use_remote_estimate 'false'); + -- cleanup --Testcase 512: DROP OWNED BY regress_view_owner; @@ -2226,6 +2258,7 @@ END;$$; --Testcase 642: CREATE TRIGGER trig_stmt_before BEFORE DELETE OR INSERT OR UPDATE OR TRUNCATE ON rem1 FOR EACH STATEMENT EXECUTE PROCEDURE trigger_func(); +--Testcase 1005: CREATE TRIGGER trig_stmt_after AFTER DELETE OR INSERT OR UPDATE OR TRUNCATE ON rem1 FOR EACH STATEMENT EXECUTE PROCEDURE trigger_func(); @@ -4135,18 +4168,6 @@ INSERT INTO ftable SELECT * FROM generate_series(11, 31) i; INSERT INTO ftable VALUES (32); --Testcase 940: INSERT INTO ftable VALUES (33), (34); ---Testcase 941: -SELECT COUNT(*) FROM ftable; ---Testcase 942: -DELETE FROM ftable; ---Testcase 943: -DROP FOREIGN TABLE ftable; - --- try if large batches exceed max number of bind parameters ---Testcase 944: -CREATE FOREIGN TABLE ftable ( x int OPTIONS (key 'true') ) SERVER sqlite_svr OPTIONS ( table 'batch_table', batch_size '100000' ); ---Testcase 945: -INSERT INTO ftable SELECT * FROM generate_series(1, 70000) i; --Testcase 946: SELECT COUNT(*) FROM ftable; --Testcase 947: diff --git a/sql/16.0/sqlite_fdw.sql b/sql/16.0/sqlite_fdw.sql index a027a841..5b84984f 100644 --- a/sql/16.0/sqlite_fdw.sql +++ b/sql/16.0/sqlite_fdw.sql @@ -749,9 +749,13 @@ ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); --Testcase 276: SELECT * FROM RO_RW_test ORDER BY i; --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; +--Bind error message test for some unsupported data type +--Testcase 277: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE tsquery; +--Testcase 278: +INSERT INTO numbers VALUES(8,'fat & (rat | cat)'); +--Testcase 279: +ALTER FOREIGN TABLE numbers ALTER COLUMN b TYPE varchar(255); -- updatable option test (github pull 59) DROP FOREIGN TABLE RO_RW_test; @@ -782,3610 +786,9 @@ DROP FOREIGN TABLE grem1_1; DROP FOREIGN TABLE grem1_2; --Testcase 235: DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; --Testcase 151: DROP SERVER sqlite_svr; --Testcase 152: DROP EXTENSION sqlite_fdw CASCADE; --- tests for PR #76 github --- see https://www.postgresql.org/docs/current/multibyte.html --- EUC_CN, not tested --- EUC_JP --- EUC_JIS_2004, not tested --- EUC_KR --- EUC_TW, not tested --- ISO_8859_5 --- ISO_8859_6 --- ISO_8859_7 --- ISO_8859_8 --- KOI8R, not tested --- KOI8U, not tested --- LATIN1 --- LATIN2 --- LATIN3 --- LATIN4 --- LATIN5 --- LATIN6 --- LATIN7 --- LATIN8 --- LATIN9 --- LATIN10 --- MULE_INTERNAL, not tested --- SQL_ASCII --- WIN866, not tested --- WIN874, not tested --- WIN1250 --- WIN1251 --- WIN1252 --- WIN1253 --- WIN1254 --- WIN1255 --- WIN1256 --- WIN1257 --- WIN1258, not tested - --- euc_jp -CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucjp' LC_COLLATE='ja_JP.eucjp' template template0; -\connect "contrib_regression_EUC_JP" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_JP"; - --- ko_KR.euckr -CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euckr' LC_COLLATE='ko_KR.euckr' template template0; -\connect "contrib_regression_EUC_KR" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_EUC_KR"; - --- ISO_8859_5 -CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_5"; - --- ISO_8859_6 -CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_6"; - --- ISO_8859_7 -CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_7"; - --- ISO_8859_8 -CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_8"; - --- ISO_8859_9 -CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_ISO_8859_9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_ISO_8859_9"; - --- LATIN1 -CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN1" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN1"; - --- LATIN2 -CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN2" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN2"; - --- LATIN3 -CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN3" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN3"; - --- LATIN4 -CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN4" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN4"; - --- LATIN5 -CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN5" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN5"; - --- LATIN6 -CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN6" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN6"; - --- LATIN7 -CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN7" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN7"; - --- LATIN8 -CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN8" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN8"; - --- LATIN9 -CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN9" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN9"; - --- LATIN10 -CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_LATIN10" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_LATIN10"; - --- cp1250 -CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1250" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1250"; - --- cp1251 -CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' LC_COLLATE='bg_BG' template template0; -\connect "contrib_regression_WIN1251" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1251"; - --- cp1252 -CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1252" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1252"; - --- cp1253 -CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1253" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1253"; - --- cp1254 -CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1254" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1254"; - --- cp1255 -CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1255" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1255"; - --- cp1256 -CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1256" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1256"; - --- cp1257 -CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_WIN1257" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_WIN1257"; - --- SQL_ASCII -CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSIX' LC_COLLATE='POSIX' template template0; -\connect "contrib_regression_SQL_ASCII" -CREATE EXTENSION sqlite_fdw; -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); -CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; --- EUC_JP -SELECT * FROM "Unicode data" WHERE i = 'jap'; -SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); -DELETE FROM "Unicode data" WHERE t = 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; --- 1251, ISO_8859_5 -SELECT * FROM "Unicode data" WHERE i = 'bel'; -SELECT * FROM "Unicode data" WHERE i = 'bul'; -SELECT * FROM "Unicode data" WHERE i = 'rus'; -SELECT * FROM "Unicode data" WHERE i = 'ukr'; -SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; -INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); -SELECT * FROM "Unicode data" WHERE i = 'bel+'; -DELETE FROM "Unicode data" WHERE t = 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bel+'; -INSERT INTO "Unicode data" (i, t) VALUES ('bul+', 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'); -SELECT * FROM "Unicode data" WHERE i = 'bul+'; -DELETE FROM "Unicode data" WHERE t = 'Ах, чудна българска земьо, полюшвай цъфтящи жита._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'bul+'; -INSERT INTO "Unicode data" (i, t) VALUES ('rus+', 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'); -SELECT * FROM "Unicode data" WHERE i = 'rus+'; -DELETE FROM "Unicode data" WHERE t = 'Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'rus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('ukr+', 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'); -SELECT * FROM "Unicode data" WHERE i = 'ukr+'; -DELETE FROM "Unicode data" WHERE t = 'Гей, хлопці, не вспію — на ґанку ваша файна їжа знищується бурундучком._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; --- 1256, ISO_8859_6 -SELECT * FROM "Unicode data" WHERE i = 'ara'; -SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); -SELECT * FROM "Unicode data" WHERE i = 'ara+'; -DELETE FROM "Unicode data" WHERE t = 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; --- 1253, ISO_8859_7 -SELECT * FROM "Unicode data" WHERE i = 'gre'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; -INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); -SELECT * FROM "Unicode data" WHERE i = 'gre+'; -DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'; --- 1255, ISO_8859_8 -SELECT * FROM "Unicode data" WHERE i = 'heb'; -SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; -INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); -SELECT * FROM "Unicode data" WHERE i = 'heb+'; -DELETE FROM "Unicode data" WHERE t = 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; --- 1252, LATIN1 -SELECT * FROM "Unicode data" WHERE i = 'eus'; -SELECT * FROM "Unicode data" WHERE i = 'fra'; -SELECT * FROM "Unicode data" WHERE i = 'spa'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; -INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); -SELECT * FROM "Unicode data" WHERE i = 'eus+'; -DELETE FROM "Unicode data" WHERE t = 'Permin gox dabiltzu yoskiñ._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'eus+'; -INSERT INTO "Unicode data" (i, t) VALUES ('fra+', 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'); -SELECT * FROM "Unicode data" WHERE i = 'fra+'; -DELETE FROM "Unicode data" WHERE t = 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'fra+'; -INSERT INTO "Unicode data" (i, t) VALUES ('spa+', 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'); -SELECT * FROM "Unicode data" WHERE i = 'spa+'; -DELETE FROM "Unicode data" WHERE t = 'Quiere la boca exhausta vid, kiwi, piña y fugaz jamón._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; --- 1250, LATIN2 -SELECT * FROM "Unicode data" WHERE i = 'cze'; -SELECT * FROM "Unicode data" WHERE i = 'pol'; -SELECT * FROM "Unicode data" WHERE i = 'srp'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; -INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); -SELECT * FROM "Unicode data" WHERE i = 'cze+'; -DELETE FROM "Unicode data" WHERE t = 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'cze+'; -INSERT INTO "Unicode data" (i, t) VALUES ('pol+', 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'); -SELECT * FROM "Unicode data" WHERE i = 'pol+'; -DELETE FROM "Unicode data" WHERE t = 'Pchnąć w tę łódź jeża lub ośm skrzyń fig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'pol+'; -INSERT INTO "Unicode data" (i, t) VALUES ('srp+', 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'); -SELECT * FROM "Unicode data" WHERE i = 'srp+'; -DELETE FROM "Unicode data" WHERE t = 'Ljubavi, Olga, hajde pođi u Fudži i čut ćeš nježnu muziku srca._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; --- 1257, LATIN7 -SELECT * FROM "Unicode data" WHERE i = 'lav'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; -INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); -SELECT * FROM "Unicode data" WHERE i = 'lav+'; -DELETE FROM "Unicode data" WHERE t = 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; --- EUC_KR -SELECT * FROM "Unicode data" WHERE i = 'kor'; -SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; -INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); -SELECT * FROM "Unicode data" WHERE i = 'kor+'; -DELETE FROM "Unicode data" WHERE t = '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; --- 1254, LATIN5 -SELECT * FROM "Unicode data" WHERE i = 'aze'; -SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; -INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); -SELECT * FROM "Unicode data" WHERE i = 'aze+'; -DELETE FROM "Unicode data" WHERE t = 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'aze+'; --- etc -INSERT INTO "Unicode data" (i, t) VALUES ('arm+', 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'); -SELECT * FROM "Unicode data" WHERE i = 'arm+'; -DELETE FROM "Unicode data" WHERE t = 'Բել դղյակի ձախ ժամն օֆ ազգությանը ցպահանջ չճշտած վնաս էր եւ փառք։_'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'arm+'; -INSERT INTO "Unicode data" (i, t) VALUES ('gle+', 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'); -SELECT * FROM "Unicode data" WHERE i = 'gle+'; -DELETE FROM "Unicode data" WHERE t = 'Chuaigh bé mhórshách le dlúthspád fíorfhinn trí hata mo dhea-phorcáin bhig._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'gle+'; -INSERT INTO "Unicode data" (i, t) VALUES ('epo+', 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'); -SELECT * FROM "Unicode data" WHERE i = 'epo+'; -DELETE FROM "Unicode data" WHERE t = 'Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj._'; -SELECT count(*) n FROM "Unicode data" WHERE i = 'epo+'; - -DROP FOREIGN TABLE "Unicode data"; -DROP SERVER sqlite_svr; -DROP EXTENSION sqlite_fdw; -\connect contrib_regression; -DROP DATABASE "contrib_regression_SQL_ASCII"; diff --git a/sql/init_data/init_core.sql b/sql/init_data/init_core.sql index 8f608cd4..8b023733 100644 --- a/sql/init_data/init_core.sql +++ b/sql/init_data/init_core.sql @@ -12,6 +12,7 @@ DROP TABLE IF EXISTS onek; DROP TABLE IF EXISTS tenk1; DROP TABLE IF EXISTS btg; DROP TABLE IF EXISTS num_typemod_test; +DROP TABLE IF EXISTS t; DROP TABLE IF EXISTS RO_RW_test; CREATE TABLE FLOAT4_TBL (f1 REAL); @@ -425,3 +426,6 @@ CREATE TABLE update_test ( ); create table upsert_test (a int primary key, b text); + +create table t (a int unique); + From 2bd1510602cccb070605043e3cec3bf0f01fe794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Wed, 27 Dec 2023 07:27:36 +0300 Subject: [PATCH 25/27] `error_helper` as static, sqlite_data_norm.c --- sqlite_data_norm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index fe46468c..962ad5f0 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -290,7 +290,7 @@ sqlite_fdw_data_norm_bool(sqlite3_context* context, int argc, sqlite3_value** ar * Makes pg error from SQLite error. * Interrupts normal executing, no need return after place of calling */ -void +static void error_helper(sqlite3* db, int rc) { const char * err = sqlite3_errmsg(db); From 2bdcc1be2329d0371e269d3f29c94a6d30e8baad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Wed, 27 Dec 2023 07:28:51 +0300 Subject: [PATCH 26/27] Remove connection closing, sqlite_data_norm.c --- sqlite_data_norm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sqlite_data_norm.c b/sqlite_data_norm.c index 962ad5f0..2c61c53c 100644 --- a/sqlite_data_norm.c +++ b/sqlite_data_norm.c @@ -294,7 +294,6 @@ static void error_helper(sqlite3* db, int rc) { const char * err = sqlite3_errmsg(db); - sqlite3_close(db); ereport(ERROR, (errcode(ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION), errmsg("failed to create data unifying functions for SQLite DB"), From 44b7f21263e3c4346872cc5808acc5bdd4fa90f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= <41448637+mkgrgis@users.noreply.github.com> Date: Wed, 27 Dec 2023 09:59:51 +0300 Subject: [PATCH 27/27] Delete sql/15.3/sqlite_fdw.sql Merge artefact --- sql/15.3/sqlite_fdw.sql | 791 ---------------------------------------- 1 file changed, 791 deletions(-) delete mode 100644 sql/15.3/sqlite_fdw.sql diff --git a/sql/15.3/sqlite_fdw.sql b/sql/15.3/sqlite_fdw.sql deleted file mode 100644 index ee68ba84..00000000 --- a/sql/15.3/sqlite_fdw.sql +++ /dev/null @@ -1,791 +0,0 @@ ---SET log_min_messages TO DEBUG1; ---SET client_min_messages TO DEBUG1; ---Testcase 129: -CREATE EXTENSION sqlite_fdw; ---Testcase 130: -CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); ---Testcase 131: -CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; ---Testcase 132: -CREATE FOREIGN TABLE employee(emp_id int OPTIONS (key 'true'), emp_name text, emp_dept_id int) SERVER sqlite_svr; ---Testcase 133: -CREATE FOREIGN TABLE empdata(emp_id int OPTIONS (key 'true'), emp_dat bytea) SERVER sqlite_svr; ---Testcase 134: -CREATE FOREIGN TABLE numbers(a int OPTIONS (key 'true'), b varchar(255)) SERVER sqlite_svr; ---Testcase 135: -CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; ---Testcase 136: -CREATE FOREIGN TABLE noprimary(a int, b text) SERVER sqlite_svr; - --- updatable option test (github pull 59) -CREATE FOREIGN TABLE RO_RW_test(i int OPTIONS (key 'true'), a text, b float, c int) SERVER sqlite_svr; - ---Testcase 1: -SELECT * FROM department LIMIT 10; ---Testcase 2: -SELECT * FROM employee LIMIT 10; ---Testcase 3: -SELECT * FROM empdata LIMIT 10; - ---Testcase 4: -INSERT INTO department VALUES(generate_series(1,100), 'dept - ' || generate_series(1,100)); ---Testcase 5: -INSERT INTO employee VALUES(generate_series(1,100), 'emp - ' || generate_series(1,100), generate_series(1,100)); ---Testcase 6: -INSERT INTO empdata VALUES(1, decode ('01234567', 'hex')); - ---Testcase 7: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 8: -INSERT INTO numbers VALUES(2, 'Two'); ---Testcase 9: -INSERT INTO numbers VALUES(3, 'Three'); ---Testcase 10: -INSERT INTO numbers VALUES(4, 'Four'); ---Testcase 11: -INSERT INTO numbers VALUES(5, 'Five'); ---Testcase 12: -INSERT INTO numbers VALUES(6, 'Six'); ---Testcase 13: -INSERT INTO numbers VALUES(7, 'Seven'); ---Testcase 14: -INSERT INTO numbers VALUES(8, 'Eight'); ---Testcase 15: -INSERT INTO numbers VALUES(9, 'Nine'); - ---Testcase 16: -SELECT count(*) FROM department; ---Testcase 17: -SELECT count(*) FROM employee; ---Testcase 18: -SELECT count(*) FROM empdata; - ---Testcase 19: -EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; - ---Testcase 20: -EXPLAIN (COSTS FALSE) SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) LIMIT 10; - ---Testcase 21: -SELECT * FROM department d, employee e WHERE d.department_id = e.emp_dept_id LIMIT 10; ---Testcase 22: -SELECT * FROM department d, employee e WHERE d.department_id IN (SELECT department_id FROM department) ORDER BY d.department_id LIMIT 10; ---Testcase 23: -SELECT * FROM empdata; - ---Testcase 24: -DELETE FROM employee WHERE emp_id = 10; - ---Testcase 25: -SELECT COUNT(*) FROM department LIMIT 10; ---Testcase 26: -SELECT COUNT(*) FROM employee WHERE emp_id = 10; - ---Testcase 27: -UPDATE employee SET emp_name = 'UPDATEd emp' WHERE emp_id = 20; ---Testcase 28: -SELECT emp_id, emp_name FROM employee WHERE emp_name like 'UPDATEd emp'; - ---Testcase 29: -UPDATE empdata SET emp_dat = decode ('0123', 'hex'); ---Testcase 30: -SELECT * FROM empdata; - ---Testcase 31: -SELECT * FROM employee LIMIT 10; ---Testcase 32: -SELECT * FROM employee WHERE emp_id IN (1); ---Testcase 33: -SELECT * FROM employee WHERE emp_id IN (1,3,4,5); ---Testcase 34: -SELECT * FROM employee WHERE emp_id IN (10000,1000); - ---Testcase 35: -SELECT * FROM employee WHERE emp_id NOT IN (1) LIMIT 5; ---Testcase 36: -SELECT * FROM employee WHERE emp_id NOT IN (1,3,4,5) LIMIT 5; ---Testcase 37: -SELECT * FROM employee WHERE emp_id NOT IN (10000,1000) LIMIT 5; - ---Testcase 38: -SELECT * FROM employee WHERE emp_id NOT IN (SELECT emp_id FROM employee WHERE emp_id IN (1,10)); ---Testcase 39: -SELECT * FROM employee WHERE emp_name NOT IN ('emp - 1', 'emp - 2') LIMIT 5; ---Testcase 40: -SELECT * FROM employee WHERE emp_name NOT IN ('emp - 10') LIMIT 5; - ---Testcase 41: -SELECT * FROM numbers WHERE (CASE WHEN a % 2 = 0 THEN 1 WHEN a % 5 = 0 THEN 1 ELSE 0 END) = 1; ---Testcase 42: -SELECT * FROM numbers WHERE (CASE b WHEN 'Two' THEN 1 WHEN 'Six' THEN 1 ELSE 0 END) = 1; - ---Testcase 152: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE (round(abs(a)) = 1); ---Testcase 153: -SELECT * FROM numbers WHERE (round(abs(a)) = 1); - ---Testcase 137: -create or replace function test_param_WHERE() returns void as $$ -DECLARE - n varchar; -BEGIN - FOR x IN 1..9 LOOP ---Testcase 138: - SELECT b INTO n from numbers WHERE a=x; - raise notice 'Found number %', n; - end loop; - return; -END -$$ LANGUAGE plpgsql; ---Testcase 43: -SELECT test_param_WHERE(); - ---Testcase 44: -SELECT b from numbers WHERE a=1; ---Testcase 45: -EXPLAIN(COSTS OFF) SELECT b from numbers WHERE a=1; - ---Testcase 46: -SELECT a FROM numbers WHERE b = (SELECT NULL::text); - - ---Testcase 47: -PREPARE stmt1 (int, int) AS - SELECT * FROM numbers WHERE a=$1 or a=$2; ---Testcase 48: -EXECUTE stmt1(1,2); ---Testcase 49: -EXECUTE stmt1(2,2); ---Testcase 50: -EXECUTE stmt1(3,2); ---Testcase 51: -EXECUTE stmt1(4,2); --- generic plan ---Testcase 52: -EXECUTE stmt1(5,2); ---Testcase 53: -EXECUTE stmt1(6,2); ---Testcase 54: -EXECUTE stmt1(7,2); - ---Testcase 55: -DELETE FROM employee; ---Testcase 56: -DELETE FROM department; ---Testcase 57: -DELETE FROM empdata; ---Testcase 58: -DELETE FROM numbers; - -BEGIN; ---Testcase 59: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 60: -INSERT INTO numbers VALUES(2, 'Two'); -COMMIT; - ---Testcase 61: -SELECT * from numbers; - -BEGIN; ---Testcase 62: -INSERT INTO numbers VALUES(3, 'Three'); -ROLLBACK; ---Testcase 63: -SELECT * from numbers; - -BEGIN; ---Testcase 64: -INSERT INTO numbers VALUES(4, 'Four'); -SAVEPOINT my_savepoint; ---Testcase 65: -INSERT INTO numbers VALUES(5, 'Five'); -ROLLBACK TO SAVEPOINT my_savepoint; ---Testcase 66: -INSERT INTO numbers VALUES(6, 'Six'); -COMMIT; - ---Testcase 67: -SELECT * from numbers; - --- duplicate key ---Testcase 68: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 69: -DELETE from numbers; - -BEGIN; ---Testcase 70: -INSERT INTO numbers VALUES(1, 'One'); ---Testcase 71: -INSERT INTO numbers VALUES(2, 'Two'); -COMMIT; --- violate unique constraint ---Testcase 72: -UPDATE numbers SET b='Two' WHERE a = 1; ---Testcase 73: -SELECT * from numbers; - --- push down ---Testcase 74: -explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); --- (1,2,3) is pushed down ---Testcase 75: -explain (verbose, costs off) SELECT * from numbers WHERE a in (1,2,3) AND (1,2) < (a,5); - ---Testcase 76: -explain (verbose, costs off) SELECT * from numbers WHERE a in (a+2*a,5); - ---Testcase 77: -explain (verbose, costs off) SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); - ---Testcase 78: -SELECT * from numbers WHERE a = any(ARRAY[2,3,4,5]::int[]); ---Testcase 79: -SELECT * from numbers WHERE a = any(ARRAY[1,2,a]::int[]); - --- ANY with ARRAY expression ---Testcase 154: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); ---Testcase 155: -SELECT * FROM numbers WHERE a = ANY(ARRAY[1, a + 1]); - ---Testcase 156: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); ---Testcase 157: -SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, a + 1]); - ---Testcase 158: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); ---Testcase 159: -SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, a + 1]); - ---Testcase 160: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); ---Testcase 161: -SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, a + 1]); - ---Testcase 162: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); ---Testcase 163: -SELECT * FROM numbers WHERE a > ANY(ARRAY[1, a + 1]); - ---Testcase 164: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); ---Testcase 165: -SELECT * FROM numbers WHERE a < ANY(ARRAY[1, a + 1]); - --- ANY with ARRAY const ---Testcase 166: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); ---Testcase 167: -SELECT * FROM numbers WHERE a = ANY(ARRAY[1, 2]); - ---Testcase 168: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); ---Testcase 169: -SELECT * FROM numbers WHERE a <> ANY(ARRAY[1, 2]); - ---Testcase 170: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); ---Testcase 171: -SELECT * FROM numbers WHERE a >= ANY(ARRAY[1, 2]); - ---Testcase 172: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); ---Testcase 173: -SELECT * FROM numbers WHERE a <= ANY(ARRAY[1, 2]); - ---Testcase 174: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); ---Testcase 175: -SELECT * FROM numbers WHERE a > ANY(ARRAY[1, 2]); - ---Testcase 176: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); ---Testcase 177: -SELECT * FROM numbers WHERE a < ANY(ARRAY[1, 2]); - ---Testcase 210: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); ---Testcase 211: -SELECT * FROM numbers WHERE a = ANY('{1, 2, 3}'); - ---Testcase 212: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); ---Testcase 213: -SELECT * FROM numbers WHERE a <> ANY('{1, 2, 3}'); - --- ALL with ARRAY expression ---Testcase 178: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); ---Testcase 179: -SELECT * FROM numbers WHERE a = ALL(ARRAY[1, a * 1]); - ---Testcase 180: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); ---Testcase 181: -SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, a + 1]); - ---Testcase 182: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); ---Testcase 183: -SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, a / 1]); - ---Testcase 184: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); ---Testcase 185: -SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, a + 1]); - ---Testcase 186: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); ---Testcase 187: -SELECT * FROM numbers WHERE a > ALL(ARRAY[1, a - 1]); - ---Testcase 188: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); ---Testcase 189: -SELECT * FROM numbers WHERE a < ALL(ARRAY[2, a + 1]); - --- ALL with ARRAY const ---Testcase 190: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); ---Testcase 191: -SELECT * FROM numbers WHERE a = ALL(ARRAY[1, 1]); - ---Testcase 192: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); ---Testcase 193: -SELECT * FROM numbers WHERE a <> ALL(ARRAY[1, 3]); - ---Testcase 194: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); ---Testcase 195: -SELECT * FROM numbers WHERE a >= ALL(ARRAY[1, 2]); - ---Testcase 196: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); ---Testcase 197: -SELECT * FROM numbers WHERE a <= ALL(ARRAY[1, 2]); - ---Testcase 198: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); ---Testcase 199: -SELECT * FROM numbers WHERE a > ALL(ARRAY[0, 1]); - ---Testcase 200: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); ---Testcase 201: -SELECT * FROM numbers WHERE a < ALL(ARRAY[2, 3]); - --- ANY/ALL with TEXT ARRAY const ---Testcase 202: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); ---Testcase 203: -SELECT * FROM numbers WHERE b = ANY(ARRAY['One', 'Two']); - ---Testcase 204: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); ---Testcase 205: -SELECT * FROM numbers WHERE b <> ALL(ARRAY['One', 'Four']); - ---Testcase 206: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); ---Testcase 207: -SELECT * FROM numbers WHERE b > ANY(ARRAY['One', 'Two']); - ---Testcase 208: -EXPLAIN VERBOSE SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); ---Testcase 209: -SELECT * FROM numbers WHERE b > ALL(ARRAY['Four', 'Five']); - ---Testcase 80: -INSERT INTO multiprimary VALUES(1,2,3); ---Testcase 81: -INSERT INTO multiprimary VALUES(1,2,4); ---Testcase 82: -UPDATE multiprimary SET b = 10 WHERE c = 3; ---Testcase 83: -SELECT * from multiprimary; ---Testcase 84: -UPDATE multiprimary SET a = 10 WHERE a = 1; ---Testcase 85: -SELECT * from multiprimary; ---Testcase 86: -UPDATE multiprimary SET a = 100, b=200, c=300 WHERE a=10 AND b=10; ---Testcase 87: -SELECT * from multiprimary; ---Testcase 88: -UPDATE multiprimary SET a = 1234; ---Testcase 89: -SELECT * from multiprimary; ---Testcase 90: -UPDATE multiprimary SET a = a+1, b=b+1 WHERE b=200 AND c=300; - ---Testcase 91: -SELECT * from multiprimary; ---Testcase 92: -DELETE from multiprimary WHERE a = 1235; ---Testcase 93: -SELECT * from multiprimary; ---Testcase 94: -DELETE from multiprimary WHERE b = 2; ---Testcase 95: -SELECT * from multiprimary; - ---Testcase 96: -INSERT INTO multiprimary VALUES(1,2,3); ---Testcase 97: -INSERT INTO multiprimary VALUES(1,2,4); ---Testcase 98: -INSERT INTO multiprimary VALUES(1,10,20); ---Testcase 99: -INSERT INTO multiprimary VALUES(2,20,40); - - - ---Testcase 100: -SELECT count(distinct a) from multiprimary; ---Testcase 101: -SELECT sum(b),max(b), min(b) from multiprimary; ---Testcase 102: -SELECT sum(b+5)+2 from multiprimary group by b/2 order by b/2; ---Testcase 103: -SELECT sum(a) from multiprimary group by b having sum(a) > 0 order by sum(a); ---Testcase 104: -SELECT sum(a) A from multiprimary group by b having avg(abs(a)) > 0 AND sum(a) > 0 order by A; ---Testcase 105: -SELECT count(nullif(a, 1)) FROM multiprimary; ---Testcase 106: -SELECT a,a FROM multiprimary group by 1,2; ---Testcase 107: -SELECT * from multiprimary, numbers WHERE multiprimary.a=numbers.a; - ---Testcase 108: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; ---Testcase 109: -SELECT sum(a) FROM multiprimary HAVING sum(a) > 0; - ---Testcase 110: -INSERT INTO numbers VALUES(4, 'Four'); - --- All where clauses are pushed down ---Testcase 111: -SELECT * FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; ---Testcase 112: -EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE abs(a) = 4 AND upper(b) = 'FOUR' AND lower(b) = 'four'; - --- Only "length(b) = 4" are pushed down ---Testcase 113: -SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; ---Testcase 114: -EXPLAIN (verbose, costs off) SELECT b, length(b) FROM numbers WHERE length(b) = 4 AND power(1, a) != 0 AND length(reverse(b)) = 4; - ---Testcase 115: -INSERT INTO multiprimary (b,c) VALUES (99, 100); ---Testcase 116: -SELECT c FROM multiprimary WHERE COALESCE(a,b,c) = 99; - - ---Testcase 139: -CREATE FOREIGN TABLE multiprimary2(a int, b int, c int OPTIONS(column_name 'b')) SERVER sqlite_svr OPTIONS (table 'multiprimary'); ---Testcase 117: -SELECT * FROM multiprimary2; ---Testcase 214: -ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN a OPTIONS(ADD column_name 'b'); ---Testcase 118: -SELECT * FROM multiprimary2; ---Testcase 215: -ALTER FOREIGN TABLE multiprimary2 ALTER COLUMN b OPTIONS (column_name 'nosuch column'); ---Testcase 119: -SELECT * FROM multiprimary2; ---Testcase 140: -EXPLAIN (VERBOSE) SELECT * FROM multiprimary2; ---Testcase 120: -SELECT a FROM multiprimary2 WHERE b = 1; - - ---Testcase 141: -CREATE FOREIGN TABLE columntest(a int OPTIONS(column_name 'a a', key 'true'), "b b" int OPTIONS(key 'true'), c int OPTIONS(column_name 'c c')) SERVER sqlite_svr; ---Testcase 121: -INSERT INTO columntest VALUES(1,2,3); ---Testcase 122: -UPDATE columntest SET c=10 WHERE a = 1; ---Testcase 123: -SELECT * FROM columntest; ---Testcase 124: -UPDATE columntest SET a=100 WHERE c = 10; ---Testcase 125: -SELECT * FROM columntest; ---Testcase 126: -INSERT INTO noprimary VALUES(1,'2'); ---Testcase 127: -INSERT INTO noprimary SELECT * FROM noprimary; ---Testcase 128: -SELECT * FROM noprimary; - ---get version ---Testcase 153: -\df sqlite* ---Testcase 154: -SELECT * FROM public.sqlite_fdw_version(); ---Testcase 155: -SELECT sqlite_fdw_version(); - --- issue #44 github ---Testcase 156: -CREATE FOREIGN TABLE fts_table (name text, description text) SERVER sqlite_svr; - ---Testcase 157: -INSERT INTO fts_table VALUES ('this is name', 'this is description'); - ---Testcase 158: -SELECT * FROM fts_table; -- should work - ---Testcase 159: -ALTER TABLE fts_table ALTER COLUMN name TYPE int; - ---Testcase 160: -SELECT * FROM fts_table; -- should fail - --- issue #62 github ---Testcase 236: -INSERT INTO noprimary VALUES (4, 'Test''s'); ---Testcase 237: -INSERT INTO noprimary VALUES (5, 'Test'); - ---Testcase 238: -SELECT * FROM noprimary; ---Testcase 239: -EXPLAIN VERBOSE -SELECT * FROM noprimary where b = 'Test''s'; ---Testcase 240: -SELECT * FROM noprimary where b = 'Test''s'; - ---Testcase 241: -EXPLAIN VERBOSE -SELECT * FROM noprimary where b in ('Test''s', 'Test'); ---Testcase 242: -SELECT * FROM noprimary where b in ('Test''s', 'Test'); - --- INSERT/UPDATE whole row with generated column ---Testcase 216: -CREATE FOREIGN TABLE grem1_1 ( - a int generated always as (0) stored) - SERVER sqlite_svr OPTIONS(table 'grem1_1'); - ---Testcase 217: -INSERT INTO grem1_1 DEFAULT VALUES; ---Testcase 218: -SELECT * FROM grem1_1; - ---Testcase 219: -CREATE FOREIGN TABLE grem1_2 ( - a int generated always as (0) stored, - b int generated always as (1) stored, - c int generated always as (2) stored, - d int generated always as (3) stored) - SERVER sqlite_svr OPTIONS(table 'grem1_2'); ---Testcase 220: -INSERT INTO grem1_2 DEFAULT VALUES; ---Testcase 221: -SELECT * FROM grem1_2; - --- Executable test case for pushdown CASE expressions (results) ---Testcase 224: -CREATE FOREIGN TABLE case_exp(c1 int OPTIONS (key 'true'), c3 text, c6 varchar(10)) SERVER sqlite_svr; - ---Testcase 225: -INSERT INTO case_exp - SELECT id, - to_char(id, 'FM00000'), - id % 10 - FROM generate_series(1, 10) id; - ---Testcase 226: -SELECT * FROM case_exp; - --- CASE arg WHEN ---Testcase 227: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); ---Testcase 228: -SELECT * FROM case_exp WHERE c1 > (CASE mod(c1, 4) WHEN 0 THEN 1 WHEN 2 THEN 50 ELSE 100 END); - --- these are shippable ---Testcase 229: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; ---Testcase 230: -SELECT * FROM case_exp WHERE CASE c6 WHEN 'foo' THEN true ELSE c3 < 'bar' END; ---Testcase 231: -EXPLAIN (VERBOSE, COSTS OFF) -SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; ---Testcase 232: -SELECT * FROM case_exp WHERE CASE c3 WHEN c6 THEN true ELSE c3 < 'bar' END; - --- but this is not because of collation ---Testcase 233: -SELECT * FROM case_exp WHERE CASE c3 COLLATE "C" WHEN c6 THEN true ELSE c3 < 'bar' END; - ---Testcase 234: -DELETE FROM case_exp; - --- updatable option test (github pull 59) --- Full combinations --- D-default, T-true, F-false --- sD+tD - sT+tD - sF+tD - sD+tT - sD+tF - sT+tT - sF+tT - sF+tF - sT+tF --- SERVER default TABLE default --- SERVER true TABLE default --- SERVER false TABLE default --- SERVER default TABLE true --- SERVER default TABLE false --- SERVER true TABLE true --- SERVER false TABLE true --- SERVER false TABLE false --- SERVER true TABLE false --- SERVER default TABLE default ---Testcase 235: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (2, 'B', 3.01, 1); -- OK ---Testcase 236: -UPDATE RO_RW_test SET a='C' WHERE i=2; -- OK ---Testcase 237: -DELETE FROM RO_RW_test WHERE i=2; -- OK - --- SERVER true TABLE default ---Testcase 238: -ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); ---Testcase 239: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (3, 'D', 5.02, 8); -- OK ---Testcase 240: -UPDATE RO_RW_test SET a='E' WHERE i=3; -- OK ---Testcase 241: -DELETE FROM RO_RW_test WHERE i=3; -- OK ---Testcase 242: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (4, 'F', 0.005, 5); -- OK --- SERVER false TABLE default ---Testcase 243: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); ---Testcase 244: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (5, 'H', 0.03, 7); -- ERR ---Testcase 245: -UPDATE RO_RW_test SET a='E' WHERE i=4; -- ERR ---Testcase 246: -DELETE FROM RO_RW_test WHERE i=4; -- ERR - --- SERVER default TABLE true ---Testcase 247: -ALTER SERVER sqlite_svr OPTIONS (DROP updatable); ---Testcase 248: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (ADD updatable 'true'); ---Testcase 249: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (6, 'I', 1.403, 2); -- OK ---Testcase 250: -UPDATE RO_RW_test SET a='J' WHERE i=6; -- OK ---Testcase 251: -DELETE FROM RO_RW_test WHERE i=6; -- OK - --- SERVER default TABLE false ---Testcase 252: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); ---Testcase 253: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (7, 'K', 2.01, 4); -- ERR ---Testcase 254: -UPDATE RO_RW_test SET a='L' WHERE i=4; -- ERR ---Testcase 255: -DELETE FROM RO_RW_test WHERE i=4; -- ERR - --- SERVER true TABLE true ---Testcase 256: -ALTER SERVER sqlite_svr OPTIONS (ADD updatable 'true'); ---Testcase 257: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'true'); ---Testcase 258: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (8, 'M', 5.02, 8); -- OK ---Testcase 258: -UPDATE RO_RW_test SET a='N' WHERE i=8; -- OK ---Testcase 260: -DELETE FROM RO_RW_test WHERE i=8; -- OK ---Testcase 261: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (9, 'O', 3.21, 9); -- OK - --- SERVER false TABLE true ---Testcase 262: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'false'); ---Testcase 263: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (10, 'P', 4.15, 1); -- OK ---Testcase 264: -UPDATE RO_RW_test SET a='Q' WHERE i=9; -- OK ---Testcase 265: -DELETE FROM RO_RW_test WHERE i=9; -- OK - --- SERVER false TABLE false ---Testcase 266: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (SET updatable 'false'); ---Testcase 267: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (11, 'Q', 2.27, 5); -- ERR ---Testcase 268: -UPDATE RO_RW_test SET a='S' WHERE i=9; -- ERR ---Testcase 269: -DELETE FROM RO_RW_test WHERE i=9; -- ERR - --- SERVER true TABLE false ---Testcase 270: -ALTER SERVER sqlite_svr OPTIONS (SET updatable 'true'); ---Testcase 271: -INSERT INTO RO_RW_test (i, a, b, c) VALUES (12, 'R', 6.18, 11); -- ERR ---Testcase 272: -UPDATE RO_RW_test SET a='T' WHERE i=9; -- ERR ---Testcase 273: -DELETE FROM RO_RW_test WHERE i=9; -- ERR - ---Testcase 274: -ALTER SERVER sqlite_svr OPTIONS (DROP updatable); ---Testcase 275: -ALTER FOREIGN TABLE RO_RW_test OPTIONS (DROP updatable); - ---Testcase 276: -SELECT * FROM RO_RW_test ORDER BY i; - --- test for PR #76 github -CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -SELECT * FROM "Unicode data"; - --- updatable option test (github pull 59) -DROP FOREIGN TABLE RO_RW_test; - ---Testcase 142: -DROP FUNCTION test_param_WHERE(); ---Testcase 143: -DROP FOREIGN TABLE numbers; ---Testcase 144: -DROP FOREIGN TABLE department; ---Testcase 145: -DROP FOREIGN TABLE employee; ---Testcase 146: -DROP FOREIGN TABLE empdata; ---Testcase 147: -DROP FOREIGN TABLE multiprimary; ---Testcase 148: -DROP FOREIGN TABLE multiprimary2; ---Testcase 149: -DROP FOREIGN TABLE columntest; ---Testcase 150: -DROP FOREIGN TABLE noprimary; ---Testcase 161: -DROP FOREIGN TABLE fts_table; ---Testcase 222: -DROP FOREIGN TABLE grem1_1; ---Testcase 223: -DROP FOREIGN TABLE grem1_2; ---Testcase 235: -DROP FOREIGN TABLE case_exp; ---test for PR #76 github -DROP FOREIGN TABLE "Unicode data"; - ---Testcase 151: -DROP SERVER sqlite_svr; ---Testcase 152: -DROP EXTENSION sqlite_fdw CASCADE;