> > (That's on a Unicode DB, haven't tested other encodings but AFAICT
> > this fix should still work.)
>
> Is there any chance that pg_database_encoding_max_length() could return
> zero
That's impossible or at least is the evidence of something badly
broken.
> and give a divide by zero error? Or is that trapped?
--
Tatsuo Ishii