Re: Bug in my ( newbie ) mind? - Mailing list pgsql-general

From Tom Lane
Subject Re: Bug in my ( newbie ) mind?
Date
Msg-id 9492.982737181@sss.pgh.pa.us
Whole thread Raw
In response to Bug in my ( newbie ) mind?  (Dan Lyke <danlyke@flutterby.com>)
Responses Re: Bug in my ( newbie ) mind?
List pgsql-general
Dan Lyke <danlyke@flutterby.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

pgsql-general by date:

Previous
From: Dan Lyke
Date:
Subject: Bug in my ( newbie ) mind?
Next
From: Ian Lance Taylor
Date:
Subject: Re: Weird indices