Re: Thinking about WITH CHECK OPTION for views
| От | Stephen Frost |
|---|---|
| Тема | Re: Thinking about WITH CHECK OPTION for views |
| Дата | |
| Msg-id | 20130120163001.GP16126@tamriel.snowman.net обсуждение |
| Ответ на | Thinking about WITH CHECK OPTION for views (Dean Rasheed <dean.a.rasheed@gmail.com>) |
| Ответы |
Re: Thinking about WITH CHECK OPTION for views
|
| Список | pgsql-hackers |
Dean,
* Dean Rasheed (dean.a.rasheed@gmail.com) wrote:
> I've been thinking about WITH CHECK OPTION for auto-updatable views.
> Given the timing I doubt if this will be ready for 9.3, since I only
> get occasional evenings and weekends to hack on postgres, but I think
> it's probably worth kicking off a discussion, starting with a
> description of what the feature actually is.
If this isn't intended for 9.3, I think it'd be good to move it to the
post-9.3 commitfest. That said, it actually looks pretty decent to me
on first blush. I did have a couple of comments though:
Why have validateWithCheckOption instead of handling that in gram.y..?
If the SQL spec says we should be disallowing WITH CHECK when there are
INSTEAD rules or triggers, could we actually do that..? This kind of an
error:
ERROR: attribute number 2 exceeds number of columns 1
is really pretty bad, any chance we could improve that or disallow the
possibility of getting there by erroring earlier on?
Lastly, documentation for this appears to be missing.
Thanks,
Stephen
В списке pgsql-hackers по дате отправления: