Re: [HACKERS] Adding PRIMARY KEY info

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Adding PRIMARY KEY info
Date: 1998-09-03 15:37:31
Message-ID: 199809031537.LAA06997@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Thus spake Bruce Momjian
> > > I tried adding the PRIMARY KEY info to pg_class but the resulting data
> > > base system simply dumps core everywhere. Can someone point me to the
> >
> > My recommendation is to find a seldom-used field in pg_class, like
> > relchecks, and find all instances of that in the code, and add code for
> > your new field in all those places. You need to assign the value in
> > call cases where you are inserting into pg_class, not just the initdb
> > stuff.
>
> Does this relate to the core dumping? Since there is so far no code
> using this field, how would adding a field dump core? Can you see
> anything in my description of what I did to account for this.
>
> Your suggestion sounds good for the next step though. Thanks.

It is possible. Fields are accessed internally for copying and stuff,
though because it is a byvalue field, it should not matter.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-09-03 16:01:40 Re: [HACKERS] LinuxPPC problems
Previous Message Thomas A. Szybist 1998-09-03 15:26:40 Re: [HACKERS] index fix report