Re: Bug in my ( newbie ) mind?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dan Lyke <danlyke(at)flutterby(dot)com>
Cc: Christopher Sawtell <csawtell(at)xtra(dot)co(dot)nz>, PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bug in my ( newbie ) mind?
Date: 2001-02-21 06:33:01
Message-ID: 9492.982737181@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dan Lyke <danlyke(at)flutterby(dot)com> writes:
> So one might think that, with appropriate casting, something more
> like:
> select (select phone_prefix.prefix order by random() limit 1) || ...
> would be more likely to work (modulo some casting and such).

Note this will not work in pre-7.1 releases --- 7.1 is the first that
allows ORDER BY and LIMIT clauses in a sub-select.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Lance Taylor 2001-02-21 07:25:46 Re: Weird indices
Previous Message Dan Lyke 2001-02-21 06:03:39 Bug in my ( newbie ) mind?