Re: setseed accepts bad seeds

From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: setseed accepts bad seeds
Date: 2008-03-10 06:14:07
Message-ID: Pine.BSO.4.64.0803100212500.24272@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 10 Mar 2008, Tom Lane wrote:

> I'd be inclined to leave the mapping alone and just insert a warning
> (or hard error) for inputs outside the range -1 to 1.
>

Here's a patch that errors out for out of range values.

Kris Jurka

Attachment Content-Type Size
setseed-range-check.patch text/plain 2.7 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message mohit 2008-03-10 08:15:37 Help needed in Solving the problem in pg_restore
Previous Message Tom Lane 2008-03-10 04:15:05 Re: setseed accepts bad seeds