Re: default value dosen't get applyed in this situation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: default value dosen't get applyed in this situation
Дата
Msg-id 4724.1431293632@sss.pgh.pa.us
обсуждение исходный текст
Ответ на default value dosen't get applyed in this situation  (Aliouii Ali <aliouii.ali@aol.fr>)
Список pgsql-hackers
Aliouii Ali <aliouii.ali@aol.fr> writes:
> this a test case :

This is not supposed to insert a default.  Attach a default expression
to the view column, if you want inserts on the view to have defaults.
ALTER VIEW ... ALTER COLUMN ... SET DEFAULT is the way.

(Note that in recent versions of PG, that view would be auto-insertable
so you would not need to bother with the trigger.  But the situation
with defaults hasn't changed, and won't because it would be a backwards
compatibility break with no real value-add.)
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Parallel Seq Scan
Следующее
От: Kohei KaiGai
Дата:
Сообщение: Re: Custom/Foreign-Join-APIs (Re: [v9.5] Custom Plan API)