[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pgsql-bugs
Subject:    Re: [BUGS] setseed accepts bad seeds
From:       Bruce Momjian <bruce () momjian ! us>
Date:       2007-04-27 1:07:24
Message-ID: 200704270107.l3R17Om21230 () momjian ! us
[Download RAW message or body]


This has been saved for the 8.4 release:

	http://momjian.postgresql.org/cgi-bin/pgpatches_hold

---------------------------------------------------------------------------

Kris Jurka wrote:
> 
> 
> On Wed, 11 Apr 2007, Tom Lane wrote:
> 
> > It's not really possible to use it "incorrectly", AFAICS.  Any value you
> > might pass to it will result in a specific new seed value.  Nowhere is
> > there any guarantee of what the mapping is, and it's obviously
> > impossible to guarantee that the mapping is one-to-one, so any user
> > assumptions about what a specific seed value might "mean" seem broken
> > regardless.
> >
> 
> Then please consider this patch which checks the range and maps the 
> provided value to the entire seed space.
> 
> Kris Jurka
Content-Description: 

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
> 
>                 http://www.postgresql.org/about/donate

-- 
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic