pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: stuart@comodo.net
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] sequences
Date: Thu, 04 Nov 1999 15:53:37 +0000
Message-ID: <3821AC01.ABAE5D89@alumni.caltech.edu> (raw)
References: <Pine.LNX.4.10.9911010757590.21758-100000@vega.inf.cu>
	<99110211052602.00437@FAETHOR>

>  The size of a sequence is 32bit , correct? (im pretty damn sure it is). Is
> there any way I can tune this to 64bit, There is an int8 option in postgres as
> I use that already.Threre is a skanky way of creating an incremenetd counter
> whilst using an int8 but I would rather up the sequence in the code. Anyone got
> any ideas where to look?

Look in src/backend/parser/gram.y and analyze.c for where sequences
(the serial type) is handled. The code actually just embeds the
"skanky" technique to hide it from the user. A very first cut might be
to make this configurable by defining, say, SERIAL_IS_INT64. Patches
accepted ;)

                    - Thomas

-- 
Thomas Lockhart				lockhart@alumni.caltech.edu
South Pasadena, California



view thread (7+ messages)

Message-ID: <3821AC01.ABAE5D89@alumni.caltech.edu>
Permalink:  ../3821AC01.ABAE5D89@alumni.caltech.edu/
Also on:    postgresql.org/message-id/3821AC01.ABAE5D89@alumni.caltech.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lockhart@alumni.caltech.edu, stuart@comodo.net
  Subject: Re: [INTERFACES] sequences
  In-Reply-To: <3821AC01.ABAE5D89@alumni.caltech.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox