Re: bootstrap tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bootstrap tables
Date
Msg-id 15225.978737138@sss.pgh.pa.us
Whole thread Raw
In response to bootstrap tables  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Responses Re: bootstrap tables  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
List pgsql-hackers
"Ross J. Reedstrom" <reedstrm@rice.edu> writes:
> One difference between my new table and the other system tables,
> perhaps, is that there is no code using the table: perhaps something
> with how mdopen will substitute for mdcreate, and create files while
> under bootstrapmode?

I suspect that's got something to do with it.  The initialization
sequence is pretty haphazard in this area; some of the core tables are
physically created by mdopen's that occur before the associated 'create'
command from the BKI script, because the table is actually referenced by
code that executes before it's "created".  Others are not, and come into
being during the 'create' the way you'd expect.

Still, it sure looks like 'create bootstrap' should cause mdcreate()
to be called, so I'm not sure why you'd see the file not get created
at all.  Have you tried tracing through it with a debugger?

Do you really need the thing to be a bootstrap table, and not a plain
system table?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump return status..
Next
From: Lamar Owen
Date:
Subject: Re: Re: Beta2 ... ?