pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Aleksandr Vinokurov <aleksandr.vin@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SERIAL type's sequence is double-called or ?
Date: Fri, 07 Sep 2007 15:38:23 +0100
Message-ID: <46E1625F.4070701@archonet.com> (raw)
In-Reply-To: <46E154D2.8040203@gmail.com>
References: <46E154D2.8040203@gmail.com>

Aleksandr Vinokurov wrote:
> 
> Logging will be done with this rule:
> 
> create or replace rule chuwee_rule as on insert to chuwee
> do insert into chuwee_log (num, mesg)
>    values (new.num, new.mesg);

Don't do logging with rules, do logging with triggers.

See mailing-list archives for details.

-- 
   Richard Huxton
   Archonet Ltd



view thread (2+ messages)

Message-ID: <46E1625F.4070701@archonet.com>
Permalink:  ../46E1625F.4070701@archonet.com/
Also on:    postgresql.org/message-id/46E1625F.4070701@archonet.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, aleksandr.vin@gmail.com
  Subject: Re: SERIAL type's sequence is double-called or ?
  In-Reply-To: <46E1625F.4070701@archonet.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