Re: [GENERAL] Date Time data types - Mailing list pgsql-general

From Rakesh Kumar
Subject Re: [GENERAL] Date Time data types
Date
Msg-id trinity-129ac1f7-4c97-4420-8afc-7538210b6384-1511444125725@3c-app-mailcom-lxa07
Whole thread Raw
In response to [GENERAL] Date Time data types  (Brahmam Eswar <brahmam1234@gmail.com>)
List pgsql-general
>What is difference between CLOCK_TIMESTAMP() and CURRENT_TIMESTAMP?
CURRENT_TIMESTAMP stays the same within the transaction. It is very useful when you
are you inserting to multiple tables and want to use the timestamp columns to chain the rows
together. 

CLOCK_TIMESTAMP is the true timestamp at that given instant. Useful for debugging
purposes. I hardly see a use of it in applications, for reasons mentioned above.


pgsql-general by date:

Previous
From: Durumdara
Date:
Subject: Re: Set role dynamically from proc
Next
From: Dmitry Lazurkin
Date:
Subject: Implementation of gtrgm_out for gevel