Re: autogenerating headers & bki stuff - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: autogenerating headers & bki stuff
Date
Msg-id 20090727011954.GA10327@alvh.no-ip.org
Whole thread Raw
In response to Re: autogenerating headers & bki stuff  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane escribió:

> I experimented with that a little bit and found it doesn't seem to be
> tremendously easy.  A non-bootstrap-mode backend will PANIC immediately
> on startup if it doesn't find the critical system indexes, so the second
> step has issues.  Also, there is no provision for resuming bootstrap
> mode in an already-existing database, so the third step doesn't work
> either.

FWIW we hacked up a sort-of-bootstrap mode in Mammoth Replicator to be
able to create our own catalogs and stuff.  It's not particularly
hard nor large:

 bootstrap.c |   31 ++++++!!!!!!!!!!!!!!!!!!!!!!!!!
 1 file changed, 6 insertions(+), 25 modifications(!)


(This is BSD code so feel free to use it if you find it useful)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: autogenerating headers & bki stuff
Next
From: Robert Haas
Date:
Subject: Re: generic explain options v3