Re: Docs - Plpgsql trigger example auditing changes into

Поиск
Список
Период
Сортировка
Искать
От
Mark Kirkwood
Тема
Re: Docs - Plpgsql trigger example auditing changes into
Дата
Msg-id
41B2C066.20807@coretech.co.nz
Ответ на
Список
Дерево обсуждения
Docs - Plpgsql trigger example auditing changes into another table Mark Kirkwood <markir@coretech.co.nz>
Re: Docs - Plpgsql trigger example auditing changes into another table Tom Lane <tgl@sss.pgh.pa.us>
Re: Docs - Plpgsql trigger example auditing changes into Mark Kirkwood <markir@coretech.co.nz>
Re: Docs - Plpgsql trigger example auditing changes into Bruce Momjian <pgman@candle.pha.pa.us>
Re: Docs - Plpgsql trigger example auditing changes into David Fetter <david@fetter.org>
Re: Docs - Plpgsql trigger example auditing changes into Mark Kirkwood <markir@coretech.co.nz>
David Fetter wrote:

>It occurs to me that this might be a place to demo table inheritance
>too, to ease automating the creation, etc. of the auditing
>infrastructure :)
>
>  
>
It certainly makes the creation of the audit table painless :

CREATE TABLE emp_audit(
    operation         char(1)   NOT NULL,
    stamp             timestamp NOT NULL,
    userid            text      NOT NULL
) INHERITS (emp);

However SELECT FROM emp will return rows from emp_audit as well! (unless
we always use FROM ONLY or set SQL_INHERITANCE=false). This seem likely
to confuse things!

regards

Mark

В списке pgsql-patches по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Re: Charset WIN1252
От: Korea PostgreSQL Users' Group
Дата:
FAQ