Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7679041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:47:06+00:00 2026-05-31T17:47:06+00:00

I am mainly from a Sql Server background, and following some issues with getting

  • 0

I am mainly from a Sql Server background, and following some issues with getting MySql to work with the Microsoft Sync Framework (namely it does not cater for snapshots), I am having to look into Postgres and try to get that working with the Sync Framework.

The triggers that are needed include a call to function “@@DBTS”, but I am having trouble finding an equivalent in Postgres for this.

From the microsoft documentation for this it says:

@@DBTS returns the current database's last-used timestamp value. 
A new timestamp value is generated when a row with a timestamp 
column is inserted or updated.

In MySql it was the following:

USE INFORMATION_SCHEMA;
SELECT MAX(UPDATE_TIME) FROM TABLES WHERE UPDATE_TIME < NOW();

Can anyone tell me what this would be in Postgres?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:47:07+00:00Added an answer on May 31, 2026 at 5:47 pm

    PostgreSQL does not keep track when a table was last modified. So there is no equivalent for SQL Server’s @@DBTS nor for MySQL’s INFORMATION_SCHEMA.TABLES.UPDATE_TIME.

    You also might be interested in this discussion:

    http://archives.postgresql.org/pgsql-general/2009-02/msg01171.php

    which essentially says: “if you need to know when a table was last modified, you have to add a timestamp column to each table that records that last time the row was updated“.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've purchased a tool from Redgate called SQL Data Compare. I use it mainly
I come from a mainly PHP background and make good use of the Apache
I just upgraded from SQL Server 2008 to SQL Server 2008 R2. I went
We have a large application mainly written in SQL Server 7.0, where all database
I'm thinking of switching to cassandra from my current SQL-esque solution (simpledb) mainly due
So we want to use SQL lite directly from source (mainly because we create
I was helping out some colleagues of mine with an SQL problem. Mainly they
i am new to c#. coming from mainly PHP background or basic VB. i
I'm looking mainly at things like new SQL syntax, new kinds of locking, new
We currently use SQL Server 2005 Enterprise for our fairly large application, that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.