Re: Controlling the usage of a user-defined cast

2024-12-12 Thread Sami Imseih
> The requirement for ownership of at least one type means that the > example you give could only be done by a superuser. That's correct; and superuser should be doing the right thing. > There is currently no way to prevent the usage of a user-defined cast. Should > there be one? >> I don't

Re: Controlling the usage of a user-defined cast

2024-12-12 Thread Tom Lane
Sami Imseih writes: > When a user-defined CAST is created, it has the ability to break behavior of > built-in > casts that could be performed implicitly, i.e. without a cast defined in > pg_cast. The requirement for ownership of at least one type means that the example you give could only be do