Re: replace oidrand() with random_sample() - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: replace oidrand() with random_sample()
Date
Msg-id 200301160427.h0G4RFH01338@candle.pha.pa.us
Whole thread Raw
In response to Re: replace oidrand() with random_sample()  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: replace oidrand() with random_sample()  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Re: replace oidrand() with random_sample()  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Tom Lane wrote:
> > Whether we leave it in or not, I'd vote for eventually getting rid of
> > the current version. So if we keep it, we could add random_sample() and
> > keep oidrand() as a wrapper over it (that emits an elog(WARNING) to let
> > people know it's been deprecated). And if we want to get rid of it, we
> > could probably just add the elog() for 7.4 and then remove it outright
> > in 7.5.
>
> Well, now you're adding a whole lot of maintenance effort to support
> some quite-hypothetical users of a function we all agree is junk ;-)
>
> I think we should either leave it be, or rip it out and be done with it.
> I don't actually much care which (does anyone out there have an
> opinion?).  But a phased-obsolescence plan is far more work than it
> deserves.

Yea, just remove it and we can re-add it later if people ask for it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: replace oidrand() with random_sample()
Next
From: Neil Conway
Date:
Subject: Re: replace oidrand() with random_sample()