Re: Update rule on a view - what am I doing wrong

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Update rule on a view - what am I doing wrong
Дата
Msg-id kdd0bl$t8f$1@gonzo.reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Update rule on a view - what am I doing wrong  (Leif Jensen <leif@crysberg.dk>)
Ответы Re: Update rule on a view - what am I doing wrong  (Leif Jensen <leif@crysberg.dk>)
Список pgsql-general
On 2013-01-18, Leif Jensen <leif@crysberg.dk> wrote:

>    I have been fighting a problem with an update rule on a view. I
> have a view that combines two tables where the 'sub' table (scont) can
> have several rows per row in the 'top' table (icont). The view
> combines these to show only one record per row in the top table. To be
> able to update on this view I have created a rule 'on update'. The
> rule needs to have both UPDATE, DELETE, and INSERT commands. Is this
> not possible or am I doing something else wrong ?

when I hit that issue in 8.4 i used a plpgsql function

  ... do instead select update_rule_func(old,new);

--
⚂⚃ 100% natural

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Combine Date and Time Columns to Timestamp
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade problem from 8.4 to 9.2 problems on OSX