Fix the problem that creating a user-defined type named _foo, followed by one

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9aa3c782c939f29bd562a22030fb3a64e6f18365
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-05-12T00:55:00Z
Releases: 8.3.0
Fix the problem that creating a user-defined type named _foo, followed by one
named foo, would work but the other ordering would not.  If a user-specified
type or table name collides with an existing auto-generated array name, just
rename the array type out of the way by prepending more underscores.  This
should not create any backward-compatibility issues, since the cases in which
this will happen would have failed outright in prior releases.

Also fix an oversight in the arrays-of-composites patch: ALTER TABLE RENAME
renamed the table's rowtype but not its array type.

Files