From: | Shaun Thomas <sthomas(at)townnews(dot)com> |
---|---|
To: | Justin Clift <aa2(at)bigpond(dot)net(dot)au> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Suggested improvement : Adjust SEQUENCES to accept an INCREMENT of functionname(parameters) instead of an integer |
Date: | 2001-06-22 12:24:28 |
Message-ID: | Pine.LNX.4.33L2.0106220822240.14272-100000@hamster.lee.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 22 Jun 2001, Justin Clift wrote:
> For my example, I'd use this to add random positive increments (specifically
> to avoid easy predictability of the sequence), but it would be quite flexible.
It's called a trigger. Just take out the sequence, and build a trigger
that does this for you. That's why Postgres has them, after all.
--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Shaun M. Thomas INN Database Programmer |
| Phone: (309) 743-0812 Fax : (309) 743-0830 |
| Email: sthomas(at)townnews(dot)com AIM : trifthen |
| Web : hamster.lee.net |
| |
| "Most of our lives are about proving something, either to |
| ourselves or to someone else." |
| -- Anonymous |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
From | Date | Subject | |
---|---|---|---|
Next Message | Paul | 2001-06-22 12:54:16 | Re[4]: Postgres is too slow? |
Previous Message | Alex Pilosov | 2001-06-22 11:55:56 | Re: Re[2]: Postgres is too slow? |