Re: Trunc in Postgres - Mailing list pgsql-general

From Chris Boget
Subject Re: Trunc in Postgres
Date
Msg-id 00f201c37226$b940a0d0$8c01a8c0@ENTROPY
Whole thread Raw
In response to Re: Trunc in Postgres  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Responses Re: Trunc in Postgres  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List pgsql-general
> You can try
> select CAST(cast('0000000000000000000000004' as NUMERIC(20)) AS varchar);

noobie question:

Do multiple casts like that slow down the query (in general and not specifically
for the query above)?  If not, what about if the query is complex?

thnx,
Chris


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Localization (for dates) Oracle vs. Postgresql
Next
From: "Jenny -"
Date:
Subject: identifying rows locked in row level locking