| От | Scott Bailey |
|---|---|
| Тема | Re: Chicken/egg problem with range types |
| Дата | |
| Msg-id | 5006E314.8040007@gmail.com обсуждение исходный текст |
| Ответ на | Re: Chicken/egg problem with range types (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On 07/17/2012 08:08 PM, Tom Lane wrote: > I wonder whether we could improve this by postponing the no-shell-types > check from creation to function runtime. It would be annoying to have > to make an additional catalog lookup at runtime just for typisdefined, > but I think that probably we could fold it in with an existing fetch of > the pg_type row during parsing of the calling query, so that no run-time > overhead is added. > > This would limit what checking could be performed on the function body > at creation time, but surely no worse than, say, a reference to a > nonexistent table, which we allow. How about using ALTER TYPE to set it after both the function and the type have been created? Scott
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера