Re: First decent PostgreSQL CBT now on techdocs.postgresql.org

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Conway <joseph(dot)conway(at)home(dot)com>
Cc: Justin Clift <justin(at)postgresql(dot)org>, PostgreSQL General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: First decent PostgreSQL CBT now on techdocs.postgresql.org
Date: 2001-12-28 17:52:52
Message-ID: 200112281752.fBSHqqT24715@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-general

> > What I'm hoping to get is constructive feedback, as I've put as much
> > time, thought, and effort into this first one as I know how to. I'm
> > talking HEAPS. Suggestions of what should be the subject of the next
> > CBT are also welcome.
>
> Two minor comments:
>
> First, in 7.2+ sequences are based on 8 byte integers on platforms which
> support them, so the default maxvalue is 9223372036854775807 instead of
> 2147483647.

I do have a question about that. If I do this:

test=> create table test (x serial);
NOTICE: CREATE TABLE will create implicit sequence 'test_x_seq' for SERIAL column 'test.x'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'test_x_key' for table 'test'
CREATE
test=> \d test
Table "test"
Column | Type | Modifiers
--------+---------+------------------------------------------------
x | integer | not null default nextval('"test_x_seq"'::text)
Unique keys: test_x_key

test=>

My column is an integer. I assume that is 4 bytes on all platforms. If
it isn't, how does it know if the receiving end supports 8 bytes
integers?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-announce by date

  From Date Subject
Next Message Tom Lane 2001-12-28 18:10:32 Re: First decent PostgreSQL CBT now on techdocs.postgresql.org
Previous Message Joe Conway 2001-12-28 06:45:32 Re: First decent PostgreSQL CBT now on techdocs.postgresql.org

Browse pgsql-general by date

  From Date Subject
Next Message Jeffrey W. Baker 2001-12-28 18:06:16 postgres processes spending most of their time in the kernel
Previous Message Troy.Campano 2001-12-28 17:28:13 Re: Shutting down postgresql