ERROR: type "myrowtype" does not exist

Поиск
Список
Период
Сортировка
От Arup Rakshit
Тема ERROR: type "myrowtype" does not exist
Дата
Msg-id BB162BE8-658C-4368-987E-8D5A3944232B@zeit.io
обсуждение исходный текст
Ответы Re: ERROR: type "myrowtype" does not exist  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
I was reading the json_populate_record function from the official doc https://www.postgresql.org/docs/10/static/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE. The doc mentioned examples are giving me errors

psql (11.0, server 10.5)
Type "help" for help.

aruprakshit=# select * from json_populate_record(null::extype, '{"x":"foo", "y":43, "q": true}');
ERROR:  type "extype" does not exist
LINE 1: select * from json_populate_record(null::extype, '{"x":"foo"...
                                                 ^
aruprakshit=# select * from json_populate_record(null::myrowtype, '{"a": 1, "b": ["2", "a b"], "c": {"d": 4, "e": "a b c"}}');
ERROR:  type "myrowtype" does not exist
LINE 1: select * from json_populate_record(null::myrowtype, '{"a": 1…

What does null::extype, null::myrowtype mean here ?


Thanks,

Arup Rakshit



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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Should pg 11 use a lot more memory building an spgist index?
Следующее
От: Mike Martin
Дата:
Сообщение: Shell Command within function