From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | further bootstrap cleanup |
Date: | 2007-02-16 05:17:38 |
Message-ID: | 20070216051738.GB29933@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Here is a patch further cleaning up dummy process startup and the
bootstrap code itself a little.
I've tested it manually giving erroneous input and it behaves in the
same ways as the original. Of course, it still manages to bootstrap
normally and passes regression tests.
This patches removes a BOOTSTRAP_INCLUDE symbol from tcopprot.h, since
it seems to be useless. It is about trying to avoid getting prototypes
for functions not needed in bootstrap, presumably because at some point
the bootstrap.c file did not have enough includes to be able to compile
those definitions cleanly, or maybe because it had conflicting
definitions. But it now works without that.
I also took the liberty of renaming "xlog operation" into "dummy process
type", since that's what really the things are. I assume it was named
"xlog operation" back when the xlog code was written with the idea of
extending it into different xlog ops. But we haven't had any.
I think this is as far as I'll go with cleaning up this code in this
round. Task for some other janitor ...
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
Attachment | Content-Type | Size |
---|---|---|
bootstrap-cleanup.patch | text/x-diff | 18.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2007-02-16 05:39:04 | Re: [GENERAL] ISO week dates |
Previous Message | Bruce Momjian | 2007-02-16 05:05:42 | Re: [GENERAL] ISO week dates |