Re: fire trigger for a row without update?

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: fire trigger for a row without update?
Дата
Msg-id
b42b73150901150452s2c1de0f9r1e93bcc275a8f372@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: fire trigger for a row without update? Jasen Betts <jasen@xnet.co.nz>
Re: fire trigger for a row without update? "Brendan Jurd" <direvus@gmail.com>
Re: fire trigger for a row without update? "Merlin Moncure" <mmoncure@gmail.com>
Re: fire trigger for a row without update? Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
On Thu, Jan 15, 2009 at 5:14 AM, Jasen Betts  wrote:
> On 2009-01-14, Gerhard Heift  wrote:
>> Hello,
>>
>> is it possible to call a trigger for a row in a table without updating the
>> row? I want to do it in plpgsql.
>
>> Something like UPDATE table WHERE id = 10;
>
> when faced with that problem I do this:
>
> UPDATE table SET id=id WHERE id = 10;

One small point.  'id' is probably indexed....to get better advantage
of 'HOT', try updating a field that is not indexed instead.

merlin

В списке pgsql-hackers по дате отправления
От: Jasen Betts
Дата:
Сообщение: Re: inconsistency in aliasing
От: Heikki Linnakangas
Дата:
FAQ