updatable views and default values

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема updatable views and default values
Дата
Msg-id c2d9e70e0608311014k29396927n627403ac17cf936e@mail.gmail.com
обсуждение исходный текст
Ответы Re: updatable views and default values
Список pgsql-hackers
Hi,

now that you're reviewing the updatable view patch, i think we must
decide what you're position will be about if the updatable view should
inherit the base table default values... or if we want to create
default values for every view if we want they match with the base
table ones... (fwiw, informix does the former)

now the problems...

i had a hack in the code to do that but it gives an error now because
some refactoring of the code when the multiple values for insert patch
was applied...

the hack was inside the build_column_default() function and the
problem seems to be because we are calling that function from
rewriteValuesRTE(), and idea is to put a flag in
build_column_default()'s arguments and try to get the base table's
default only when that flag is set...

but bernd and alvaro's advice was to get your opinions before wasting
time coding something that could be rejected...

so, opinions? ;)

-- 
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."                                      Richard Cook


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

Предыдущее
От: Chris Browne
Дата:
Сообщение: Slony-I 1.1.5 binaries at pgFoundry.org
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Prepared statements considered harmful