Re: BUG #13513: Turning a table into a view
От | Andres Freund |
---|---|
Тема | Re: BUG #13513: Turning a table into a view |
Дата | |
Msg-id | 20150722101619.GF5053@awork2.anarazel.de обсуждение исходный текст |
Ответ на | Re: BUG #13513: Turning a table into a view (Piergiorgio Buongiovanni <p.buongiovanni@net-international.com>) |
Ответы |
Re: BUG #13513: Turning a table into a view
|
Список | pgsql-bugs |
Hi, On 2015-07-22 11:53:16 +0200, Piergiorgio Buongiovanni wrote: > Just only to answer to your question, we are doing some tests with our > RAD (Instant Developer) and we are trying to "cheating" it. Hah. > PostgreSQL is very powerful allowing us to use views as tables through the RULE mechanism. > Well. Our RAD doesn't treat views as tables (probably the problem is the JDBC driver) and we cannot insert data into aview. > So we create a table, then we import that table into the project and the RAD reads all the info (constraints, default values,etc.) and creates the fields correctly. > At the end we turn the table into a view simply using rules. You can probably work around the problem by inserting a VACUUM tbl_becoming_view; before the CREATE RULE. IIRC that should "recompute" relhastriggers. Regards, Andres
В списке pgsql-bugs по дате отправления: