Re: SERIAL type's sequence is double-called or ?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Aleksandr Vinokurov <aleksandr(dot)vin(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SERIAL type's sequence is double-called or ?
Date: 2007-09-07 14:38:23
Message-ID: 46E1625F.4070701@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2007-09-07 17:41:00 Re: to_date function
Previous Message Tom Lane 2007-09-07 14:25:57 Re: to_date function