Search Postgresql Archives

Re: Difference between CAST(v AS t) and v::t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Lane <tgl@xxxxxxxxxxxxx> writes:

> ... but expression-index syntax has the restriction that you need
> parentheses around an expression unless it is, or at least looks like,
> a function call.  CAST() looks enough like a function call for this
> purpose, v::t does not.
>
> I think there is relevant documentation for this near CREATE INDEX;
> it doesn't seem like the province of the typecast docs to explain
> the weirdnesses of index syntax.

Thank you Tom, I really missed the explanation in CREATE INDEX doc entry!

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@xxxxxxxxxxxxxxx  |                 -- Fortunato Depero, 1929.



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux