Joe Conway <[EMAIL PROTECTED]> writes: > > if (sigsetjmp(Warn_restart, 1) != 0) > > { > > memcpy(&Warn_restart, &save_restart, sizeof(Warn_restart)); > > newlocale = setlocale(LC_COLLATE, oldlocale); > > if (!newlocale) > > elog(PANIC, "setlocale failed to reset locale: %s", localestr); > > siglongjmp(Warn_restart, 1); > > }
Well presumably we want FATAL not PANIC. And do we still need HOLD_INTERRUPTS() .. RESUME_INTERRUPTS() ? I was afraid that was getting into bed too much with the error handling. I have an implementation that restores the locale around the palloc and increases the initial guess for future calls to avoid degenerate behaviour. I'm not sure which approach is preferable. -- greg ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])