User-defined type name begins with the underscore character (_) can be created

Поиск
Список
Период
Сортировка
От Pavel Golub
Тема User-defined type name begins with the underscore character (_) can be created
Дата
Msg-id 1679003548.20061212104413@microolap.com
обсуждение исходный текст
Ответы Re: User-defined type name begins with the underscore character (_) can be created  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hello, pgsql-bugs.

Documentation says:
"User-defined type names cannot begin with the
underscore character (_) and can only be 62
characters long (or in general NAMEDATALEN - 2,
rather than the NAMEDATALEN - 1 characters
allowed for other names). Type names beginning
with underscore are reserved for
internally-created array type names. "

However, such SQL may be executed:

CREATE TYPE _my AS (id int4, id2 int4);

And server treats it as array type. Thus next SQL will be executed too:

CREATE TABLE my_table(
my_arr my[]
);

Checked on PostgreSQL versions (Windows XP):
8.0.6
8.1.0
8.2.0

--
With best wishes,
 Pavel                          mailto:pavel@microolap.com

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

Предыдущее
От: "J. Greg Davidson"
Дата:
Сообщение: SPI_getvalue calls output function w/o pushing existing SPI connection + 2 extra issues
Следующее
От: Dave Page
Дата:
Сообщение: 8.2 pl/pgsql crash bug (WAS: [pgadmin-support] Error craches pgAdmin)