Bruce Momjian <br...@momjian.us> writes: > I thought of a cleaner approach. CREATE TYPE ENUM will create one enum > with the specified oid, and then a server-side function will call > EnumValuesCreate() be used to add each additional enum with a specified > oid --- no deleting necessary. I will start working on a patch for > this.
The approach I originally suggested was to create the enum type with *no* members, and then add the values one at a time. It might take a tweak to the CREATE TYPE AS ENUM grammar to allow zero members, but I don't see any logical problem with such a thing. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers