Re: Editing Views with EditGrid
От | Dave Page |
---|---|
Тема | Re: Editing Views with EditGrid |
Дата | |
Msg-id | 937d27e10805080309t6874027bg638f9ae586d68e85@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Editing Views with EditGrid (Andreas Neumann <a.neumann@carto.net>) |
Ответы |
Re: Editing Views with EditGrid
|
Список | pgadmin-support |
On Tue, May 6, 2008 at 9:05 PM, Andreas Neumann <a.neumann@carto.net> wrote: > Hi Dave, > > Thank you for letting me know about the situation. Can you estimate how > much work it would be to implement editable views? Maybe based on the > experience with the editable tables? Maybe we can find a few interested > parties paying for the development of this feature? The problem with editing views is not the editing (the code for the tables will do the job just fine with a few minor changes in most cases). The problem comes where you have rules which implement non-trivial updates - for example; consider a view with a total column, an item price, and a quantity. If you update the quantity, there is no straightforward way for pgAdmin to understand that the total price will be automatically updated. In fact, it won't even know that the total column cannot be manually edited. This gets even worse, because the rules may easily affect different rows from that being edited, or even entirely unrelated data. The only safe way to manage that that I can see would be to refresh the entire data set following each edit - and that would be unusably slow. I'm happy to entertain proposals that might work, but this a non-trivial problem, caused largely by Postgres' superior flexibility compared to most other DBMSs. It isn't gonna be easy to fix. -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com
В списке pgadmin-support по дате отправления: