pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Vivek Khera <vivek@khera.org>
To: pgsql-sql@postgresql.org
Subject: Re: Create on insert a unique random number
Date: Tue, 18 Mar 2008 13:56:37 -0400
Message-ID: <6649C6F5-BEDE-4A66-A9A3-33CE95633A83@khera.org> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760CDDC33@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE8760CDDC32@SAB-FENWICK.sab.uiuc.edu>
<268179.51357.qm@web54301.mail.re2.yahoo.com>
<20080318165138.GA6578@a-kretschmer.de>
<B10E6810AC2A2F4EA7550D072CDE8760CDDC33@SAB-FENWICK.sab.uiuc.edu>
On Mar 18, 2008, at 1:03 PM, Campbell, Lance wrote:
> The field n is not random but is sequential. Is there something I
> should do to make the serial number random?
Depending on your "randomness" need, you can alter the increment of
the sequence so it changes by a different amount than "1" on every
increment, though it will still be constant increment.
You need to specify what the purpose of it being random is, then you
might get more useful responses. Does it need to be random for some
security purpose? If so, describe the level of security,
specifically, against what threat are you defending?
view thread (19+ messages) latest in thread
Message-ID: <6649C6F5-BEDE-4A66-A9A3-33CE95633A83@khera.org> Permalink: ../6649C6F5-BEDE-4A66-A9A3-33CE95633A83@khera.org/ Also on: postgresql.org/message-id/6649C6F5-BEDE-4A66-A9A3-33CE95633A83@khera.org ·
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: vivek@khera.org Subject: Re: Create on insert a unique random number In-Reply-To: <6649C6F5-BEDE-4A66-A9A3-33CE95633A83@khera.org> * 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