Way to quickly detect if database tables/columns/etc. were modified?

From: Evan Martin <postgresql2(at)realityexists(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Way to quickly detect if database tables/columns/etc. were modified?
Date: 2016-10-30 09:45:51
Message-ID: e8a5fea5-f671-8520-215b-4d81e99d0f97@realityexists.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I have a query that reads from system tables like pg_class,
pg_namespace, pg_attribute, pg_type, etc. and I'd like to cache the
results in my application is there any fast way to detect when any
changes have been made to these system catalogs? I don't need to know
exactly what has changed. Some kind of a global "database version" would
do, just so I know that I need to invalidate my cache (the database
definition is rarely modified in practice).

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2016-10-30 11:49:19 Re: Rows are repeating by the trigger function
Previous Message Kiran 2016-10-30 09:31:43 Rows are repeating by the trigger function