database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 6361 게시물 읽기
No. 6361
PostgredQL 8.0.4 문서 32.4의 트리거 예제에서 다른 결과가 나와서요....
작성자
양인철(zoar)
작성일
2005-10-11 09:41
조회수
2,040

문서에는 before -> after -> before -> after 순서인데

=> DELETE FROM ttest;

INFO: trigf (fired before): there are 2 rows in ttest

INFO: trigf (fired after ): there are 1 rows in ttest

INFO: trigf (fired before): there are 1 rows in ttest

INFO: trigf (fired after ): there are 0 rows in ttest

^^^^^^

remember what we said about visibility.

 

실행하면 before -> before -> after -> after 로 되서요 저만 그런건지.....

vela=# delete from ttest;

정보: trigf (fired before): there are 2 rows in ttest

정보: trigf (fired before): there are 1 rows in ttest

정보: trigf (fired after ): there are 0 rows in ttest

정보: trigf (fired after ): there are 0 rows in ttest

DELETE 2

vela=#

 

 

이 글에 대한 댓글이 총 2건 있습니다.

회신이 왔어요. 예제가 틀렸다네요.

 

IIRC we had discussed that stuff during the RI development and decided to have ALL _after_ triggers get fired by the deferred queue after the statement. The example deletes multiple rows in one statement.

 

========================================== JanWieck ( at ) Yahoo ( dot ) com #

 

 

 

양인철(zoar)님이 2005-10-14 16:37에 작성한 댓글입니다.

그렇군요. 별로 신경쓸 일이 없어서 잘 몰랐습니다.

좋은 것 알았네요. 감사합니다.

박성철(gyumee)님이 2005-10-15 23:33에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
6365Point-in-time에 관해서... [2]
백진수
2005-10-11
1873
6364permission denied
김성수
2005-10-11
2592
6362freebsd에서 jdbc설치하려고하는데요..; [1]
장하영
2005-10-11
2028
6361PostgredQL 8.0.4 문서 32.4의 트리거 예제에서 다른 결과가 나와서요.... [2]
양인철
2005-10-11
2040
6360initdb 후에 no relations found? [1]
이세진
2005-10-10
2084
6359처음으로...PostgreSQL을 사용하려고 합니다. [1]
백진수
2005-10-10
1961
6358사용자 계정에 하나의 디비만 접근 가능하도록 [2]
왕초보
2005-10-10
2416
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.016초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다