Re: CREATE CAST code review

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: CREATE CAST code review
Date: 2002-07-27 18:08:09
Message-ID: Pine.LNX.4.44.0207252337030.1144-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2002-07-27 20:05:20 START TRANSACTION
Previous Message Peter Eisentraut 2002-07-27 18:05:32 Re: CREATE CAST code review