Re: simple trigger question ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: simple trigger question ...
Дата
Msg-id 25512.1049343373@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: simple trigger question ...  ("Marc G. Fournier" <scrappy@hub.org>)
Ответы Re: simple trigger question ...  ("Marc G. Fournier" <scrappy@hub.org>)
Список pgsql-sql
"Marc G. Fournier" <scrappy@hub.org> writes:
>> Er ... you just want to bump the sequence and throw away the actual
>> value?  You don't want to store the value somewhere?

> Correct

Then you need something like (untested)

CREATE FUNCTION mytrig() RETURNS TRIGGER AS '
begin perform nextval(''seq''); return new;
end' LANGUAGE plpgsql;
        regards, tom lane



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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: simple trigger question ...
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: simple trigger question ...