| From: | Lele Gaifax <lele(at)metapensiero(dot)it> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Difference between CAST(v AS t) and v::t |
| Date: | 2017-11-12 07:52:32 |
| Message-ID: | 87mv3sgchr.fsf@metapensiero.it |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> 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(at)metapensiero(dot)it | -- Fortunato Depero, 1929.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christoph Berg | 2017-11-12 12:26:58 | Re: Postgres 10.1 fails to start: server did not start in time |
| Previous Message | Christoph Berg | 2017-11-11 20:53:16 | Re: Postgres 10.1 fails to start: server did not start in time |