Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
TRigger catch delete on cascade from different table - Mailing list pgsql-students
From
Ludovico Bonifacio
Subject
TRigger catch delete on cascade from different table
Date
February 9, 2011
00:30:45
Msg-id
89587.12999.qm@web25603.mail.ukl.yahoo.com
Whole thread
Raw
List
pgsql-students
Tree view
hi everybody!
Could you help me please?
How do i do to active a trigger (target is save the history from delete rows) without catch the event from
the table where has created
but catching the delete effect from
a referenced value of other table?
For example
CREATE TABLE
Document
(
id_document INTEGER PRIMARY KEY,
id_user INTEGER REFERENCES User(id_user)
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE TABLE
User
(
id_user INTEGER PRIMARY KEY,
username VARCHAR(20) NOT NULL,
pwd VARCHAR(30) NOT NULL,
email VARCHAR(30) NOT NULL
);
On
Document
table i
defined a trigger
AFTER DELETE ON Document
On
User
table i excute
DELETE FROM User WHERE(condition);
So, when i delete a user from User table, the trigger rightly doesn't recognise the DELETE because the recognise on Document.
Exists a way that let understand/catching at Trigger activing also in the case of deleting on cascade from other table?
Thanks in advanced
Greating
pgsql-students
by date:
Previous
From:
michel wildcat
Date:
08 February 2011, 20:30:06
Subject:
create an extension of postgresql 9 with Visual C++ 2008 express edition
Next
From:
preetika tyagi
Date:
28 February 2011, 18:28:43
Subject:
queries on different tables
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies