Greetings, * Tom Lane ([email protected]) wrote: > Stephen Frost <[email protected]> writes: > > My complaint is specifically trying to do something like: [...] > That code is kinda broken anyway, because it won't survive relation drops > either. What you *should* be writing is
Yes, I agree, but it still seems like we're throwing an ERROR
unnecessairly.
> Having said that, I'm fine with having it return NULL if the given
> attname matches an attisdropped column.
Ok, that's really all I was asking about.
> ... What I was on about is what
> happens when you write
>
> has_column_privilege('sometab'::regclass, 'somecol', 'SELECT');
>
> and sometab exists but somecol doesn't.
Yeah, having that throw an error seems reasonable to me.
Thanks!
Stephen
signature.asc
Description: PGP signature
