RE: [GENERAL] Triggers: options besides compiled code?
Jackson, DeJuan <djackson@cpsgroup.com>
From: "Jackson, DeJuan" <djackson@cpsgroup.com>
To: Brian <signal@shreve.net>, Roland Roberts <roberts@panix.com>
Cc: pgsql-general@postgreSQL.org
Date: 1998-07-10T17:22:29Z
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