pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Rules and transactions
2+ messages / 2 participants
[nested] [flat]

* Rules and transactions
@ 2001-01-23 22:43 Brett Schwarz <schwarz@PacketVideo.COM>
  2001-01-24 23:00 ` Re: Rules and transactions Jan Wieck <janwieck@Yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Brett Schwarz @ 2001-01-23 22:43 UTC (permalink / raw)
  To: pgsql-sql

If I have a rule, is the rule inside a tranaction along with the table that
it references. For example, if I have a rule that deletes an entry from
table B, whenever an entry in table A gets deleted, then is the delete for
table A and table B wrapped inside the same transaction?

Same question I guess goes for triggers.

thanks,

--brett



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Rules and transactions
  2001-01-23 22:43 Rules and transactions Brett Schwarz <schwarz@PacketVideo.COM>
@ 2001-01-24 23:00 ` Jan Wieck <janwieck@Yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jan Wieck @ 2001-01-24 23:00 UTC (permalink / raw)
  To: Brett Schwarz <schwarz@PacketVideo.COM>; +Cc: pgsql-sql

Brett Schwarz wrote:
> If I have a rule, is the rule inside a tranaction along with the table that
> it references. For example, if I have a rule that deletes an entry from
> table B, whenever an entry in table A gets deleted, then is the delete for
> table A and table B wrapped inside the same transaction?
>
> Same question I guess goes for triggers.

    Yes   and   yes.  Both  solutions  are  strictly  covered  by
    transactions.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-24 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-23 22:43 Rules and transactions Brett Schwarz <schwarz@PacketVideo.COM>
2001-01-24 23:00 ` Jan Wieck <janwieck@Yahoo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox