AW: Please advise features in 7.1 (SUMMARY)

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: Please advise features in 7.1 (SUMMARY)
Дата
Msg-id 11C1E6749A55D411A9670001FA687963368150@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Список pgsql-hackers
> > This is a summary of replies.
> > 
> > 1. Calculated fields in table definitions . eg.
> > 
> >     Create table test (
> >              A Integer,
> >              B integer,
> >             the_sum   As  (A+B),
> > );
> > 
> > This functionality can be achieved through the use of views.
> 
> Using a view for this isn't quite the same functionality as a computed
> field, from what I understand, since the calculation will be done at
> SELECT time, rather than INSERT/UPDATE.

I would expect the calculated field from above example to be calculated
during select time also, no ? You don't want to waste disk space with something 
you can easily compute at runtime.

Andreas


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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Problem in AlterTableAddConstraint?
Следующее
От: "Mitch Vincent"
Дата:
Сообщение: Re: Please advise features in 7.1 (SUMMARY)