Re: How hard would it be to support LIKE in return declaration of generic record function calls ?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
Дата
Msg-id CAHyXU0z3TcgS1brfXvDq6EacvzPaAbSOeS3FygiAryq2Tye-zA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How hard would it be to support LIKE in return declaration of generic record function calls ?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Thu, May 3, 2012 at 9:44 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
> Why would you always need FROM?

that was coming from Hannu's original example:
insert into test2
select * from json_to_record(jrec json) as (like test2);

how do you work it so you can call:
select json_to_record(jrec json) as (like test2);
select json_to_array(jrec_json) as ??

>    create type new_type as (like old_type, extra text);

sure, that would be great on it's own merits.

merlin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "unexpected EOF" messages
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: "unexpected EOF" messages