After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 101121 - Triggers schema
Triggers schema
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: Server library
unspecified
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-12-13 13:09 UTC by Rodrigo Moya
Modified: 2008-10-02 19:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodrigo Moya 2002-12-13 13:09:07 UTC
We need to add the trigger schema, so that clients can manage triggers on
the underlying database.
Comment 1 Rodrigo Moya 2002-12-15 13:48:07 UTC
http://www.postgresql.org/idocs/ is a good place to query PostgreSQL 
documentation.

1) Create trigger
http://www.postgresql.org/idocs/index.php?sql-createtrigger.html

CREATE TRIGGER trigger [ BEFORE | AFTER ] [ INSERT | DELETE | UPDATE [
OR ... 
] ] ON relation FOR EACH [ ROW | STATEMENT ] EXECUTE PROCEDURE procedure 
(args);

2) Drop trigger
http://www.postgresql.org/idocs/index.php?sql-droptrigger.html
DROP TRIGGER name ON table

3) Alter trigger
Not supported. Per discussion on hackers, clients should handle
DROP/CREATE as 
there is no need to preserve object ID.

4) Additionnaly, PostgreSQL 7.3 allows to enable / disable triggers.
Comment 2 malerba 2008-10-02 19:06:51 UTC
Triggers are now reported when fetching meta data and storing it in the GdaMetaStore object, this is a V4 API. Closing the bug.