| От | Tom Lane |
|---|---|
| Тема | Re: Inspection of row types in pl/pgsql and pl/sql |
| Дата | |
| Msg-id | 14390.1258216818@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Inspection of row types in pl/pgsql and pl/sql ("Florian G. Pflug" <fgp@phlo.org>) |
| Ответы |
Re: Inspection of row types in pl/pgsql and pl/sql
|
| Список | pgsql-hackers |
"Florian G. Pflug" <fgp@phlo.org> writes:
> Ok, I must be missing something. I currently fail to see how
> my proposed
> record_value(record, name, anyelement) returns anyelement
> function differs (from the type system's point of view) from
> value_from_string(text, anyelement) returns anyelement
> which simply casts the text value to the given type and can easily be
> implemented in plpgsq.
The problem is at the call site --- if you try to call it with different
record types on different calls you're going to get a failure.
Or so I expect anyway.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера