upcasting multiplication in a query

Поиск
Список
Период
Сортировка
От John Guthrie
Тема upcasting multiplication in a query
Дата
Msg-id 037901c2ecc2$cea38a30$3dc810ac@corphq.psynapsetech.net
обсуждение исходный текст
Ответы Re: upcasting multiplication in a query  (dev@archonet.com)
Re: upcasting multiplication in a query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
i have a schema that stores timestamps in seconds/microseconds format. each
column in the table is int4. what i want to do is to compute the int8 value
of total microseconds, a la: select (seconds*1000000)+micros from my_table;
but it looks to me like postgresql puts the rresult into another int4 (since
i am getting negative numbers, i assume overflow). how can i get it to use
int8?

thanks.
---
john guthrie
jguthrie@psynapsetech.net




В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: btree_gist, gint4_union
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Poor performance on a right join