pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Ann Harrison <ann@qbeast.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: James Healy <james@yob.id.au>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Gradual migration from integer to bigint?
Date: Fri, 6 Oct 2023 17:11:57 -0400
Message-ID: <ZSB4HbCXIbk6Zh6q@momjian.us> (raw)
In-Reply-To: <CALAsn_L5EQ3kLCn6QDgkTLXLEqKTqwZK3a2ivXq0=DrsBZCndA@mail.gmail.com>
References: <CAE4DO2THV1_70g5nRWDZiJOHPP7LnSHfYGzAdiTzFiu4L+o5iA@mail.gmail.com>
	<ZRhcRnnUrGsB3p7K@momjian.us>
	<CAE4DO2QAKxNnaPO6FepV_C1B9MV3ahWADG=V+j3wprqPcxa0rg@mail.gmail.com>
	<1635509.1696131447@sss.pgh.pa.us>
	<CALAsn_L5EQ3kLCn6QDgkTLXLEqKTqwZK3a2ivXq0=DrsBZCndA@mail.gmail.com>

On Sun, Oct  1, 2023 at 05:30:39AM -0400, Ann Harrison wrote:
> Other databases do allow that sort of gradual migration.  One example
> has an internal table of record descriptions indexed the table identifier 
> and a description number.  Each record includes a header with various 
> useful bits including its description number. When reading a record, 
> the system notes the description number and looks up the description 
> before parsing the record into columns.  
> 
> The transition is made easier if the database indexes are generic - 
> for example, numbers rather than decimal[12,6], int32, etc., and string 
> rather than varchar[12].   That way, increasing a column size doesn't
> require re-indexing.
> 
> But, those are decision that really had to be made early - making
> a major format change 25+ years in would break too much.

And the performance sounds terrible.  ;-)

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.





view thread (12+ messages)

Message-ID: <ZSB4HbCXIbk6Zh6q@momjian.us>
Permalink:  ../ZSB4HbCXIbk6Zh6q@momjian.us/
Also on:    postgresql.org/message-id/ZSB4HbCXIbk6Zh6q@momjian.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bruce@momjian.us, ann@qbeast.net, tgl@sss.pgh.pa.us, james@yob.id.au
  Subject: Re: Gradual migration from integer to bigint?
  In-Reply-To: <ZSB4HbCXIbk6Zh6q@momjian.us>
  References: <CAE4DO2THV1_70g5nRWDZiJOHPP7LnSHfYGzAdiTzFiu4L+o5iA@mail.gmail.com> <ZRhcRnnUrGsB3p7K@momjian.us> <CAE4DO2QAKxNnaPO6FepV_C1B9MV3ahWADG=V+j3wprqPcxa0rg@mail.gmail.com> <1635509.1696131447@sss.pgh.pa.us> <CALAsn_L5EQ3kLCn6QDgkTLXLEqKTqwZK3a2ivXq0=DrsBZCndA@mail.gmail.com> <ZSB4HbCXIbk6Zh6q@momjian.us>

* 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