By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

Recieving notification when a table changes

P: 11
Hi,
Is there any way to know when a change in table occurs for a postgresql table to the front end , VC++ ?

Please reply me soon.

Anita
Aug 30 '06 #1
Share this Question
Share on Google+
2 Replies


P: 11
Hi,
Is there any way to know when a change in table occurs for a postgresql table to the front end , VC++ ?

Please reply me soon.

Anita
Please reply meeeee
Sep 7 '06 #2

P: 60
Hi

I'm not sure whether there exist some inbuilt methods for lastmodification datetime for a table .
But you can achieve this using triggers.
Let your table name be 'table1' and have one more table 'table_lastupdate_time'. If you insert,delete, or update any data in 'table1' ,
your trigger function should store the details in 'table_lastupdate_time'

Let the new table ('table_lastupdate_time') contain two fields,
1.tablename
2.last_action (timestamp).

The trigger function (on insert , delete or update )should update current_timestamp to the last_action field.

So, in your vc++ application you can retrieve the last_action time from ''table_lastupdate_time' table.

-somaskarthic




Hi,
Is there any way to know when a change in table occurs for a postgresql table to the front end , VC++ ?

Please reply me soon.

Anita
Sep 7 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.