Re: insert

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: insert
Дата
Msg-id 4E32CE5D020000250003F8FF@gw.wicourts.gov
обсуждение исходный текст
Ответ на insert  (alan <alan.miller3@gmail.com>)
Ответы Re: insert  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-performance
alan <alan.miller3@gmail.com> wrote:

> Can I write a BEFORE ROW trigger for the products table  to runs
> on INSERT or UPDATE to
>  1. insert a new category & return the new category_id  OR
>  2.  return the existing category_id for the (to be inserted row)

What would you be using to match an existing category?  If this
accurately identifies a category, why not use it for the key to the
category table, rather than generating a synthetic key value?

-Kevin

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: heavy load-high cpu itilization
Следующее
От: Robert Klemme
Дата:
Сообщение: Re: Performance penalty when using WITH