| От | Tom Lane |
|---|---|
| Тема | Re: ORDER BY regtype |
| Дата | |
| Msg-id | 22931.1067236774@sss.pgh.pa.us обсуждение |
| Ответ на | ORDER BY regtype (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Список | pgsql-hackers |
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> Is there _any_ way of sorting by a regproc as it appears, not as its
> underlying OID?
Can't think of one. If we supported casting regproc to text then I'd
expect ordering by the regproc-casted-to-text to do what you want.
But we don't.
There have been some questions in the past about why we don't support
casting *every* datatype to and from text (using the datatype's input
and output functions if necessary). I'm on record as not favoring
allowing such conversions to happen implicitly, but I can't see any
good reason not to allow them as explicit casts...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера