Re: enums

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: enums
Дата
Msg-id 43618B03.8050704@dunslane.net
обсуждение исходный текст
Ответ на Re: enums  (Ted Rolle <ted.rolle@gmail.com>)
Список pgsql-hackers

Ted Rolle wrote:

> This little snippet is great!  The only problem I see is that the 
> enums must be consistent across all modules.
>
> What about loading a variable with a "default" value?  Then it could 
> be adjusted to 'play'.
>
>

You can set a default for a variable using one of these types, as you 
can for any other postgres type:
   create table bar (color rainbow default 'blue');   insert into bar values(default);

As for any postgres type, the default must be a valid value for the type.

cheers

andrew


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: enums
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: enums