| From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: databse version |
| Date: | 2013-06-10 22:26:32 |
| Message-ID: | 51B65298.7020005@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 06/10/2013 12:52 AM, Philipp Kraus wrote:
> Hello,
>
> I'm creating a database and I have got a table with a "version" field.
> Can I update on structure changes (DDL) like create / update table
> increment this field automatically?
> I would like to create a versionizing for my database which counts the
> changes.
> IMHO I need a trigger, which is run if a DDL statement is fired on the
> database
In the current beta 9.3 there are event triggers that would seem to be
what you are looking for:
http://www.postgresql.org/docs/9.3/static/event-triggers.html
>
> Thanks
>
> Phil
>
>
>
>
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John R Pierce | 2013-06-10 22:42:59 | Re: databse version |
| Previous Message | Sajeev Mayandi | 2013-06-10 22:02:19 | updatable view |