Re: CREATE CAST code review

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: CREATE CAST code review
Дата
Msg-id Pine.LNX.4.44.0207252337030.1144-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: CREATE CAST code review  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
Список pgsql-hackers
Zeugswetter Andreas SB SD writes:

> >  What about requiring ownership of at least one
> > of the types?
>
> I was thinking that too, but, would it be possible to circumvent such
> a restriction with a "type in the middle" attack ?
> Create your own type and then
> 1. (auto)cast type1 to own type
> 2. (auto)cast own type to type2 ?

But that doesn't affect casts between type1 and type2.  PostgreSQL doesn't
do indirect casts.

-- 
Peter Eisentraut   peter_e@gmx.net



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: CREATE CAST code review
Следующее
От: nconway@klamath.dyndns.org (Neil Conway)
Дата:
Сообщение: sub-selects in CHECK