Alvaro Herrera <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> There is some good reason, which I don't recall at the moment, why >> assign-hooks (and most of the rest of GUC) shouldn't FATAL in the >> middle of processing a config file.
> I'm thinking of keeping the ERROR, which (I think) would cause > postmaster to treat it as FATAL because there is no error handler set up > yet (no, I haven't tried it). Yeah, it would, and that is the wrong thing. It is definitely not acceptable to throw an ERROR unconditionally, as that would cause postmaster abort during SIGHUP if an error is introduced into the config file after startup. It's possible that we could add some state by which assign-hook routines could check whether this is initial startup or not, but then we'd still have the issue of whether there are any other reasons not to throw ERROR just there (I have a feeling there are some internal-to-GUC reasons why not, as well as the obvious one that SIGHUP shouldn't be able to crash the postmaster). The whole idea sounds pretty shaky to me, and definitely not something to change in late beta. LOG we could do now without risking breaking anything. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match