Preamble
PostgreSQL current_timestamp function returns the current date and time with the time zone.
Syntax of the current_timestamp function in PostgreSQL
current_timestamp( [ precision ] )
Parameters and function arguments
- It is optional. A number of digits for rounding to fractional seconds.
Note:
- The current_timestamp function returns the current date in ‘YYYY-MM-DD HH:MM:SS.US+TZ’ format.
- Do not put brackets () after the current_timestamp function if the precision parameter is not specified.
The current_timestamp function can be used in future versions of PostgreSQL
|
PostgreSQL 11, PostgreSQL 10, PostgreSQL 9.6, PostgreSQL 9.5, PostgreSQL 9.4, PostgreSQL 9.3, PostgreSQL 9.2, PostgreSQL 9.1, PostgreSQL 9.0, PostgreSQL 8.4.
|
Let’s look at some examples of the current_timestamp function to see how to use the current_timestamp function in PostgreSQL.
For example:
SELECT current_timestamp;
--Result: 2019-04-23 11:12:12.616092+03
SELECT current_timestamp(1);
--Result: 2019-04-23 11:13:02.1+03
SELECT current_timestamp(2);
--Result: 2019-04-23 11:13:17.21+03
SELECT current_timestamp(3);
--Result: 2019-04-23 11:13:29.5+03
PostgreSQL: Timestamps And Dates Course
About Enteros
Enteros offers a patented database performance management SaaS platform. It proactively identifies root causes of complex business-impacting database scalability and performance issues across a growing number of clouds, RDBMS, NoSQL, and machine learning database platforms.
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
How to Optimize Media Sector Growth with Enteros Database Management, Cost Attribution, Data Management, and Cloud FinOps
- 13 April 2026
- Database Performance Management
Introduction The media sector is evolving rapidly, driven by digital streaming, real-time content delivery, AI-powered personalization, and data-intensive production workflows. From OTT platforms and digital publishing to gaming and advertising networks, media companies are generating and processing massive volumes of data every second. As competition intensifies, media organizations must deliver seamless user experiences while managing … Continue reading “How to Optimize Media Sector Growth with Enteros Database Management, Cost Attribution, Data Management, and Cloud FinOps”
How to Optimize Telecom Sector Growth with Enteros Performance Management, Cost Estimation, and RevOps Efficiency
Introduction The telecom sector is at the center of global digital transformation, powering connectivity for businesses, consumers, and emerging technologies like 5G, IoT, and cloud computing. Telecom providers are under constant pressure to deliver high-speed, reliable services while managing massive data volumes and complex infrastructure. However, as telecom networks expand and digital services grow, companies … Continue reading “How to Optimize Telecom Sector Growth with Enteros Performance Management, Cost Estimation, and RevOps Efficiency”
How to Optimize Retail Sector Growth with Enteros Growth Management, Cloud FinOps, and Cloud Cost Management
- 12 April 2026
- Database Performance Management
Introduction The retail sector is evolving at an unprecedented pace, driven by digital transformation, eCommerce expansion, omnichannel strategies, and data-driven customer engagement. Retailers today must deliver seamless shopping experiences across online and offline channels while managing increasingly complex IT infrastructures. However, rapid growth brings a critical challenge:how to scale operations efficiently while controlling cloud costs … Continue reading “How to Optimize Retail Sector Growth with Enteros Growth Management, Cloud FinOps, and Cloud Cost Management”
How to Optimize Real Estate Sector Growth with Enteros Database Management, Cloud Billing, IT Finance Integration, Cloud FinOps, and AIOps Platform
Introduction The real estate sector is experiencing a digital transformation driven by property technology (PropTech), smart buildings, data-driven investment strategies, and online property marketplaces. From residential and commercial property management to real-time analytics for investment decisions, real estate companies are increasingly dependent on digital infrastructure. However, this transformation introduces a critical challenge:how to manage growth … Continue reading “How to Optimize Real Estate Sector Growth with Enteros Database Management, Cloud Billing, IT Finance Integration, Cloud FinOps, and AIOps Platform”