Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
>> Given the present backend coding, all the DBs in an installation will
>> have the same lastsysoid as template0 anyway, barring manual
>> intervention.
> Not the way the current 'CREATE DATABASE' code works - remember the changes
> to set the OID at create time? AFAICT, that's still there.
Look again. lastsysoid is now inherited from the database being cloned.
AFAICT all your subsequent comments are based on that
misunderstanding...
regards, tom lane