You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seanparkross
changed the title
Hasura Event on View errors "...is a view. Views cannot have row-level BEFORE or AFTER triggers."
Server: Hasura Event on View errors "...is a view. Views cannot have row-level BEFORE or AFTER triggers."
Aug 25, 2022
Version Information
Server Version: v2.8.4-cloud.1
What is the current behaviour?
Hasura displays toast error".is a view. Views cannot have row-level BEFORE or AFTER triggers." from postgres when I try to create event on db view.
What is the expected behaviour?
I can trigger event on certain rows (where condition) by db views or other way.
How to reproduce the issue?
Try to create even for DB view because I want event only certain rows. Hasura displays toast error from postgres.
Screenshots or Screencast
Any possible solutions?
Maybe use
INSTEAD OF
rather thenAFTER
in create trigger expression.https://stackoverflow.com/questions/16887884/pl-pgsql-after-insert-trigger-on-a-view-with-a-storages-rule
https://www.postgresql.org/docs/current/sql-createtrigger.html
or add "where condition" to event form (which would be more conveniet for hasura users).
The text was updated successfully, but these errors were encountered: