PostgreSQL 9.5 let us to track last modified commit.
1. Check track commit is on or off using the following query
2. If it return "ON" go to step 3 else modify postgresql.conf
Modification
Reboot the system
Repeat step 1.
3. Use the following query to track last commit
1. Check track commit is on or off using the following query
show track_commit_timestamp;
Modification
track_commit_timestamp =off
to
track_commit_timestamp =on
Repeat step 1.
3. Use the following query to track last commit
SELECTpg_xact_commit_timestamp(xmin), *FROMYOUR_TABLE_NAME;
SELECTpg_xact_commit_timestamp(xmin), *FROMYOUR_TABLE_NAMEwhereCOLUMN_NAME=VALUE;
No comments:
Post a Comment