A backport patch:
authorTatsuo Ishii <[email protected]>
Tue, 5 Mar 2002 03:45:44 +0000 (03:45 +0000)
committerTatsuo Ishii <[email protected]>
Tue, 5 Mar 2002 03:45:44 +0000 (03:45 +0000)
commit323949761cb3d4eecbcb5fee9650cd24c86f1146
tree69b63ae4b1e768893f8c73a5406d36b580a1742a
parent77d9c1ad82ceb42f8c122007c09018912a2dedac
A backport patch:

Fix bug in extract/date_part for milliseconds/miscroseconds and
timestamp/timestamptz combo. Now extract/date_part returns
seconds*1000 or 1000000 + fraction part as the manual stats.
regression test are also fixed.

See the thread in pgsql-hackers:

Subject: Re: [HACKERS] timestamp_part() bug?
Date: Sat, 02 Mar 2002 11:29:53 +0900
src/backend/utils/adt/timestamp.c
src/test/regress/expected/timestamp.out
src/test/regress/expected/timestamptz.out