pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc G. Fournier <scrappy@hub.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: simple trigger question ...
Date: Wed, 02 Apr 2003 22:44:37 -0500
Message-ID: <25296.1049341477@sss.pgh.pa.us> (raw)
In-Reply-To: <20030402223933.M71125@hub.org>
References: <20030402223933.M71125@hub.org>

"Marc G. Fournier" <scrappy@hub.org> writes:
> I want to create a trigger on a table that for every insert, in performs a
> nextval on a sequence ...

Er ... you just want to bump the sequence and throw away the actual
value?  You don't want to store the value somewhere?

			regards, tom lane




view thread (10+ messages)  latest in thread

Message-ID: <25296.1049341477@sss.pgh.pa.us>
Permalink:  ../25296.1049341477@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25296.1049341477@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, scrappy@hub.org
  Subject: Re: simple trigger question ...
  In-Reply-To: <25296.1049341477@sss.pgh.pa.us>

* 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