Re: can I update multiple table at a time?

Поиск
Список
Период
Сортировка
От Jagadeesh
Тема Re: can I update multiple table at a time?
Дата
Msg-id dc8285b8-24cf-489d-80a4-621d2d9cc655@r37g2000prr.googlegroups.com
обсуждение исходный текст
Ответ на can I update multiple table at a time?  (Jagadeesh <mnjagadeesh@gmail.com>)
Ответы Re: can I update multiple table at a time?  (Julius Tuskenis <julius@nsoft.lt>)
Список pgsql-admin
Hi Julius Tuskenis,

Many thanks for helping me.  These are good solutions. But I have some
doubts
Look below

On Oct 10, 11:06 am, jul...@nsoft.lt (Julius Tuskenis) wrote:

> I would suggest you 2 solutions:
>   1. to use a function to edit these fields. That way you will be sure
> that you will not forget to update both tables.
>   2. use a trigger on master table. If I understand you - the history
> table could be filled using trigger, when data in master table changes.
> That way you could change only master table in your application.
>
I think having triggers would bring performance down. So instead can
we have single
sql update statement to update all four fields of  two tables? Just a
crazy idea.

> Good luck!
>
Thanks for the wish.
These wishes needed to implement smart solution to above problem :)

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

Предыдущее
От: Julius Tuskenis
Дата:
Сообщение: Re: can I update multiple table at a time?
Следующее
От: Jagadeesh
Дата:
Сообщение: Re: how to invoke edtor?