aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-08-19 11:20:09 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-08-19 11:20:09 +0200
commit7d12693473eca4008c5c53bb36a5f083068a941b (patch)
tree601087e24f7fe4b3f9e5563eca056051fb7ab511 /src
parent31e121d4f7bb3aad7a26021cbc7cfb43a077c7e3 (diff)
downloadpostgresql-7d12693473eca4008c5c53bb36a5f083068a941b.tar.gz
postgresql-7d12693473eca4008c5c53bb36a5f083068a941b.zip
Move a definition inside a header file
Over time, this has ended up in a slightly inappropriate place relative to the comments around it.
Diffstat (limited to 'src')
-rw-r--r--src/include/utils/date.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/date.h b/src/include/utils/date.h
index 91ae24254df..3991da41f0f 100644
--- a/src/include/utils/date.h
+++ b/src/include/utils/date.h
@@ -42,14 +42,14 @@ typedef struct
#define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND)
#define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j))
+#define MAX_TIME_PRECISION 6
+
/*
* Macros for fmgr-callable functions.
*
* For TimeADT, we make use of the same support routines as for int64.
* Therefore TimeADT is pass-by-reference if and only if int64 is!
*/
-#define MAX_TIME_PRECISION 6
-
#define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X))
#define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X))
#define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X))