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 (<[EMAIL PROTECTED]>) "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) ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly