Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 337AB9FB35E for ; Fri, 3 Aug 2007 19:34:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 53747-03 for ; Fri, 3 Aug 2007 19:34:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 38CC99FB353 for ; Fri, 3 Aug 2007 19:34:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l73MY9pe004771; Fri, 3 Aug 2007 18:34:09 -0400 (EDT) To: Andrew Kroeger cc: Sven Clement , Mark Lewis , pgsql-performance@postgresql.org Subject: Re: Performance problems with large telemetric datasets on 7.4.2 In-reply-to: <46B39A77.8050105@sprocks.gotdns.com> References: <881035ea0708030652r37b25a86g61e88e1f5e95eab2@mail.gmail.com> <1186150836.19184.194.camel@archimedes> <881035ea0708030857s621af020r4d3d7b994e2ca9a3@mail.gmail.com> <46B39A77.8050105@sprocks.gotdns.com> Comments: In-reply-to Andrew Kroeger message dated "Fri, 03 Aug 2007 16:13:27 -0500" Date: Fri, 03 Aug 2007 18:34:09 -0400 Message-ID: <4770.1186180449@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/29 X-Sequence-Number: 26159 Andrew Kroeger writes: > With the table definitions you posted, one of the first things I noticed > was that the default value for an integer column was a bigint value. I > did some quick 32-bit math and found that the smallest legal 32-bit > integer value is -2147483648, not -2147483684 (notice the last 2 numbers > are transposed). Oooh, good catch, but 7.4 seems to notice the overflow all right: regression=# create temp table foo(f1 int default -2147483684::bigint); CREATE TABLE regression=# insert into foo default values; ERROR: integer out of range regression=# select version(); version ---------------------------------------------------------------- PostgreSQL 7.4.17 on hppa-hp-hpux10.20, compiled by GCC 2.95.3 (1 row) So I think we can conclude that the OP never actually uses this default. regards, tom lane