Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views being supported? #826

Open
kdhrubo opened this issue Dec 2, 2024 Discussed in #204 · 1 comment
Open

Views being supported? #826

kdhrubo opened this issue Dec 2, 2024 Discussed in #204 · 1 comment
Labels
discussion Issue that requires discussion and understanding enhancement New feature or request

Comments

@kdhrubo
Copy link
Collaborator

kdhrubo commented Dec 2, 2024

Discussed in #204

Originally posted by thadguidry January 27, 2024
Also, good to support:

While access to the data stored in a materialized view is often much faster than accessing the underlying tables directly or through a view, the data is not always current; yet sometimes current data is not needed.
(edited)

Views can also sometimes allow INSERT, DELETE, UPDATE

A view can also have other kinds of DO INSTEAD rules, allowing INSERT, UPDATE, or DELETE commands to be performed on the view despite its lack of underlying storage. This is discussed further below, in Section 41.2.4.

https://www.postgresql.org/docs/16/rules-views.html (edited)

@kdhrubo kdhrubo added enhancement New feature or request discussion Issue that requires discussion and understanding labels Dec 2, 2024
@kdhrubo
Copy link
Collaborator Author

kdhrubo commented Dec 10, 2024

@thadguidry - View and materialized views already supported - has to be documented.

Explain this in details with example

We need to have a view that has 2 owners, and where we do a delete operation by 1 owner, and then a get operation by the other owner to verify the row was deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Issue that requires discussion and understanding enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant