Andrew Dunstan <andrew@dunslane.net> writes:
> what is even worse is that this procedure doesn't take any care at all
> of the ordering rule for even numbered enum oids.
Good point. You really should use ALTER TYPE ADD VALUE, on versions
where that's available.
regards, tom lane