From d6387a8ea33129d69c45389ee20180d809a03f03 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, 27 Oct 2023 12:16:20 +0300 Subject: [PATCH] Add uuid support (#82) --- Makefile | 4 +- README.md | 111 +- connection.c | 19 +- deparse.c | 149 +- expected/12.15/extra/encodings.out | 10433 ++++++++++++++++++++ expected/12.15/extra/sqlite_fdw_post.out | 12 +- expected/12.15/sqlite_fdw.out | 10594 +-------------------- expected/12.15/type.out | 500 +- expected/13.11/extra/encodings.out | 10433 ++++++++++++++++++++ expected/13.11/extra/sqlite_fdw_post.out | 12 +- expected/13.11/sqlite_fdw.out | 10594 +-------------------- expected/13.11/type.out | 3 +- expected/14.8/extra/encodings.out | 10433 ++++++++++++++++++++ expected/14.8/extra/sqlite_fdw_post.out | 12 +- expected/14.8/sqlite_fdw.out | 10445 +------------------- expected/14.8/type.out | 3 +- expected/15.3/extra/encodings.out | 10433 ++++++++++++++++++++ expected/15.3/extra/sqlite_fdw_post.out | 12 +- expected/15.3/sqlite_fdw.out | 3 +- expected/15.3/type.out | 3 +- expected/16.0/extra/encodings.out | 10433 ++++++++++++++++++++ expected/16.0/extra/sqlite_fdw_post.out | 12 +- expected/16.0/sqlite_fdw.out | 3 +- expected/16.0/type.out | 502 +- sql/12.15/extra/encodings.sql | 3599 +++++++ sql/12.15/sqlite_fdw.sql | 3727 -------- sql/12.15/type.sql | 202 + sql/13.11/extra/encodings.sql | 3599 +++++++ sql/13.11/sqlite_fdw.sql | 3727 -------- sql/14.8/extra/encodings.sql | 3599 +++++++ sql/14.8/sqlite_fdw.sql | 3608 +------ sql/15.3/extra/encodings.sql | 3599 +++++++ sql/16.0/extra/encodings.sql | 3599 +++++++ sql/16.0/type.sql | 202 + sql/init_data/init.sql | 2 + sql/init_data/init_core.sql | 2 - sqlite_fdw.c | 230 +- sqlite_fdw.h | 7 +- sqlite_query.c | 452 +- test.sh | 2 +- uuid_extension.c | 227 + 41 files changed, 72597 insertions(+), 42944 deletions(-) create mode 100644 expected/12.15/extra/encodings.out create mode 100644 expected/13.11/extra/encodings.out create mode 100644 expected/14.8/extra/encodings.out create mode 100644 expected/15.3/extra/encodings.out create mode 100644 expected/16.0/extra/encodings.out create mode 100644 sql/12.15/extra/encodings.sql create mode 100644 sql/13.11/extra/encodings.sql create mode 100644 sql/14.8/extra/encodings.sql create mode 100644 sql/15.3/extra/encodings.sql create mode 100644 sql/16.0/extra/encodings.sql create mode 100644 uuid_extension.c diff --git a/Makefile b/Makefile index b3b2fac5..a7b3e373 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,12 @@ ########################################################################## MODULE_big = sqlite_fdw -OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o +OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o uuid_extension.o 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 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 sqlite_fdw type aggregate selectfunc REGRESS_OPTS = --encoding=utf8 SQLITE_LIB = sqlite3 diff --git a/README.md b/README.md index 179c8ac6..6d88c5d3 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Features - `CASE` expressions are pushdowned. - `LIMIT` and `OFFSET` are pushdowned (*when all tables queried are fdw) - Support `GROUP BY`, `HAVING` push-down. +- `mod()` is pushdowned. In PostgreSQL gives [argument-dependend data type](https://www.postgresql.org/docs/current/functions-math.html), but result from SQLite always [have `real` affinity](https://www.sqlite.org/lang_mathfunc.html#mod). - `upper`, `lower` and other character case functions are **not** pushed down because they does not work with UNICODE character in SQLite. - `WITH TIES` option is **not** pushed down. @@ -113,11 +114,50 @@ make install Usage ----- -## CREATE SERVER options +### Datatypes +**WARNING! The table above represents roadmap**, work still in progress. Untill it will be ended please refer real behaviour in non-obvious cases, where there is no ✔ or ∅ mark. + +This table represents `sqlite_fdw` behaviour if in PostgreSQL foreign table column some [affinity](https://www.sqlite.org/datatype3.html) of SQLite data is detected. + +* **∅** - no support (runtime error) +* **V** - transparent transformation +* **b** - show per-bit form +* **T** - cast to text in SQLite utf-8 encoding, then to **PostgreSQL text with current encoding of database** and then transparent transformation if applicable +* **✔** - transparent transformation where PostgreSQL datatype is equal to SQLite affinity +* **V+** - transparent transformation if appliacable +* **?** - not described/not tested +* **-** - transparent transformation is possible for PostgreSQL (always or for some special values), but not implemented in `sqlite_fdw`. + +SQLite `NULL` affinity always can be transparent converted for a nullable column in PostgreSQL. + +| 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 | +| bytea | b | b | ✔ | - | ? | 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 | +| int8 | ✔ | ? | T | - | `NULL` | INT | +| json | ? | ? | T | V+ | ? | TEXT | +| name | ? | ? | T | V | `NULL` | TEXT | +| numeric | V | V | T | ∅ | `NULL` | REAL | +| text | ? | ? | T | ✔ | V | TEXT | +| time | V | V | T | V+ | `NULL` | ? | +| timestamp | V | V | T | V+ | `NULL` | ? | +|timestamp + tz| V | V | T | V+ | `NULL` | ? | +| 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: -- **database** as *string*, **required** +- **database** as *string*, **required**, no default SQLite database path. @@ -137,7 +177,7 @@ Usage Specifies the number of rows which should be inserted in a single `INSERT` operation. This setting can be overridden for individual tables. -## CREATE USER MAPPING options +### CREATE USER MAPPING options There is no user or password conceptions in SQLite, hence `sqlite_fdw` no need any `CREATE USER MAPPING` command. @@ -146,7 +186,7 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL - read permission on SQLite database file; - write permissions both on SQLite database file and *directory it contains* if you need a modification. During `INSERT`, `UPDATE` or `DELETE` in SQLite database, SQLite engine functions makes temporary files with transaction data in the directory near SQLite database file. Hence without write permissions you'll have a message `failed to execute remote SQL: rc=8 attempt to write a readonly database`. -## CREATE FOREIGN TABLE options +### CREATE FOREIGN TABLE options `sqlite_fdw` accepts the following table-level options via the `CREATE FOREIGN TABLE` command: @@ -176,18 +216,45 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL - **column_type** as *string*, optional, no default - Option to convert INT SQLite column (epoch Unix Time) to be treated/visualized as TIMESTAMP in PostgreSQL. + 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`. + + - 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. - **key** as *boolean*, optional, default *false* Indicates a column as a part of primary key or unique key of SQLite table. -## IMPORT FOREIGN SCHEMA options +### IMPORT FOREIGN SCHEMA options `sqlite_fdw` supports [IMPORT FOREIGN SCHEMA](https://www.postgresql.org/docs/current/sql-importforeignschema.html) -(PostgreSQL 9.5+) and accepts no custom options for this command. +(PostgreSQL 9.5+) and accepts following options via the `IMPORT FOREIGN SCHEMA` command: -## TRUNCATE support +- **import_default** as *boolean*, optional, default *false* + + Allow borrowing default values from SQLite table DDL. + +- **import_not_null** as *boolean*, optional, default *true* + + Allow borrowing `NULL`/`NOT NULL` constraints from SQLite table DDL. + +#### Datatype tranlsation rules for `IMPORT FOREIGN SCHEMA` + +| SQLite | PostgreSQL | +|-------------:|:----------------:| +| int | bigint | +| char | text | +| clob | text | +| text | text | +| blob | bytea | +| real | double precision | +| floa | double precision | +| doub | double precision | +| datetime | timestamp | +| time | time | +| date | date | + +### TRUNCATE support `sqlite_fdw` implements the foreign data wrapper `TRUNCATE` API, available from PostgreSQL 14. @@ -225,10 +292,11 @@ sqlite_fdw_version Identifier case handling ------------------------ -PostgreSQL folds identifiers to lower case by default, SQlite is case insensetive by default. It's important +PostgreSQL folds identifiers to lower case by default, SQLite is case insensetive by default +and doesn't differ uppercase and lowercase ASCII base latin letters. It's important to be aware of potential issues with table and column names. -This SQL isn't correct for SQLite: `Error: duplicate column name: a`, but is correct for PostgreSQL +Following SQL isn't correct for SQLite: `Error: duplicate column name: a`, but is correct for PostgreSQL ```sql CREATE TABLE T ( @@ -236,6 +304,24 @@ This SQL isn't correct for SQLite: `Error: duplicate column name: a`, but is cor "a" NUMERIC ); ``` +Following SQLs is correct for both SQLite and PostgreSQL because there is no column +names with ASCII base latin letters *only*. + +```sql + CREATE TABLE T_кир ( + "А" INTEGER, + "а" NUMERIC + ); + CREATE TABLE T_ελλ ( + "Α" INTEGER, + "α" NUMERIC + ); + CREATE TABLE T_dia ( + "Ä" INTEGER, + "ä" NUMERIC + ); +``` + For SQLite there is no difference between ```sql @@ -432,6 +518,11 @@ Limitations - `sqlite_fdw` boolean values support exists only for `bool` columns in foreign table. SQLite documentation recommends to store boolean as value with `integer` [affinity](https://www.sqlite.org/datatype3.html). `NULL` isn't converted, 1 converted to `true`, all other `NOT NULL` values converted to `false`. During `SELECT ... WHERE condition_column` condition converted only to `condition_column`. - `sqlite_fdw` don't provides limited support of boolean values if `bool` column in foreign table mapped to SQLite `text` [affinity](https://www.sqlite.org/datatype3.html). +### 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. + Tests ----- Test directory have structure as following: diff --git a/connection.c b/connection.c index 7fd7fb67..63ebf3ee 100644 --- a/connection.c +++ b/connection.c @@ -39,7 +39,7 @@ typedef Oid ConnCacheKey; typedef struct ConnCacheEntry { ConnCacheKey key; /* hash key (must be first) */ - sqlite3 *conn; /* connection to foreign server, or NULL */ + sqlite3 *conn; /* connection to foreign server, or NULL */ /* Remaining fields are invalid when conn is NULL: */ int xact_depth; /* 0 = no xact open, 1 = main xact open, 2 = * one level of subxact open, etc */ @@ -85,7 +85,7 @@ static List *sqlite_append_stmt_to_list(List *list, sqlite3_stmt * stmt); typedef struct BusyHandlerArg { - sqlite3 *conn; + sqlite3 *conn; const char *sql; int level; } BusyHandlerArg; @@ -217,7 +217,20 @@ sqlite_open_db(const char *dbpath) (errcode(ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION), errmsg("failed to open SQLite DB. rc=%d err=%s", rc, perr))); } + /* 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))); + } return conn; } @@ -243,7 +256,7 @@ sqlite_make_new_connection(ConnCacheEntry *entry, ForeignServer *server) ObjectIdGetDatum(server->serverid)); foreach(lc, server->options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "database") == 0) dbpath = defGetString(def); diff --git a/deparse.c b/deparse.c index b5180cde..7f5e2d5d 100644 --- a/deparse.c +++ b/deparse.c @@ -134,7 +134,7 @@ static void sqlite_print_remote_placeholder(Oid paramtype, int32 paramtypmod, static void sqlite_deparse_relation(StringInfo buf, Relation rel); static void sqlite_deparse_target_list(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, Bitmapset *attrs_used, bool qualify_col, List **retrieved_attrs, bool is_concat, bool check_null); -static void sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo *root, bool qualify_col); +static void sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo *root, bool qualify_col, bool dml_context); static void sqlite_deparse_select(List *tlist, List **retrieved_attrs, deparse_expr_cxt *context); static void sqlite_deparse_case_expr(CaseExpr *node, deparse_expr_cxt *context); static void sqlite_deparse_null_if_expr(NullIfExpr *node, deparse_expr_cxt *context); @@ -193,7 +193,7 @@ sqlite_deparse_relation(StringInfo buf, Relation rel) */ foreach(lc, table->options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "table") == 0) relname = defGetString(def); @@ -345,12 +345,13 @@ sqlite_is_valid_type(Oid type) case TIMEOID: case TIMESTAMPOID: case TIMESTAMPTZOID: + case UUIDOID: return true; } return false; } -/* +/* * Returns true if it's safe to push down the sort expression described by * 'pathkey' to the foreign server. */ @@ -1737,7 +1738,7 @@ sqlite_deparse_insert(StringInfo buf, PlannerInfo *root, appendStringInfoString(buf, ", "); first = false; - sqlite_deparse_column_ref(buf, rtindex, attnum, root, false); + sqlite_deparse_column_ref(buf, rtindex, attnum, root, false, true); #if PG_VERSION_NUM >= 140000 } #endif @@ -1891,7 +1892,7 @@ sqlite_deparse_target_list(StringInfo buf, first = false; - sqlite_deparse_column_ref(buf, rtindex, i, root, qualify_col); + sqlite_deparse_column_ref(buf, rtindex, i, root, qualify_col, false); if (check_null) appendStringInfoString(buf, " IS NOT NULL) "); @@ -1989,7 +1990,7 @@ sqlite_deparse_truncate(StringInfo buf, * If it has a column_name FDW option, use that instead of attribute name. */ static void -sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo *root, bool qualify_col) +sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo *root, bool qualify_col, bool dml_context) { RangeTblEntry *rte; @@ -2046,7 +2047,9 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * char *colname = NULL; List *options; ListCell *lc; + Oid pg_atttyp = 0; + elog(DEBUG3, "sqlite_fdw : %s , varattrno != 0", __func__); /* varno must not be any of OUTER_VAR, INNER_VAR and INDEX_VAR. */ Assert(!IS_SPECIAL_VARNO(varno)); @@ -2057,14 +2060,15 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * options = GetForeignColumnOptions(rte->relid, varattno); foreach(lc, options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "column_name") == 0) { colname = defGetString(def); + elog(DEBUG3, "opt = %s\n", def->defname); break; } - elog(DEBUG1, "column name = %s\n", def->defname); + elog(DEBUG1, "column name = %s\n", colname); } /* @@ -2077,11 +2081,34 @@ sqlite_deparse_column_ref(StringInfo buf, int varno, int varattno, PlannerInfo * #else colname = get_attname(rte->relid, varattno); #endif - - if (qualify_col) - ADD_REL_QUALIFIER(buf, varno); - - appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); + 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 + * internal storage, hence usually this will not original text data. + */ + if (pg_atttyp == UUIDOID && !dml_context ) + { + 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("); + if (qualify_col) + ADD_REL_QUALIFIER(buf, varno); + appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); + appendStringInfoString(buf, "),"); + if (qualify_col) + ADD_REL_QUALIFIER(buf, varno); + appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); + appendStringInfoString(buf, ")"); + } + else + { + elog(DEBUG3, "column name without data unification = \"%s\"", colname); + if (qualify_col) + ADD_REL_QUALIFIER(buf, varno); + appendStringInfoString(buf, sqlite_quote_identifier(colname, '`')); + } } } @@ -2100,13 +2127,13 @@ sqlite_deparse_column_option(int varno, int varattno, PlannerInfo *root, char *o rte = planner_rt_fetch(varno, root); /* - * If it's a column of a foreign table, and it has the column_name FDW + * If it's a column of a foreign table, and it has the optionname value named FDW * option, use that value. */ options = GetForeignColumnOptions(rte->relid, varattno); foreach(lc, options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, optionname) == 0) { @@ -2114,7 +2141,6 @@ sqlite_deparse_column_option(int varno, int varattno, PlannerInfo *root, char *o break; } } - return coloptionvalue; } @@ -2138,7 +2164,7 @@ sqlite_deparse_string_literal(StringInfo buf, const char *val) const char *valptr; sqlite_text_val = pg_text_value_to_sqlite_text(val); - + appendStringInfoChar(buf, '\''); for (valptr = sqlite_text_val; *valptr; valptr++) { @@ -2256,7 +2282,7 @@ sqlite_deparse_update(StringInfo buf, PlannerInfo *root, if (!first) appendStringInfoString(buf, ", "); first = false; - sqlite_deparse_column_ref(buf, rtindex, attnum, root, false); + sqlite_deparse_column_ref(buf, rtindex, attnum, root, false, true); appendStringInfo(buf, " = ?"); pindex++; #if PG_VERSION_NUM >= 140000 @@ -2269,7 +2295,7 @@ sqlite_deparse_update(StringInfo buf, PlannerInfo *root, int attnum = lfirst_int(lc); appendStringInfo(buf, i == 0 ? " WHERE " : " AND "); - sqlite_deparse_column_ref(buf, rtindex, attnum, root, false); + sqlite_deparse_column_ref(buf, rtindex, attnum, root, false, true); appendStringInfo(buf, "=?"); i++; } @@ -2304,6 +2330,7 @@ sqlite_deparse_direct_update_sql(StringInfo buf, PlannerInfo *root, ListCell *lc; ListCell *lc2; + elog(DEBUG3, "sqlite_fdw : %s\n", __func__); /* Set up context struct for recursion */ context.root = root; context.foreignrel = foreignrel; @@ -2343,7 +2370,7 @@ sqlite_deparse_direct_update_sql(StringInfo buf, PlannerInfo *root, appendStringInfoString(buf, ", "); first = false; - sqlite_deparse_column_ref(buf, rtindex, attnum, root, false); + sqlite_deparse_column_ref(buf, rtindex, attnum, root, false, true); appendStringInfoString(buf, " = "); sqlite_deparse_expr((Expr *) tle->expr, &context); } @@ -2389,7 +2416,7 @@ sqlite_deparse_delete(StringInfo buf, PlannerInfo *root, int attnum = lfirst_int(lc); appendStringInfo(buf, i == 0 ? " WHERE " : " AND "); - sqlite_deparse_column_ref(buf, rtindex, attnum, root, false); + sqlite_deparse_column_ref(buf, rtindex, attnum, root, false, true); appendStringInfo(buf, "=?"); i++; } @@ -2416,6 +2443,8 @@ 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 */ context.root = root; @@ -2481,7 +2510,7 @@ sqlite_deparse_var(Var *node, deparse_expr_cxt *context) if (bms_is_member(node->varno, relids) && node->varlevelsup == 0) { /* Var belongs to foreign table */ - sqlite_deparse_column_ref(buf, node->varno, node->varattno, context->root, qualify_col); + sqlite_deparse_column_ref(buf, node->varno, node->varattno, context->root, qualify_col, false); } else { @@ -2576,7 +2605,7 @@ sqlite_deparse_const(Const *node, deparse_expr_cxt *context, int showtype) extval = OidOutputFunctionCall(typoutput, node->constvalue); /* - * No need to quote unless it's a special value such as 'NaN'. + * No need to quote unless it's a special value such as 'NaN' or 'Infinity'. * See comments in get_const_expr(). */ if (strspn(extval, "0123456789+-eE.") == strlen(extval)) @@ -2596,15 +2625,15 @@ sqlite_deparse_const(Const *node, deparse_expr_cxt *context, int showtype) appendStringInfo(buf, "B\'%s\'", extval); break; case BOOLOID: - extval = OidOutputFunctionCall(typoutput, node->constvalue); - if (strcmp(extval, "t") == 0) - appendStringInfoString(buf, "1"); - else - appendStringInfoString(buf, "0"); + { + extval = OidOutputFunctionCall(typoutput, node->constvalue); + if (strcmp(extval, "t") == 0) + appendStringInfoString(buf, "1"); + else + appendStringInfoString(buf, "0"); + } break; - case BYTEAOID: - /* * the string for BYTEA always seems to be in the format "\\x##" * where # is a hex digit, Even if the value passed in is @@ -2616,26 +2645,48 @@ 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); + { + convert_timestamp_tounixepoch = false; + extval = OidOutputFunctionCall(typoutput, node->constvalue); - if (context->complementarynode != NULL) - { - varnode = get_complementary_var_node(context->complementarynode); - if (varnode != NULL) + if (context->complementarynode != NULL) { - sqlitecolumntype = sqlite_deparse_column_option(varnode->varno, varnode->varattno, context->root, "column_type"); + varnode = get_complementary_var_node(context->complementarynode); + if (varnode != NULL) + { + sqlitecolumntype = sqlite_deparse_column_option(varnode->varno, varnode->varattno, context->root, "column_type"); - if (sqlitecolumntype != NULL && strcmp(sqlitecolumntype, "INT") == 0) - convert_timestamp_tounixepoch = true; + if (sqlitecolumntype != NULL && strcasecmp(sqlitecolumntype, "INT") == 0) + convert_timestamp_tounixepoch = true; + } } - } - - if (convert_timestamp_tounixepoch) - appendStringInfo(buf, "strftime('%%s', '%s')", extval); - else - sqlite_deparse_string_literal(buf, extval); + if (convert_timestamp_tounixepoch) + appendStringInfo(buf, "strftime('%%s', '%s')", extval); + else + sqlite_deparse_string_literal(buf, extval); + } + break; + 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 + * allows us to quickly convert postgres escaped strings to sqlite + * ones for comparison + */ + { + int i = 0; + extval = OidOutputFunctionCall(typoutput, node->constvalue); + appendStringInfo(buf, "X\'"); + for (i = 0; i < strlen(extval); i++) + { + char c = extval[i]; + if ( c != '-' ) + appendStringInfoChar(buf, c); + } + appendStringInfo(buf, "\'"); + } break; default: extval = OidOutputFunctionCall(typoutput, node->constvalue); @@ -2747,7 +2798,7 @@ sqlite_deparse_func_expr(FuncExpr *node, deparse_expr_cxt *context) } /* - * Deparse given operator expression. To avoid problems around + * Deparse given operator expression. To avoid problems around * priority of operations, we always parenthesize the arguments. */ static void @@ -3269,7 +3320,7 @@ sqlite_is_builtin(Oid oid) { #if PG_VERSION_NUM >= 120000 return (oid < FirstGenbkiObjectId); -#else +#else return (oid < FirstBootstrapObjectId); #endif } @@ -3463,7 +3514,7 @@ sqlite_append_order_by_clause(List *pathkeys, bool has_final_sort, deparse_expr_ appendStringInfo(buf, " ORDER BY"); foreach(lcell, pathkeys) { - PathKey *pathkey = lfirst(lcell); + PathKey *pathkey = lfirst(lcell); Expr *em_expr; int sqliteVersion = sqlite3_libversion_number(); @@ -3541,7 +3592,7 @@ sqlite_append_order_by_clause(List *pathkeys, bool has_final_sort, deparse_expr_ * Append the ASC, DESC, USING and NULLS FIRST / NULLS LAST parts * of an ORDER BY clause. */ -static void sqlite_append_order_by_suffix(Oid sortop, Oid sortcoltype, +static void sqlite_append_order_by_suffix(Oid sortop, Oid sortcoltype, bool nulls_first, deparse_expr_cxt *context) { diff --git a/expected/12.15/extra/encodings.out b/expected/12.15/extra/encodings.out new file mode 100644 index 00000000..eea172c4 --- /dev/null +++ b/expected/12.15/extra/encodings.out @@ -0,0 +1,10433 @@ +-- 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/12.15/extra/sqlite_fdw_post.out b/expected/12.15/extra/sqlite_fdw_post.out index 9a271800..818b0270 100644 --- a/expected/12.15/extra/sqlite_fdw_post.out +++ b/expected/12.15/extra/sqlite_fdw_post.out @@ -4622,16 +4622,20 @@ DROP FUNCTION f_test(int); ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 WHERE c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 274: SELECT ft1.c1, ft2.c2, ft1.c8 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 275: SELECT ft1.c1, ft2.c2, ft1 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE text; -- =================================================================== -- subtransaction diff --git a/expected/12.15/sqlite_fdw.out b/expected/12.15/sqlite_fdw.out index 74212b21..cfec8e7a 100644 --- a/expected/12.15/sqlite_fdw.out +++ b/expected/12.15/sqlite_fdw.out @@ -17,8 +17,6 @@ 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 @@ -1501,7 +1499,8 @@ SELECT * FROM fts_table; -- should work 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" = SQLite "integer", value = 'this is name' +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'); @@ -1668,160 +1667,6 @@ 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) - --- 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: @@ -1844,10442 +1689,7 @@ DROP FOREIGN TABLE noprimary; DROP FOREIGN TABLE fts_table; --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/12.15/type.out b/expected/12.15/type.out index b361c2f1..f4cc51b4 100644 --- a/expected/12.15/type.out +++ b/expected/12.15/type.out @@ -499,9 +499,505 @@ 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 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 42 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 @@ -543,4 +1039,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/13.11/extra/encodings.out b/expected/13.11/extra/encodings.out new file mode 100644 index 00000000..eea172c4 --- /dev/null +++ b/expected/13.11/extra/encodings.out @@ -0,0 +1,10433 @@ +-- 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/13.11/extra/sqlite_fdw_post.out b/expected/13.11/extra/sqlite_fdw_post.out index 05e0bc67..237f7a48 100644 --- a/expected/13.11/extra/sqlite_fdw_post.out +++ b/expected/13.11/extra/sqlite_fdw_post.out @@ -4624,16 +4624,20 @@ DROP FUNCTION f_test(int); ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 WHERE c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 274: SELECT ft1.c1, ft2.c2, ft1.c8 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 275: SELECT ft1.c1, ft2.c2, ft1 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE text; -- =================================================================== -- subtransaction diff --git a/expected/13.11/sqlite_fdw.out b/expected/13.11/sqlite_fdw.out index 74212b21..cfec8e7a 100644 --- a/expected/13.11/sqlite_fdw.out +++ b/expected/13.11/sqlite_fdw.out @@ -17,8 +17,6 @@ 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 @@ -1501,7 +1499,8 @@ SELECT * FROM fts_table; -- should work 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" = SQLite "integer", value = 'this is name' +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'); @@ -1668,160 +1667,6 @@ 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) - --- 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: @@ -1844,10442 +1689,7 @@ DROP FOREIGN TABLE noprimary; DROP FOREIGN TABLE fts_table; --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/13.11/type.out b/expected/13.11/type.out index b361c2f1..35bf83ef 100644 --- a/expected/13.11/type.out +++ b/expected/13.11/type.out @@ -501,7 +501,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 42 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 @@ -526,6 +526,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 diff --git a/expected/14.8/extra/encodings.out b/expected/14.8/extra/encodings.out new file mode 100644 index 00000000..eea172c4 --- /dev/null +++ b/expected/14.8/extra/encodings.out @@ -0,0 +1,10433 @@ +-- 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/14.8/extra/sqlite_fdw_post.out b/expected/14.8/extra/sqlite_fdw_post.out index 5c5c6bd1..c5acaac7 100644 --- a/expected/14.8/extra/sqlite_fdw_post.out +++ b/expected/14.8/extra/sqlite_fdw_post.out @@ -4721,16 +4721,20 @@ DROP TABLE reind_fdw_parent; ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8) WHERE x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 274: SELECT ftx.x1, ft2.c2, ftx.x8 FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 275: SELECT ftx.x1, ft2.c2, ftx FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 811: ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE text; -- =================================================================== diff --git a/expected/14.8/sqlite_fdw.out b/expected/14.8/sqlite_fdw.out index 54b4a51a..4457d647 100644 --- a/expected/14.8/sqlite_fdw.out +++ b/expected/14.8/sqlite_fdw.out @@ -1483,7 +1483,8 @@ SELECT * FROM fts_table; -- should work 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" = SQLite "integer", value = 'this is name' +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'); @@ -1805,6 +1806,15 @@ SELECT * FROM RO_RW_test ORDER BY i; 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); -- test for PR #76 github CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; @@ -1866,10436 +1876,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/14.8/type.out b/expected/14.8/type.out index b361c2f1..35bf83ef 100644 --- a/expected/14.8/type.out +++ b/expected/14.8/type.out @@ -501,7 +501,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 42 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 @@ -526,6 +526,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 diff --git a/expected/15.3/extra/encodings.out b/expected/15.3/extra/encodings.out new file mode 100644 index 00000000..eea172c4 --- /dev/null +++ b/expected/15.3/extra/encodings.out @@ -0,0 +1,10433 @@ +-- 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/extra/sqlite_fdw_post.out b/expected/15.3/extra/sqlite_fdw_post.out index fb0b5300..421bccef 100644 --- a/expected/15.3/extra/sqlite_fdw_post.out +++ b/expected/15.3/extra/sqlite_fdw_post.out @@ -4954,16 +4954,20 @@ DROP TABLE reind_fdw_parent; ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8) WHERE x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 274: SELECT ftx.x1, ft2.c2, ftx.x8 FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 275: SELECT ftx.x1, ft2.c2, ftx FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' -- ANALYZE ft1; -- ERROR -- =================================================================== -- local type can be different from remote type in some cases, diff --git a/expected/15.3/sqlite_fdw.out b/expected/15.3/sqlite_fdw.out index 54b4a51a..a1a8708c 100644 --- a/expected/15.3/sqlite_fdw.out +++ b/expected/15.3/sqlite_fdw.out @@ -1483,7 +1483,8 @@ SELECT * FROM fts_table; -- should work 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" = SQLite "integer", value = 'this is name' +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'); diff --git a/expected/15.3/type.out b/expected/15.3/type.out index b361c2f1..35bf83ef 100644 --- a/expected/15.3/type.out +++ b/expected/15.3/type.out @@ -501,7 +501,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 42 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 @@ -526,6 +526,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 diff --git a/expected/16.0/extra/encodings.out b/expected/16.0/extra/encodings.out new file mode 100644 index 00000000..eea172c4 --- /dev/null +++ b/expected/16.0/extra/encodings.out @@ -0,0 +1,10433 @@ +-- 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/extra/sqlite_fdw_post.out b/expected/16.0/extra/sqlite_fdw_post.out index ef5cbf91..921b8a04 100644 --- a/expected/16.0/extra/sqlite_fdw_post.out +++ b/expected/16.0/extra/sqlite_fdw_post.out @@ -4999,16 +4999,20 @@ DROP TABLE reind_fdw_parent; ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8) WHERE x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 274: SELECT ftx.x1, ft2.c2, ftx.x8 FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 275: SELECT ftx.x1, ft2.c2, ftx FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" = SQLite "integer", value = 'foo' +ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" +HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' -- ANALYZE ft1; -- ERROR -- =================================================================== -- local type can be different from remote type in some cases, diff --git a/expected/16.0/sqlite_fdw.out b/expected/16.0/sqlite_fdw.out index 54b4a51a..a1a8708c 100644 --- a/expected/16.0/sqlite_fdw.out +++ b/expected/16.0/sqlite_fdw.out @@ -1483,7 +1483,8 @@ SELECT * FROM fts_table; -- should work 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" = SQLite "integer", value = 'this is name' +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'); diff --git a/expected/16.0/type.out b/expected/16.0/type.out index b361c2f1..ab915e55 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -499,9 +499,507 @@ 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 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 42 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 @@ -543,4 +1041,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/sql/12.15/extra/encodings.sql b/sql/12.15/extra/encodings.sql new file mode 100644 index 00000000..9db05943 --- /dev/null +++ b/sql/12.15/extra/encodings.sql @@ -0,0 +1,3599 @@ +-- 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/12.15/sqlite_fdw.sql b/sql/12.15/sqlite_fdw.sql index bcd44f45..abad6560 100644 --- a/sql/12.15/sqlite_fdw.sql +++ b/sql/12.15/sqlite_fdw.sql @@ -18,9 +18,6 @@ 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: @@ -614,129 +611,6 @@ 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; - --- 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: @@ -759,3610 +633,9 @@ DROP FOREIGN TABLE noprimary; DROP FOREIGN TABLE fts_table; --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/12.15/type.sql b/sql/12.15/type.sql index c6442406..7565fdd4 100644 --- a/sql/12.15/type.sql +++ b/sql/12.15/type.sql @@ -266,5 +266,207 @@ 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 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.11/extra/encodings.sql b/sql/13.11/extra/encodings.sql new file mode 100644 index 00000000..9db05943 --- /dev/null +++ b/sql/13.11/extra/encodings.sql @@ -0,0 +1,3599 @@ +-- 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/13.11/sqlite_fdw.sql b/sql/13.11/sqlite_fdw.sql index bcd44f45..abad6560 100644 --- a/sql/13.11/sqlite_fdw.sql +++ b/sql/13.11/sqlite_fdw.sql @@ -18,9 +18,6 @@ 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: @@ -614,129 +611,6 @@ 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; - --- 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: @@ -759,3610 +633,9 @@ DROP FOREIGN TABLE noprimary; DROP FOREIGN TABLE fts_table; --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/14.8/extra/encodings.sql b/sql/14.8/extra/encodings.sql new file mode 100644 index 00000000..9db05943 --- /dev/null +++ b/sql/14.8/extra/encodings.sql @@ -0,0 +1,3599 @@ +-- 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/14.8/sqlite_fdw.sql b/sql/14.8/sqlite_fdw.sql index a027a841..cde82174 100644 --- a/sql/14.8/sqlite_fdw.sql +++ b/sql/14.8/sqlite_fdw.sql @@ -749,6 +749,14 @@ 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); + -- test for PR #76 github CREATE FOREIGN TABLE "Unicode data" (i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; @@ -789,3603 +797,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/15.3/extra/encodings.sql b/sql/15.3/extra/encodings.sql new file mode 100644 index 00000000..9db05943 --- /dev/null +++ b/sql/15.3/extra/encodings.sql @@ -0,0 +1,3599 @@ +-- 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/extra/encodings.sql b/sql/16.0/extra/encodings.sql new file mode 100644 index 00000000..9db05943 --- /dev/null +++ b/sql/16.0/extra/encodings.sql @@ -0,0 +1,3599 @@ +-- 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/type.sql b/sql/16.0/type.sql index c6442406..7565fdd4 100644 --- a/sql/16.0/type.sql +++ b/sql/16.0/type.sql @@ -266,5 +266,207 @@ 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 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/init_data/init.sql b/sql/init_data/init.sql index 64db2b7b..a234ee34 100644 --- a/sql/init_data/init.sql +++ b/sql/init_data/init.sql @@ -33,6 +33,8 @@ 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_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)); CREATE TABLE notype (a); CREATE TABLE typetest (i integer, v varchar(10) , c char(10), t text, d datetime, ti timestamp); diff --git a/sql/init_data/init_core.sql b/sql/init_data/init_core.sql index a5700db2..8f608cd4 100644 --- a/sql/init_data/init_core.sql +++ b/sql/init_data/init_core.sql @@ -41,8 +41,6 @@ INSERT INTO INT2_TBL(f1) VALUES ('0 '); INSERT INTO INT2_TBL(f1) VALUES (' 1234 '); --Testcase 3: INSERT INTO INT2_TBL(f1) VALUES (' -1234'); ---Testcase 4: -INSERT INTO INT2_TBL(f1) VALUES ('34.5'); -- largest and smallest values --Testcase 5: INSERT INTO INT2_TBL(f1) VALUES ('32767'); diff --git a/sqlite_fdw.c b/sqlite_fdw.c index 20ab9120..9cb35f3e 100644 --- a/sqlite_fdw.c +++ b/sqlite_fdw.c @@ -79,7 +79,7 @@ PG_MODULE_MAGIC; * See sqlite3ResultSetOfSelect in select.c of SQLite */ #define DEFAULT_ROW_ESTIMATE 1000000 -#define DEFAULTE_NUM_ROWS 1000 +#define DEFAULTE_NUM_ROWS 1000 #define IS_KEY_COLUMN(A) ((strcmp(A->defname, "key") == 0) && \ (strcmp(strVal(A->arg), "true") == 0)) @@ -339,7 +339,8 @@ static void sqlite_process_query_params(ExprContext *econtext, List *param_exprs, const char **param_values, sqlite3_stmt * *stmt, - Oid *param_types); + Oid *param_types, + Oid foreignTableId); static void sqlite_create_cursor(ForeignScanState *node); static void sqlite_execute_dml_stmt(ForeignScanState *node); @@ -715,7 +716,7 @@ sqlite_get_useful_pathkeys_for_relation(PlannerInfo *root, RelOptInfo *rel) foreach(lc, root->query_pathkeys) { - PathKey *pathkey = (PathKey *) lfirst(lc); + PathKey *pathkey = (PathKey *) lfirst(lc); /* * The planner and executor don't have any clever strategy for * taking data sorted by a prefix of the query's pathkeys and @@ -881,10 +882,10 @@ sqlite_all_baserels_are_foreign(PlannerInfo *root) */ foreach(l, root->append_rel_list) { - AppendRelInfo *appinfo = lfirst_node(AppendRelInfo, l); - int childRTindex; - RangeTblEntry *childRTE; - RelOptInfo *childrel; + AppendRelInfo *appinfo = lfirst_node(AppendRelInfo, l); + int childRTindex; + RangeTblEntry *childRTE; + RelOptInfo *childrel; /* Re-locate the child RTE and RelOptInfo */ childRTindex = appinfo->child_relid; @@ -1176,8 +1177,8 @@ sqliteGetForeignPlan(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid, if (best_path->fdw_private) { #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)); + 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)); @@ -1463,15 +1464,15 @@ sqlite_get_tupdesc_for_join_scan_tuples(ForeignScanState *node) static void sqliteBeginForeignScan(ForeignScanState *node, int eflags) { - sqlite3 *conn = NULL; + sqlite3 *conn = NULL; SqliteFdwExecState *festate = NULL; - EState *estate = node->ss.ps.state; - ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; - int numParams; - ForeignTable *table; - ForeignServer *server; - RangeTblEntry *rte; - int rtindex; + EState *estate = node->ss.ps.state; + ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; + int numParams; + ForeignTable *table; + ForeignServer *server; + RangeTblEntry *rte; + int rtindex; elog(DEBUG1, "sqlite_fdw : %s", __func__); @@ -1579,8 +1580,8 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, bool *is_null, SqliteFdwExecState * festate) { - ListCell *lc = NULL; - int stmt_colid = 0; + ListCell *lc = NULL; + int stmt_colid = 0; NullableDatum sqlite_coverted; memset(row, 0, sizeof(Datum) * tupleDescriptor->natts); @@ -1589,11 +1590,9 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, foreach(lc, retrieved_attrs) { int attnum = lfirst_int(lc) - 1; - Oid pgtype = TupleDescAttr(tupleDescriptor, attnum)->atttypid; - int32 pgtypmod = TupleDescAttr(tupleDescriptor, attnum)->atttypmod; - int sqlite_value_affinity; + Form_pg_attribute att = TupleDescAttr(tupleDescriptor, attnum); + int sqlite_value_affinity = sqlite3_column_type(stmt, stmt_colid); - sqlite_value_affinity = sqlite3_column_type(stmt, stmt_colid); if ( sqlite_value_affinity != SQLITE_NULL) { /* TODO: Processing of column options about special convert behaviour @@ -1605,8 +1604,8 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, * Flags about special convert behaviour from options on database, table or column level */ - sqlite_coverted = sqlite_convert_to_pg(pgtype, pgtypmod, - stmt, stmt_colid, festate->attinmeta, + sqlite_coverted = sqlite_convert_to_pg(att, stmt, stmt_colid, + festate->attinmeta, attnum, sqlite_value_affinity, AffinityBehaviourFlags); if (!sqlite_coverted.isnull) { @@ -1627,12 +1626,11 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, static TupleTableSlot * sqliteIterateForeignScan(ForeignScanState *node) { - SqliteFdwExecState *festate = (SqliteFdwExecState *) node->fdw_state; - TupleTableSlot *tupleSlot = node->ss.ss_ScanTupleSlot; - EState *estate = node->ss.ps.state; - TupleDesc tupleDescriptor = tupleSlot->tts_tupleDescriptor; - int rc = 0; + TupleTableSlot *tupleSlot = node->ss.ss_ScanTupleSlot; + EState *estate = node->ss.ps.state; + TupleDesc tupleDescriptor = tupleSlot->tts_tupleDescriptor; + int rc = 0; elog(DEBUG1, "sqlite_fdw : %s", __func__); @@ -1812,7 +1810,7 @@ sqliteAddForeignUpdateTargets( options = GetForeignColumnOptions(relid, attrno); foreach(option, options) { - DefElem *def = (DefElem *) lfirst(option); + DefElem *def = (DefElem *) lfirst(option); /* if "key" is set, add a resjunk for this column */ if (IS_KEY_COLUMN(def)) @@ -1864,17 +1862,17 @@ sqlitePlanForeignModify(PlannerInfo *root, Index resultRelation, int subplan_index) { - CmdType operation = plan->operation; - RangeTblEntry *rte = planner_rt_fetch(resultRelation, root); - Relation rel; - List *targetAttrs = NULL; - StringInfoData sql; - Oid foreignTableId; - TupleDesc tupdesc; - int i; - List *condAttr = NULL; - bool doNothing = false; - int values_end_len = -1; + CmdType operation = plan->operation; + RangeTblEntry *rte = planner_rt_fetch(resultRelation, root); + Relation rel; + List *targetAttrs = NULL; + StringInfoData sql; + Oid foreignTableId; + TupleDesc tupdesc; + int i; + List *condAttr = NULL; + bool doNothing = false; + int values_end_len = -1; elog(DEBUG1, "sqlite_fdw : %s", __func__); @@ -1921,7 +1919,6 @@ sqlitePlanForeignModify(PlannerInfo *root, attno = col + FirstLowInvalidHeapAttributeNumber; #else Bitmapset *tmpset; - tmpset = bms_union(rte->updatedCols, rte->extraUpdatedCols); while ((attno = bms_first_member(tmpset)) >= 0) @@ -1967,7 +1964,7 @@ sqlitePlanForeignModify(PlannerInfo *root, options = GetForeignColumnOptions(foreignTableId, attrno); foreach(option, options) { - DefElem *def = (DefElem *) lfirst(option); + DefElem *def = (DefElem *) lfirst(option); if (IS_KEY_COLUMN(def)) { @@ -2332,23 +2329,23 @@ sqlitePlanDirectModify(PlannerInfo *root, Index resultRelation, int subplan_index) { - CmdType operation = plan->operation; + CmdType operation = plan->operation; #if PG_VERSION_NUM < 140000 - Plan *subplan; + Plan *subplan; #endif - RelOptInfo *foreignrel; - RangeTblEntry *rte; + RelOptInfo *foreignrel; + RangeTblEntry *rte; SqliteFdwRelationInfo *fpinfo; - Relation rel; - StringInfoData sql; - ForeignScan *fscan; + Relation rel; + StringInfoData sql; + ForeignScan *fscan; #if PG_VERSION_NUM >= 140000 - List *processed_tlist = NIL; + List *processed_tlist = NIL; #endif - List *targetAttrs = NIL; - List *remote_exprs; - List *params_list = NIL; - List *retrieved_attrs = NIL; + List *targetAttrs = NIL; + List *remote_exprs; + List *params_list = NIL; + List *retrieved_attrs = NIL; elog(DEBUG1, "sqlite_fdw : %s", __func__); @@ -2571,13 +2568,13 @@ sqlitePlanDirectModify(PlannerInfo *root, static void sqliteBeginDirectModify(ForeignScanState *node, int eflags) { - ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; - EState *estate = node->ss.ps.state; + ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; + EState *estate = node->ss.ps.state; SqliteFdwDirectModifyState *dmstate; - Index rtindex; - ForeignTable *table; - ForeignServer *server; - int numParams; + Index rtindex; + ForeignTable *table; + ForeignServer *server; + int numParams; elog(DEBUG1, "sqlite_fdw : %s", __func__); @@ -2767,11 +2764,11 @@ sqliteExecForeignTruncate(List *rels, DropBehavior behavior, bool restart_seqs) { - Oid serverid = InvalidOid; - sqlite3 *conn = NULL; - StringInfoData sql; - ListCell *lc; - bool server_truncatable = true; + Oid serverid = InvalidOid; + sqlite3 *conn = NULL; + StringInfoData sql; + ListCell *lc; + bool server_truncatable = true; /* * By default, all sqlite_fdw foreign tables are assumed truncatable. This @@ -2799,7 +2796,7 @@ sqliteExecForeignTruncate(List *rels, foreach(cell, server->options) { - DefElem *defel = (DefElem *) lfirst(cell); + DefElem *defel = (DefElem *) lfirst(cell); if (strcmp(defel->defname, "truncatable") == 0) { @@ -2819,7 +2816,7 @@ sqliteExecForeignTruncate(List *rels, truncatable = server_truncatable; foreach(cell, table->options) { - DefElem *defel = (DefElem *) lfirst(cell); + DefElem *defel = (DefElem *) lfirst(cell); if (strcmp(defel->defname, "truncatable") == 0) { @@ -2864,8 +2861,6 @@ bindJunkColumnValue(SqliteFdwExecState * fmstate, int bindnum) { int i; - Datum value; - Oid typeoid; /* Bind where condition using junk column */ for (i = 0; i < slot->tts_tupleDescriptor->natts; ++i) @@ -2881,21 +2876,19 @@ bindJunkColumnValue(SqliteFdwExecState * fmstate, options = GetForeignColumnOptions(foreignTableId, attrno); foreach(option, options) { - DefElem *def = (DefElem *) lfirst(option); + DefElem *def = (DefElem *) lfirst(option); bool is_null = false; if (IS_KEY_COLUMN(def)) { + Datum value; /* Get the id that was passed up as a resjunk column */ value = ExecGetJunkAttribute(planSlot, fmstate->junk_idx[i], &is_null); - typeoid = att->atttypid; - /* Bind qual */ - sqlite_bind_sql_var(typeoid, bindnum, value, fmstate->stmt, &is_null); + sqlite_bind_sql_var(att, bindnum, value, fmstate->stmt, &is_null, foreignTableId); bindnum++; } } - } } @@ -2909,7 +2902,6 @@ sqliteExecForeignUpdate(EState *estate, TupleTableSlot *slot, TupleTableSlot *planSlot) { - SqliteFdwExecState *fmstate = (SqliteFdwExecState *) resultRelInfo->ri_FdwState; Relation rel = resultRelInfo->ri_RelationDesc; Oid foreignTableId = RelationGetRelid(rel); @@ -2924,9 +2916,9 @@ sqliteExecForeignUpdate(EState *estate, foreach(lc, fmstate->retrieved_attrs) { int attnum = lfirst_int(lc); - Oid type; bool is_null; Datum value = 0; + Form_pg_attribute bind_att = NULL; #if PG_VERSION_NUM >= 140000 TupleDesc tupdesc = RelationGetDescr(fmstate->rel); Form_pg_attribute attr = TupleDescAttr(tupdesc, attnum - 1); @@ -2936,11 +2928,10 @@ sqliteExecForeignUpdate(EState *estate, continue; #endif /* first attribute cannot be in target list attribute */ - type = TupleDescAttr(slot->tts_tupleDescriptor, attnum - 1)->atttypid; - + bind_att = TupleDescAttr(slot->tts_tupleDescriptor, attnum - 1); value = slot_getattr(slot, attnum, &is_null); - sqlite_bind_sql_var(type, bindnum, value, fmstate->stmt, &is_null); + sqlite_bind_sql_var(bind_att, bindnum, value, fmstate->stmt, &is_null, foreignTableId); bindnum++; i++; } @@ -3054,22 +3045,22 @@ static List * sqliteImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid) { - sqlite3 *volatile db = NULL; - sqlite3_stmt *volatile sql_stmt = NULL; - sqlite3_stmt *volatile pragma_stmt = NULL; - ForeignServer *server; - ListCell *lc; - StringInfoData buf; - List *commands = NIL; - bool import_default = false; - bool import_not_null = true; + sqlite3 *volatile db = NULL; + sqlite3_stmt *volatile sql_stmt = NULL; + sqlite3_stmt *volatile pragma_stmt = NULL; + ForeignServer *server; + ListCell *lc; + StringInfoData buf; + List *commands = NIL; + bool import_default = false; + bool import_not_null = true; elog(DEBUG1, "sqlite_fdw : %s", __func__); /* Parse statement options */ foreach(lc, stmt->options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "import_default") == 0) import_default = defGetBoolean(def); @@ -4245,7 +4236,7 @@ sqlite_add_foreign_ordered_paths(PlannerInfo *root, RelOptInfo *input_rel, /* Assess if it is safe to push down the final sort */ foreach(lc, root->sort_pathkeys) { - PathKey *pathkey = (PathKey *) lfirst(lc); + PathKey *pathkey = (PathKey *) lfirst(lc); EquivalenceClass *pathkey_ec = pathkey->pk_eclass; /* @@ -4567,7 +4558,7 @@ sqlite_estimate_path_cost_size(PlannerInfo *root, List *remote_param_join_conds; List *local_param_join_conds; StringInfoData sql; - sqlite3 *conn; + sqlite3 *conn; Selectivity local_sel; QualCost local_cost; List *fdw_scan_tlist = NIL; @@ -4890,7 +4881,7 @@ sqlite_estimate_path_cost_size(PlannerInfo *root, /*----- * Startup cost includes: * 1. Startup cost for underneath input relation, adjusted for - * tlist replacement by apply_scanjoin_target_to_paths() + * tlist replacement by apply_scanjoin_target_to_paths() * 2. Cost of performing aggregation, per cost_agg() *----- */ @@ -4908,7 +4899,7 @@ sqlite_estimate_path_cost_size(PlannerInfo *root, /*----- * Run time cost includes: * 1. Run time cost of underneath input relation, adjusted for - * tlist replacement by apply_scanjoin_target_to_paths() + * tlist replacement by apply_scanjoin_target_to_paths() * 2. Run time cost of performing aggregation, per cost_agg() *----- */ @@ -5244,16 +5235,19 @@ sqlite_execute_insert(EState *estate, ListCell *lc; Datum value = 0; MemoryContext oldcontext; -#if PG_VERSION_NUM >= 140000 - Relation rel = resultRelInfo->ri_RelationDesc; - TupleDesc tupdesc = RelationGetDescr(rel); -#endif int rc = SQLITE_OK; 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 elog(DEBUG1, "sqlite_fdw : %s", __func__); +#endif oldcontext = MemoryContextSwitchTo(fmstate->temp_cxt); @@ -5288,7 +5282,7 @@ sqlite_execute_insert(EState *estate, foreach(lc, fmstate->retrieved_attrs) { int attnum = lfirst_int(lc) - 1; - Oid type = TupleDescAttr(slots[i]->tts_tupleDescriptor, attnum)->atttypid; + Form_pg_attribute att = TupleDescAttr(slots[i]->tts_tupleDescriptor, attnum); bool isnull; #if PG_VERSION_NUM >= 140000 Form_pg_attribute attr = TupleDescAttr(tupdesc, attnum); @@ -5299,7 +5293,11 @@ sqlite_execute_insert(EState *estate, #endif value = slot_getattr(slots[i], attnum + 1, &isnull); - sqlite_bind_sql_var(type, bindnum, value, fmstate->stmt, &isnull); +#if PG_VERSION_NUM >= 140000 + sqlite_bind_sql_var(att, bindnum, value, fmstate->stmt, &isnull, foreignTableId); +#else + sqlite_bind_sql_var(att, bindnum, value, fmstate->stmt, &isnull, InvalidOid); +#endif bindnum++; } } @@ -5349,7 +5347,6 @@ sqlite_prepare_query_params(PlanState *node, getTypeOutputInfo(exprType(param_expr), &typefnoid, &isvarlena); fmgr_info(typefnoid, &(*param_flinfo)[i]); i++; - } /* @@ -5379,7 +5376,9 @@ sqlite_process_query_params(ExprContext *econtext, List *param_exprs, const char **param_values, sqlite3_stmt * *stmt, - Oid *param_types) + Oid *param_types, + Oid foreignTableId + ) { int i; ListCell *lc; @@ -5392,6 +5391,8 @@ 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 */ + Form_pg_attribute att = NULL; /* Evaluate the parameter expression */ #if PG_VERSION_NUM >= 100000 @@ -5400,8 +5401,11 @@ sqlite_process_query_params(ExprContext *econtext, expr_value = ExecEvalExpr(expr_state, econtext, &isNull, NULL); #endif /* Bind parameters */ - sqlite_bind_sql_var(param_types[i], i, expr_value, *stmt, &isNull); - + att = malloc(sizeof(FormData_pg_attribute)); + att->atttypid = param_types[i]; + att->atttypmod = -1; + sqlite_bind_sql_var(att, i, expr_value, *stmt, &isNull, foreignTableId); + free(att); /* * Get string sentation of each parameter value by invoking * type-specific output function, unless the value is null. @@ -5433,6 +5437,7 @@ sqlite_create_cursor(ForeignScanState *node) */ if (numParams > 0) { + Oid foreignTableId = (festate->rel != NULL) ? RelationGetRelid(festate->rel) : 0; MemoryContext oldcontext; oldcontext = MemoryContextSwitchTo(econtext->ecxt_per_tuple_memory); @@ -5442,7 +5447,8 @@ sqlite_create_cursor(ForeignScanState *node) festate->param_exprs, values, &festate->stmt, - festate->param_types); + festate->param_types, + foreignTableId); MemoryContextSwitchTo(oldcontext); } @@ -5461,6 +5467,7 @@ sqlite_execute_dml_stmt(ForeignScanState *node) ExprContext *econtext = node->ss.ps.ps_ExprContext; int numParams = dmstate->numParams; const char **values = dmstate->param_values; + Oid foreignTableId = RelationGetRelid(dmstate->rel); int rc; /* @@ -5472,7 +5479,8 @@ sqlite_execute_dml_stmt(ForeignScanState *node) dmstate->param_exprs, values, &dmstate->stmt, - dmstate->param_types); + dmstate->param_types, + foreignTableId); /* * Notice that we pass NULL for paramTypes, thus forcing the remote server @@ -5628,7 +5636,7 @@ sqlite_get_batch_size_option(Relation rel) /* See if either table or server specifies batch_size. */ foreach(lc, options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "batch_size") == 0) { @@ -5664,14 +5672,14 @@ sqliteIsForeignRelUpdatable(Relation rel) foreach(lc, server->options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "updatable") == 0) updatable = defGetBoolean(def); } foreach(lc, table->options) { - DefElem *def = (DefElem *) lfirst(lc); + DefElem *def = (DefElem *) lfirst(lc); if (strcmp(def->defname, "updatable") == 0) updatable = defGetBoolean(def); diff --git a/sqlite_fdw.h b/sqlite_fdw.h index f3c373c2..a15f5493 100644 --- a/sqlite_fdw.h +++ b/sqlite_fdw.h @@ -373,8 +373,11 @@ void sqlite_rel_connection(sqlite3 * conn); void sqlitefdw_report_error(int elevel, sqlite3_stmt * stmt, sqlite3 * conn, const char *sql, int rc); void sqlite_cache_stmt(ForeignServer *server, sqlite3_stmt * *stmt); -NullableDatum sqlite_convert_to_pg(Oid pgtyp, int pgtypmod, sqlite3_stmt * stmt, int stmt_colid, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags); +NullableDatum sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags); -void sqlite_bind_sql_var(Oid type, int attnum, Datum value, sqlite3_stmt * stmt, bool *isnull); +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); + #endif /* SQLITE_FDW_H */ diff --git a/sqlite_query.c b/sqlite_query.c index 3108fe86..98521e6a 100644 --- a/sqlite_query.c +++ b/sqlite_query.c @@ -19,17 +19,24 @@ #include "catalog/pg_type_d.h" #include "utils/builtins.h" #include "utils/lsyscache.h" +#include "utils/uuid.h" +#include "utils/timestamp.h" #include "nodes/makefuncs.h" #include "catalog/pg_type.h" #include "parser/parse_type.h" #include "mb/pg_wchar.h" +#include "commands/defrem.h" static int32 sqlite_affinity_eqv_to_pgtype(Oid pgtyp); static const char* sqlite_datatype(int t); static void - sqlite_value_to_pg_error (Oid pgtyp, int pgtypmod, sqlite3_stmt * stmt, int stmt_colid, int sqlite_value_affinity, int affinity_for_pg_column, int value_byte_size_blob_or_utf8); + 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 char * + get_column_option_string(Oid relid, int varattno, char *optionname); +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); @@ -37,56 +44,214 @@ static char * * convert_sqlite_to_pg: Convert Sqlite data into PostgreSQL's compatible data types */ NullableDatum -sqlite_convert_to_pg(Oid pgtyp, int pgtypmod, sqlite3_stmt * stmt, int stmt_colid, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags) +sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags) { + Oid pgtyp = att->atttypid; Datum value_datum = 0; char *valstr = NULL; int affinity_for_pg_column = sqlite_affinity_eqv_to_pgtype(pgtyp); - int value_byte_size_blob_or_utf8 = sqlite3_column_bytes(stmt, stmt_colid); /* Compute always, void text and void BLOB will be special cases */ - - if (affinity_for_pg_column != sqlite_value_affinity && sqlite_value_affinity == SQLITE3_TEXT) - { - sqlite_value_to_pg_error (pgtyp, pgtypmod, stmt, stmt_colid, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); - } + /* Compute always, void text and void BLOB will be special cases */ + int value_byte_size_blob_or_utf8 = sqlite3_column_bytes(stmt, stmt_colid); switch (pgtyp) { + case BOOLOID: + { + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + int value = sqlite3_column_int(stmt, stmt_colid); + return (struct NullableDatum){BoolGetDatum(value), false}; + } + case SQLITE_FLOAT: + case SQLITE_BLOB: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + } + break; + } case BYTEAOID: { - value_datum = (Datum) palloc0(value_byte_size_blob_or_utf8 + VARHDRSZ); - memcpy(VARDATA(value_datum), sqlite3_column_blob(stmt, stmt_colid), value_byte_size_blob_or_utf8); - SET_VARSIZE(value_datum, value_byte_size_blob_or_utf8 + VARHDRSZ); - return (struct NullableDatum) { PointerGetDatum((const void *) value_datum), false}; + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: + case SQLITE_FLOAT: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE_BLOB: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + case SQLITE3_TEXT: /* threated as UTF-8 text BLOB */ + { + value_datum = (Datum) palloc0(value_byte_size_blob_or_utf8 + VARHDRSZ); + memcpy(VARDATA(value_datum), sqlite3_column_blob(stmt, stmt_colid), value_byte_size_blob_or_utf8); + SET_VARSIZE(value_datum, value_byte_size_blob_or_utf8 + VARHDRSZ); + return (struct NullableDatum) {PointerGetDatum((const void *)value_datum), false}; + } + } + break; } case INT2OID: { - int value = sqlite3_column_int(stmt, stmt_colid); - - return (struct NullableDatum) { Int16GetDatum(value), false}; + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + int value = sqlite3_column_int(stmt, stmt_colid); + return (struct NullableDatum) {Int16GetDatum(value), false}; + } + case SQLITE_FLOAT: + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + } + break; } case INT4OID: { - int value = sqlite3_column_int(stmt, stmt_colid); - - return (struct NullableDatum) { Int32GetDatum(value), false}; + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + int value = sqlite3_column_int(stmt, stmt_colid); + return (struct NullableDatum) {Int32GetDatum(value), false}; + } + case SQLITE_FLOAT: /* TODO: This code is untill mod() pushdowning fix here*/ + { + int value = sqlite3_column_int(stmt, stmt_colid); + elog(DEBUG2, "sqlite_fdw : real aff. was readed for pg int32"); + return (struct NullableDatum) {Int32GetDatum(value), false}; + } + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + } + break; } case INT8OID: { - sqlite3_int64 value = sqlite3_column_int64(stmt, stmt_colid); - - return (struct NullableDatum) { Int64GetDatum(value), false}; + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + sqlite3_int64 value = sqlite3_column_int64(stmt, stmt_colid); + return (struct NullableDatum) {Int64GetDatum(value), false}; + } + case SQLITE_FLOAT: /* TODO: This code is untill mod() pushdowning fix here*/ + { + int value = sqlite3_column_int(stmt, stmt_colid); + elog(DEBUG2, "sqlite_fdw : real aff. was readed for pg int64"); + return (struct NullableDatum) {Int32GetDatum(value), false}; + } + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + } + break; } case FLOAT4OID: { - double value = sqlite3_column_double(stmt, stmt_colid); - - return (struct NullableDatum) { Float4GetDatum((float4) value), false}; + switch (sqlite_value_affinity) + { + case SQLITE_FLOAT: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + double value = sqlite3_column_double(stmt, stmt_colid); + return (struct NullableDatum) {Float4GetDatum((float4) value), false}; + } + case SQLITE_INTEGER: + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + } + break; } case FLOAT8OID: { - double value = sqlite3_column_double(stmt, stmt_colid); - - return (struct NullableDatum) { Float8GetDatum((float8) value), false}; + switch (sqlite_value_affinity) + { + case SQLITE_FLOAT: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + double value = sqlite3_column_double(stmt, stmt_colid); + return (struct NullableDatum) {Float8GetDatum((float8) value), false}; + } + case SQLITE_INTEGER: + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + } + break; } case TIMESTAMPOID: case TIMESTAMPTZOID: @@ -101,24 +266,107 @@ sqlite_convert_to_pg(Oid pgtyp, int pgtypmod, sqlite3_stmt * stmt, int stmt_coli * "regular" process because its already implemented and * working properly. */ - if (sqlite_value_affinity == SQLITE_INTEGER || sqlite_value_affinity == SQLITE_FLOAT) + switch (sqlite_value_affinity) { - double value = sqlite3_column_double(stmt, stmt_colid); - Datum d = DirectFunctionCall1(float8_timestamptz, Float8GetDatum((float8) value)); - - return (struct NullableDatum) { d, false}; - } - else - { - valstr = sqlite_text_value_to_pg_db_encoding(stmt, stmt_colid); + case SQLITE_INTEGER: + { + Timestamp value = (Timestamp)sqlite3_column_int64(stmt, stmt_colid); + return (struct NullableDatum) {TimestampGetDatum(value), false}; + } + case SQLITE_FLOAT: + { + double value = sqlite3_column_double(stmt, stmt_colid); + Datum d = DirectFunctionCall1(float8_timestamptz, Float8GetDatum((float8) value)); + return (struct NullableDatum) {d, false}; + } + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } } break; } case NUMERICOID: { - double value = sqlite3_column_double(stmt, stmt_colid); - - valstr = DatumGetCString(DirectFunctionCall1(float8out, Float8GetDatum((float8) value))); + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: + case SQLITE_FLOAT: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + double value = sqlite3_column_double(stmt, stmt_colid); + valstr = DatumGetCString(DirectFunctionCall1(float8out, Float8GetDatum((float8) value))); + break; /* !!! use valstr later! */ + } + case SQLITE_BLOB: + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE3_TEXT: + { + 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"); + break; + } + } + break; + } + case UUIDOID: + { + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: + case SQLITE_FLOAT: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + case SQLITE_BLOB: /* <-- first proper and recommended SQLite affinity of value for pgtyp */ + { + if (value_byte_size_blob_or_utf8 != UUID_LEN) + { + ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), + errmsg("PostgreSQL uuid data type allows only %d bytes SQLite blob value", UUID_LEN), + errhint("incorrect value is %d bytes length", value_byte_size_blob_or_utf8))); + break; + } + else + { + const unsigned char * sqlite_blob = 0; + pg_uuid_t *retval = (pg_uuid_t *) palloc0(sizeof(pg_uuid_t)); + sqlite_blob = sqlite3_column_blob(stmt, stmt_colid); + memcpy(retval->data, sqlite_blob, UUID_LEN); + return (struct NullableDatum){UUIDPGetDatum(retval), false}; + break; + } + } + 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); + else + elog(ERROR, "Void text disallowed for PostgreSQL uuid column"); + break; + } + default: + { + sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + break; + } + } break; } /* some popular datatypes for default algorythm branch @@ -139,7 +387,52 @@ sqlite_convert_to_pg(Oid pgtyp, int pgtypmod, sqlite3_stmt * stmt, int stmt_coli valstr, attinmeta->attioparams[attnum], attinmeta->atttypmods[attnum]); - return (struct NullableDatum) { value_datum, false}; + return (struct NullableDatum){value_datum, false}; +} + +/* + * sqlite_bind_blob_algo: + * 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 len; + char *dat = NULL; + char *result = DatumGetPointer(value); + + if (VARATT_IS_1B(result)) + { + len = VARSIZE_1B(result) - VARHDRSZ_SHORT; + dat = VARDATA_1B(result); + } + else + { + len = VARSIZE_4B(result) - VARHDRSZ; + dat = VARDATA_4B(result); + } + return sqlite3_bind_blob(stmt, attnum, dat, len, SQLITE_TRANSIENT); +} + +static char * +get_column_option_string(Oid relid, int varattno, char *optionname) +{ + char *coloptionvalue = NULL; + List *options; + ListCell *lc; + + options = GetForeignColumnOptions(relid, varattno); + foreach(lc, options) + { + DefElem *def = (DefElem *) lfirst(lc); + + if (strcmp(def->defname, optionname) == 0) + { + coloptionvalue = defGetString(def); + break; + } + } + return coloptionvalue; } /* @@ -147,12 +440,13 @@ sqlite_convert_to_pg(Oid pgtyp, int pgtypmod, sqlite3_stmt * stmt, int stmt_coli * Bind the values provided as DatumBind the values and nulls to modify the target table (INSERT/UPDATE) */ void -sqlite_bind_sql_var(Oid type, int attnum, Datum value, sqlite3_stmt * stmt, bool *isnull) +sqlite_bind_sql_var(Form_pg_attribute att, int attnum, Datum value, sqlite3_stmt * stmt, bool *isnull, Oid relid) { int ret = SQLITE_OK; - + Oid type = att->atttypid; + int32 pgtypmod = att->atttypmod; attnum++; - elog(DEBUG2, "sqlite_fdw : %s %d type=%u ", __func__, attnum, type); + elog(DEBUG2, "sqlite_fdw : %s %d type=%u relid=%u typmod=%d ", __func__, attnum, type, relid, pgtypmod); if (*isnull) { @@ -246,38 +540,59 @@ sqlite_bind_sql_var(Oid type, int attnum, Datum value, sqlite3_stmt * stmt, bool } case BYTEAOID: { - int len; - char *dat = NULL; - char *result = DatumGetPointer(value); + ret = sqlite_bind_blob_algo(attnum, value, stmt); + break; + } + case UUIDOID: + { + bool uuid_as_blob = false; - if (VARATT_IS_1B(result)) + if (relid) { - len = VARSIZE_1B(result) - VARHDRSZ_SHORT; - dat = VARDATA_1B(result); + char * optv = get_column_option_string (relid, attnum, "column_type"); + elog(DEBUG3, "sqlite_fdw : col type %s ", optv); + if (optv != NULL && strcasecmp(optv, "BLOB") == 0) + uuid_as_blob = true; } - else + + if (uuid_as_blob) + { + unsigned char *dat = palloc0(UUID_LEN); + pg_uuid_t* pg_uuid = DatumGetUUIDP(value); + elog(DEBUG2, "sqlite_fdw : bind uuid as blob"); + memcpy(dat, pg_uuid->data, UUID_LEN); + ret = sqlite3_bind_blob(stmt, attnum, dat, UUID_LEN, SQLITE_TRANSIENT); + } + else { - len = VARSIZE_4B(result) - VARHDRSZ; - dat = VARDATA_4B(result); + /* uuid as text */ + char *outputString = NULL; + Oid outputFunctionId = InvalidOid; + bool typeVarLength = false; + getTypeOutputInfo(type, &outputFunctionId, &typeVarLength); + outputString = OidOutputFunctionCall(outputFunctionId, value); /* uuid text belongs to ASCII subset, no need to translate encoding */ + ret = sqlite3_bind_text(stmt, attnum, outputString, -1, SQLITE_TRANSIENT); } - ret = sqlite3_bind_blob(stmt, attnum, dat, len, SQLITE_TRANSIENT); break; } - default: { + NameData pgColND = att->attname; + const char *pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(type, pgtypmod)); ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("cannot convert constant value to Sqlite value %u", type), - errhint("Constant value data type: %u", type))); + errmsg("cannot convert constant value to Sqlite value"), + errhint("Constant value data type: \"%s\" in column \"%.*s\"", pg_dataTypeName, (int)sizeof(pgColND.data), pgColND.data))); break; } } if (ret != SQLITE_OK) + { + const char *pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(type, pgtypmod)); ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), errmsg("Can't convert constant value to Sqlite: %s", sqlite3_errmsg(sqlite3_db_handle(stmt))), - errhint("Constant value data type: %u", type))); - + errhint("Constant value data type: %s", pg_dataTypeName))); + } } /* @@ -332,12 +647,15 @@ 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 (Oid pgtyp, int pgtypmod, 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) { - const char *sqlite_affinity = 0; - const char *pg_eqv_affinity = 0; - const char *pg_dataTypeName = 0; - const int max_logged_byte_length = NAMEDATALEN; + Oid pgtyp = att->atttypid; + int32 pgtypmod = att->atttypmod; + NameData pgColND = att->attname; + const char *sqlite_affinity = 0; + const char *pg_eqv_affinity = 0; + const char *pg_dataTypeName = 0; + const int max_logged_byte_length = NAMEDATALEN; pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(pgtyp, pgtypmod)); sqlite_affinity = sqlite_datatype(sqlite_value_affinity); @@ -346,11 +664,15 @@ static void sqlite_value_to_pg_error (Oid pgtyp, int pgtypmod, sqlite3_stmt * st if (value_byte_size_blob_or_utf8 < max_logged_byte_length) { const unsigned char *text_value = sqlite3_column_text(stmt, stmt_colid); - elog(ERROR, "SQLite data affinity \"%s\" disallowed for PostgreSQL data type \"%s\" = SQLite \"%s\", value = '%s'", sqlite_affinity, pg_dataTypeName, pg_eqv_affinity, text_value); + ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), + errmsg("SQLite data affinity \"%s\" disallowed for PostgreSQL data type \"%s\"", sqlite_affinity, pg_dataTypeName), + errhint("In column \"%.*s\" expected SQLite affinity \"%s\", incorrect value = '%s'", (int)sizeof(pgColND.data), pgColND.data, pg_eqv_affinity, text_value))); } else { - elog(ERROR, "SQLite data affinity \"%s\" disallowed for PostgreSQL data type \"%s\" = SQLite \"%s\" for a long value (%d bytes)", sqlite_affinity, pg_dataTypeName, pg_eqv_affinity, value_byte_size_blob_or_utf8); + ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), + errmsg("SQLite data affinity \"%s\" disallowed for PostgreSQL data type \"%s\"", sqlite_affinity, pg_dataTypeName), + errhint("In column \"%.*s\" expected SQLite affinity \"%s\", a long incorrect value (%d bytes)", (int)sizeof(pgColND.data), pgColND.data, pg_eqv_affinity, value_byte_size_blob_or_utf8))); } } diff --git a/test.sh b/test.sh index 54fffc83..581c88b9 100755 --- a/test.sh +++ b/test.sh @@ -8,7 +8,7 @@ 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 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 sqlite_fdw type aggregate selectfunc /' Makefile make clean make $1 diff --git a/uuid_extension.c b/uuid_extension.c new file mode 100644 index 00000000..c77b0f83 --- /dev/null +++ b/uuid_extension.c @@ -0,0 +1,227 @@ +/*------------------------------------------------------------------------- + * + * SQLite Foreign Data Wrapper for PostgreSQL + * + * Universally Unique IDentifiers (UUIDs) in SQLite + * + * Originally from 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 + * + *------------------------------------------------------------------------- + */ + +/* + * 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 + * + * 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 + * + * All of the 'x', 'M', and 'N' values are lower-case hexadecimal digits. + * The M digit indicates the "version". For uuid4()-generated UUIDs, the + * version is always "4" (a random UUID). The upper three bits of N digit + * are the "variant". This library only supports variant 1 (indicated + * by values of N between '8' and 'b') as those are overwhelming the most + * common. Other variants are for legacy compatibility only. + * + * The output of uuid_blob(X) is always a 16-byte blob. The UUID input + * string is converted in network byte order (big-endian) in accordance + * with RFC-4122 specifications for variant-1 UUIDs. Note that network + * byte order is *always* used, even if the input self-identifies as a + * variant-2 UUID. + * + * The input X to the uuid_str() and uuid_blob() functions can be either + * a string or a BLOB. If it is a BLOB it must be exactly 16 bytes in + * length or else a NULL is returned. If the input is a string it must + * consist of 32 hexadecimal digits, upper or lower case, optionally + * surrounded by {...} and with optional "-" characters interposed in the + * middle. The flexibility of input is inspired by the PostgreSQL + * 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} + * + * 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 + * + * If the X input string has too few or too many digits or contains + * stray characters other than {, }, or -, then NULL is returned. + */ +#include +#include +#include + +#include "sqlite3.h" + +int sqlite_fdw_data_norm_functs_init(sqlite3* db); + +#if !defined(SQLITE_ASCII) && !defined(SQLITE_EBCDIC) +#define SQLITE_ASCII 1 +#endif + +/* + * Translate a single byte of Hex into an integer. + * 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')); +#ifdef SQLITE_ASCII + h += 9 * (1 & (h >> 6)); +#endif +#ifdef SQLITE_EBCDIC + h += 9 * (1 & ~(h >> 4)); +#endif + return (unsigned char)(h & 0xf); +} + +/* + * 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 + * 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; + *} + */ +/* + * 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 + * 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; + } + } +} + +/* + * 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); + *} + */ +/* + * 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); + *} + */ +/* + * uuid_blob converts a UUID X into a 16-byte blob. + * X can be either a string or a 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); +} + +int sqlite_fdw_data_norm_functs_init(sqlite3* db) { + /* + * 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); + return rc; +}