Re: bootstrap tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bootstrap tables
Дата
Msg-id 15225.978737138@sss.pgh.pa.us
обсуждение исходный текст
Ответ на bootstrap tables  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Ответы Re: bootstrap tables  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump return status..
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: Re: Beta2 ... ?