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

Support for Aliases during Trigger Declaration #1178

Closed
tjwrenn opened this issue Sep 18, 2018 · 0 comments
Closed

Support for Aliases during Trigger Declaration #1178

tjwrenn opened this issue Sep 18, 2018 · 0 comments

Comments

@tjwrenn
Copy link

tjwrenn commented Sep 18, 2018

Feature description
Build support for defining aliases for the "OLD" and "NEW" rows or tables for use in the definition of the triggered action.

Sample Usage
CREATE TRIGGER tr_event_property_type_after_upd
AFTER UPDATE
ON core.event_property_type
REFERENCING OLD TABLE AS deleted_event_property_type
FOR EACH STATEMENT
EXECUTE PROCEDURE core.func_tr_event_property_type_after_upd();

Current Workaround
Use of generic objects:
https://pgmodeler.io/support/docs/329-generic-sql-objects

Additional info
the syntax can be found here:
https://www.postgresql.org/docs/9.1/static/sql-createtrigger.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants