Re: strange evaluation Window function and SRF functions?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: strange evaluation Window function and SRF functions? |
| Дата | |
| Msg-id | 1061.1343665860@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | strange evaluation Window function and SRF functions? (Pavel Stehule <pavel.stehule@gmail.com>) |
| Список | pgsql-hackers |
Pavel Stehule <pavel.stehule@gmail.com> writes: > I seen nice trick based on window function > http://stackoverflow.com/questions/11700930/how-can-i-trim-a-text-array-in-postgresql > but isn't it example of wrong evaluation? Result of row_number is not > correct Sure it is ... or at least, you won't find anything in the SQL spec that says it isn't. The result of a window function is only dependent on the state of the input, not on SRFs that might happen to be in sibling SELECT expressions. (This is one example of why SRFs in SELECT lists aren't terribly well defined.) A bigger problem with that query is that there's no guarantee it will preserve ordering of the elements of the arrays. regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера