Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: How hard would it be to support LIKE in return declaration of generic record function calls ? |
| Дата | |
| Msg-id | 1335978413.29903.1.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответ на | How hard would it be to support LIKE in return declaration of generic record function calls ? (Hannu Krosing <hannu@2ndQuadrant.com>) |
| Ответы |
Re: How hard would it be to support LIKE in return
declaration of generic record function calls ?
|
| Список | pgsql-hackers |
On ons, 2012-05-02 at 13:40 +0200, Hannu Krosing wrote: > How hard would it be to add support for LIKE syntax, similar to table > def in field list declaration for generic record functions > > What I'dd like to be able to do is to have a generic json_to_record > function > > CREATE OR REPLACE RECORD json_to_record(json) RETURNS RECORD AS $$ > ... > $$ LANGUAGE ... ; > > and then be able to call it like this > > insert into test2 > select * from json_to_record(jrec json) as (like test2); That would be very useful, and shouldn't be too hard to implement. (I had to look about three times to understand what this was supposed to achieve, but I think the syntax is the right one after all.)
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера