Chris Lee <Chrislee(at)centurycity(dot)com(dot)hk> writes:
> Here is the content of pg_dump.bak
> 471 \connect template1 postgres
> 472 CREATE DATABASE "Chinese" WITH TEMPLATE = template0 ENCODING = 'EUC_TW';
> 473 \connect Chinese postgres
> Any Hints?
That last line needs to be
\connect "Chinese" postgres
This appears to be a bug in pg_dumpall --- it should quote the database
name to avoid case-folding. If you can hand-edit the dump script to
fix it, you should be okay.
regards, tom lane