Re: json_populate_record

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: json_populate_record
Дата
Msg-id CAKFQuwbx6vZAh7zZOmW5ZGVbnWutkLHedns3tdwho9KUiJdOCA@mail.gmail.com
обсуждение исходный текст
Ответ на json_populate_record  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: json_populate_record  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: json_populate_record  (Jonathan Allard <jonathan.allard@hey.com>)
Список pgsql-docs
On Thursday, August 13, 2020, PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/functions-json.html
Description:

It is not clear what the parameter `base` means

I agree there is room for improvement here.  The referenced note does’t use the term “base” which making finding the correct note among the various possibilities more difficult.  The example seems sufficiently illustrative though.  Those functions convert json to SQL composite types.  You need to pass in which composite type to convert to.  That is the “base” type.  One normally does this by casting SQL null to the desired composite type; usually one associated with an existing table.

David J.

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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: json_populate_record
Следующее
От: Tom Lane
Дата:
Сообщение: Re: json_populate_record