From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | overbored <overbored(at)overbored(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Help extending pg_class |
Date: | 2004-12-19 14:35:21 |
Message-ID: | 20041219143521.GB24322@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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[(at)]dcc(dot)uchile(dot)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)
From | Date | Subject | |
---|---|---|---|
Next Message | Gaetano Mendola | 2004-12-19 15:35:01 | Stable functions problem |
Previous Message | Reini Urban | 2004-12-19 14:24:55 | Re: buildfarm improvements |