Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8820995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:44:44+00:00 2026-06-14T05:44:44+00:00

As it mentions in the PostgreSQL manual Currently, views are read only: the system

  • 0

As it mentions in the PostgreSQL manual

Currently, views are read only: the system will not allow an insert,
update, or delete on a view. You can get the effect of an updatable
view by creating rules that rewrite inserts, etc. on the view into
appropriate actions on other tables.

What are the benefits to creating an updatable view using rules vs a straight insert/update operation? Are there any hidden “gotchas” that I would need to be aware of?

–Update–

It seems that 9.3 will include updatable views:

http://www.depesz.com/2012/12/11/waiting-for-9-3-support-automatically-updatable-views/

The next release of PostgreSQL is planned to be the 9.3 release. A tentative schedule for this version has a release in the third quarter of 2013.

This is still a ways away but it looks like this may make life a touch easier for any who need it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:44:45+00:00Added an answer on June 14, 2026 at 5:44 am
    • You can have a stable interface to a client and still change the structure of underlying tables as long as you edit the rules on the view accordingly. I happened to use this in the past, when I had to remove a table and didn’t want to wake a difficult client, so I provided a view as drop in and the client never noticed the change.

    • In a multi-user environment you can manage privileges on one view more easily than privileges on multiple tables.

    • Another benefit is in the last word of your quote: tables – plural. This way, a client can send one query and you can change multiple underlying tables. You can achieve this with triggers, too, mostly.

    Other than that, it’s regularly simpler to operate with triggers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The org-mode manual mentions a number of properties that can control the behavior of
The Groovy Process Management page mentions that: Because some native platforms only provide limited
In various PostgreSQL vs. MySQL comparisons I've seen many mentions of problems with data
This MSDN page mentions that there're nothrow versions of new and delete . nothrow
I've seen several mentions of mumble typing, such as this StackOverflow answer: Will a
I'm using psycopg2 to access a postgresql 8.4 database, and on an update query
I'm working on a PostgreSQL 8.1 SQL script which needs to delete a large
I am developing a mentions system similar to the one in twitter. So I
I have been playing with PostgreSQL's notification system and cannot for the life of
Josh Bloch mentions using a local variable in double check idiom for possible performance

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.