Skip site navigation (1) Skip section navigation (2)

From: root(at)blik(dot)samara(dot)su (Samara CIT)
To: undisclosed-recipients:;
Subject:
Date: 1998-12-29 10:25:18
Message-ID: 199812291025.OAA19528@blik.samara.su (view raw or flat)
Thread:
Lists: pgsql-hackers
>From [194.58.47.100]!mcit.aris.ru!hub.org!owner-pgsql-hackers  Mon Dec 28 10:36:17 GMT 1998 remote from doom
Received: from mcit.aris.ru ([194.58.47.100]) by doom.samara.su with SMTP id AA00382
  (5.65/IDA-simtel  for <evg(at)relay1(dot)cit(dot)ru>); Mon, 28 Dec 1998 10:36:17 +0400
Received: from hub.org by mcit.aris.ru with ESMTP id VAA16622;
  (8.8.5-MVC-230497/vak/1.9) Sun, 27 Dec 1998 21:34:50 +0300 (MSK)
Received: from localhost (majordom(at)localhost)
	by hub.org (8.9.1/8.9.1) with SMTP id NAA24515;
	Sun, 27 Dec 1998 13:32:02 -0500 (EST)
	(envelope-from owner-pgsql-hackers(at)hub(dot)org)
Received: by hub.org (TLB v0.10a (1.23 tibbs 1997/01/09 00:29:32)); Sun, 27 Dec 1998 13:30:56 +0000 (EST)
Received: (from majordom(at)localhost)
	by hub.org (8.9.1/8.9.1) id NAA24155
	for pgsql-hackers-outgoing; Sun, 27 Dec 1998 13:30:43 -0500 (EST)
	(envelope-from owner-pgsql-hackers(at)postgreSQL(dot)org)
Received: from enrico.ied.com (IDENT:root(at)miranda(dot)uwaterloo(dot)ca [129.97.130.69])
	by hub.org (8.9.1/8.9.1) with ESMTP id NAA23958
	for <pgsql-hackers(at)postgreSQL(dot)org>; Sun, 27 Dec 1998 13:29:46 -0500 (EST)
	(envelope-from honza(at)ied(dot)com)
Received: from ann.ied.com (honza(at)ann(dot)ied(dot)com [192.168.200.20])
	by enrico.ied.com (8.8.7/8.8.7) with ESMTP id NAA28100
	for <pgsql-hackers(at)postgreSQL(dot)org>; Sun, 27 Dec 1998 13:28:50 -0500
Date: Sun, 27 Dec 1998 13:29:23 -0500 (EST)
From: Jan Vicherek <honza(at)ied(dot)com>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: [HACKERS] int8 type substitute ?
Message-Id: <Pine(dot)LNX(dot)4(dot)04(dot)9812271322110(dot)11035-100000(at)ann(dot)ied(dot)com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-pgsql-hackers(at)postgreSQL(dot)org
Precedence: bulk


  Hello,

   I'm looking for a int8-like type or equivalent substitute.

   float8 is the first one that comes to mind, but a question arises :
  isn't there a chance that if I store float8 values be integers, it may
on some occasions return to me a decimal ? I.e. I would store something
like
 2814749767106569
and on retrieval it would return something like
 2814749767106568.999999999998 instead of 2814749767106569 ?

   If there is such danger, what other suitable 8 byte data type (other
than char(8)) would there be in PG to give me the ablility to store
integers > 2^32 ?

  Or is it quite fast, easy, simple and performance-effective to add my
own 'int8' data type ?

    Thanx,

      Jan


 -- Gospel of Jesus is the saving power of God for all who believe --
                ## To some, nothing is impossible. ##
                   http://Vicherek.Waterloo.on.ca/



pgsql-hackers by date

Next:From: Samara CITDate: 1998-12-29 10:25:21
Subject:
Previous:From: Samara CITDate: 1998-12-29 10:25:17
Subject:

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group