Re: Help extending pg_class - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Help extending pg_class
Date
Msg-id 20041219143521.GB24322@dcc.uchile.cl
Whole thread Raw
In response to Help extending pg_class  (overbored <overbored@overbored.net>)
List pgsql-hackers
On Sun, Dec 19, 2004 at 01:56:02AM -0800, overbored wrote:
> Hi all, I added a new variable-length field to the pg_class catalog, but 
> I did something wrong, and I can't tell what else I'd need to change. (I 
> know about how extending pg_class is bad and all, but it seems to be the 
> simplest solution to my problem right now, and I'd just like to get it 
> working.) The code I'm working with is based on Postgres 7.3.2 (avail. 
> at http://telegraph.cs.berkeley.edu). I've added a char field to it 
> before, but now I'm trying to add a text field, which pg_type also has. 
> I modified pg_class.h and pg_attribute.h (which I've pasted to 
> http://rafb.net/paste/results/c1CiIo27.html),

You need to fix CLASS_TUPLE_SIZE.  Not sure how far that would take you,
because adding a varlena field to pg_class does not strike me as a
trivial exercise.  For a modification that's gonna stay academic, I
would have opted for a different catalog.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Ellos andaban todos desnudos como su madre los parió, y también las mujeres,
aunque no vi más que una, harto moza, y todos los que yo vi eran todos
mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)


pgsql-hackers by date:

Previous
From: Reini Urban
Date:
Subject: Re: buildfarm improvements
Next
From: Martha Chronopoulou
Date:
Subject: Bitmapset data type???