Re: Removing pg_migrator limitations
| От | Tom Lane |
|---|---|
| Тема | Re: Removing pg_migrator limitations |
| Дата | |
| Msg-id | 932.1261671546@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Removing pg_migrator limitations (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: Removing pg_migrator limitations
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@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
В списке pgsql-hackers по дате отправления: