Re: Suggested TODO: allow ALTERing of typemods without heap/index rebuild

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Suggested TODO: allow ALTERing of typemods without heap/index rebuild
Date: 2009-06-01 22:10:46
Message-ID: 4A2451E6.3060703@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeff,

> I observe that the casts (VARCHAR -> TEXT and TEXT -> VARCHAR) are
> marked WITHOUT FUNCTION. If that's the case, can't we use that to say
> that no heap rebuild is required? Perhaps we'll need to combine this
> with the typmod checks to see if we need to check the heap.

yeah, you're right .. that would give us a short list of conversions
which don't require a rewrite. However, as Tom points out, that
doesn't mean that they might not need a reindex (as well as OID, there's
also XML).

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2009-06-01 22:17:30 Re: User-facing aspects of serializable transactions
Previous Message Kevin Grittner 2009-06-01 22:07:16 Re: User-facing aspects of serializable transactions