pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Stehule <pavel.stehule@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: documentation bug - behave of NEW a OLD in plpgsql's triggers
Date: Mon, 2 May 2011 18:00:48 +0200
Message-ID: <BANLkTi=Neok1uboh4P4jxuGWBpbOFH2wdQ@mail.gmail.com> (raw)

Hello

one czech user reported a bug in documentation -
http://www.postgresql.org/docs/8.4/static/plpgsql-trigger.html

NEW

    Data type RECORD; variable holding the new database row for
INSERT/UPDATE operations in row-level triggers. This variable is NULL
in statement-level triggers and for DELETE operations.
OLD

    Data type RECORD; variable holding the old database row for
UPDATE/DELETE operations in row-level triggers. This variable is NULL
in statement-level triggers and for INSERT operations.

It isn't correct. NEW is not declared in DELETE trigger, OLD isn't
declared in INSERT

Regards

Pavel Stehule



view thread (11+ messages)  latest in thread

Message-ID: <BANLkTi=Neok1uboh4P4jxuGWBpbOFH2wdQ@mail.gmail.com>
Permalink:  ../BANLkTi=Neok1uboh4P4jxuGWBpbOFH2wdQ@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTi=Neok1uboh4P4jxuGWBpbOFH2wdQ@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pavel.stehule@gmail.com
  Subject: Re: documentation bug - behave of NEW a OLD in plpgsql's triggers
  In-Reply-To: <BANLkTi=Neok1uboh4P4jxuGWBpbOFH2wdQ@mail.gmail.com>
  References: <BANLkTi=Neok1uboh4P4jxuGWBpbOFH2wdQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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