参考官方文档:
https://www.postgresql.org/docs/10/functions-formatting.html
https://www.postgresql.org/docs/10/functions-datetime.html
查询当前时间 Current Date/Time
PostgreSQL提供了许多函数,它们返回与当前日期和时间相关的值。这些SQL标准函数都基于当前事务的开始时间返回值:
时间相关值
select CURRENT_DATE
select CURRENT_TIME
select CURRENT_TIMESTAMP
select CURRENT_TIME(precision )
select CURRENT_TIMESTAMP