Re: the '::' cast doesn't work in the FROM clause - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: the '::' cast doesn't work in the FROM clause
Date
Msg-id 4E5B552502000025000407EB@gw.wicourts.gov
Whole thread Raw
In response to Re: the '::' cast doesn't work in the FROM clause  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: the '::' cast doesn't work in the FROM clause
Re: the '::' cast doesn't work in the FROM clause
List pgsql-bugs
Merlin Moncure <mmoncure@gmail.com> wrote:

> yeah, that's the correct way, but why does this work?
> select val from random() as val;

If you look at the PostgreSQL reference docs for the SELECT
statement, a from_item can be a SELECT statement in parentheses or a
function call (among other things).  It cannot be an arbitrary
expression containing operators (like ::).

-Kevin

pgsql-bugs by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: the '::' cast doesn't work in the FROM clause
Next
From: "Kevin Grittner"
Date:
Subject: Re: the '::' cast doesn't work in the FROM clause