create database doesn't work well in MULTIBYTE mode

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема create database doesn't work well in MULTIBYTE mode
Дата
Msg-id 000501bf78df$dbb55f00$2801007e@tpf.co.jp
обсуждение исходный текст
Ответы Re: [HACKERS] create database doesn't work well in MULTIBYTE mode  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: [HACKERS] create database doesn't work well in MULTIBYTE mode  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Список pgsql-hackers
Hi

I have a crash while creating regression database in pararell regression
test.
Seems it's due to the following change.

@@ -2638,7 +2705,14 @@                    n->dbname = $3;                    n->dbpath = $5;#ifdef MULTIBYTE
-                    n->encoding = $6;
+                    if ($6 != NULL) {
+                        n->encoding = pg_char_to_encoding($6);
+                        if (n->encoding < 0) {
+                            elog(ERROR, "Encoding name '%s' is invalid", $6);
+                        }
+                    } else {
+                        n->encoding = GetTemplateEncoding();
+                    }#else                    n->encoding = 0;#endif

Why ?
$6 is an ival not an str.

Regards.

Hiroshi Inoue
Inoue@tpf.co.jp



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: [HACKERS] Solution for LIMIT cost estimation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Maximum columns for optimum performance (fwd)