RE: [GENERAL] Triggers: options besides compiled code?

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: Brian <signal(at)shreve(dot)net>, Roland Roberts <roberts(at)panix(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: RE: [GENERAL] Triggers: options besides compiled code?
Date: 1998-07-10 17:22:29
Message-ID: F10BB1FAF801D111829B0060971D839F321578@cpsmail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > I started to look at the triggers documentation and was immediately
> > dismayed to discover that I would have compile code to create a
> > trigger. I have been using the old "rules" mechanism to
> automatically
> > put a sequence number into a tuple when inserting new rows. Are my
> > choices limited to just (1) compiled code, and (2) the old rules
> > mechanism?
>
> if you insert a new row, isn't the sequence automatically inserted?
>
It is if you use table defaults. (see 'create table', and 'netval()')
-DEJ

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Konstantinos Vassiliadis 1998-07-10 18:30:01 Defining 'C' functions in Postgres
Previous Message Jackson, DeJuan 1998-07-10 17:11:48 RE: [GENERAL] How to rename a database?