]> granicus.if.org Git - postgresql/commit
Remove overspecification of precision of CURRENT_TIMESTAMP, LOCALTIMESTAMP,
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Jun 2005 14:28:06 +0000 (14:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Jun 2005 14:28:06 +0000 (14:28 +0000)
commitdb53fa6dc759ff039202b87e50e42e7668cfe035
tree9220004233f1a32d6a19996b07937af330765e30
parente2d088de032154eb2d2b91fdc94761662ff9b4ba
Remove overspecification of precision of CURRENT_TIMESTAMP, LOCALTIMESTAMP,
CURRENT_TIME, and LOCALTIME: now they just produce "timestamptz" not
"timestamptz(6)", etc.  This makes the behavior more consistent with our
choice to not assign a specific default precision to column datatypes.
It should also save a few cycles at runtime due to not having to invoke
the round-to-given-precision functions.
I also took the opportunity to translate CURRENT_TIMESTAMP into "now()"
instead of an invocation of the timestamptz input converter --- this should
save a few cycles too.
src/backend/parser/gram.y