Unix Technical Forum

BUG #1955: trigger action on delete

This is a discussion on BUG #1955: trigger action on delete within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 1955 Logged by: incheol yang Email address: zoar@paran.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:17 AM
incheol yang
 
Posts: n/a
Default BUG #1955: trigger action on delete


The following bug has been logged online:

Bug reference: 1955
Logged by: incheol yang
Email address: zoar@paran.com
PostgreSQL version: 8.0.4
Operating system: fedora core 4
Description: trigger action on delete
Details:

kernel : version 2.6.13-1.1526_FC4
CPU : AMD ATHLON 1G Hz kernel version

rpm postgresql-8.0.4-2.FC4.1
db encoded by UNICODE
_int.sql contrib was appended

source code was copied by mouse.
cc (GCC) 4.0.1 20050727 (Red Hat 4.0.1-5)

cc -fpic -c trigf.c -I/usr/include/pgsql/server
cc -shared -o trigf.so trigf.o

cp trigf.so /usr/lib/pgsql/.

================================================== =============

8.0.4 Document chapter 32.4
================================================== ============= INSERT,
INSERT INTO, UPDATE commands had same output, but

=> 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


fired before -> after -> before -> after

================================================== =============
My output
================================================== =============

=> DELETE FROM ttest;
INFO: trigf (fired before): there are 2 rows in ttest INFO: trigf (fired
before): there are 1 rows in ttest INFO: trigf (fired after ): there are 0
rows in ttest INFO: trigf (fired after ): there are 0 rows in ttest

fired before -> before -> after -> after

Is this my fault?

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:17 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #1955: trigger action on delete

"incheol yang" <zoar@paran.com> writes:
> => DELETE FROM ttest;
> INFO: trigf (fired before): there are 2 rows in ttest INFO: trigf (fired
> before): there are 1 rows in ttest INFO: trigf (fired after ): there are 0
> rows in ttest INFO: trigf (fired after ): there are 0 rows in ttest


> fired before -> before -> after -> after


> Is this my fault?


I think this is a documentation bug. I'm not sure the example output
was ever correct, but it's certainly wrong now.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com