Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
45409f0c
Commit
45409f0c
authored
Jun 23, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove code not previously enabled with USE_NEW_DATE and USE_NEW_TIME
#defines.
parent
74242544
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
63 deletions
+3
-63
src/include/utils/builtins.h
src/include/utils/builtins.h
+1
-26
src/include/utils/datetime.h
src/include/utils/datetime.h
+1
-27
src/include/utils/dt.h
src/include/utils/dt.h
+1
-10
No files found.
src/include/utils/builtins.h
View file @
45409f0c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: builtins.h,v 1.1
8 1997/05/14 04:33:41
thomas Exp $
* $Id: builtins.h,v 1.1
9 1997/06/23 15:03:38
thomas Exp $
*
*
* NOTES
* NOTES
* This should normally only be included by fmgr.h.
* This should normally only be included by fmgr.h.
...
@@ -481,8 +481,6 @@ extern struct varlena *byteaSetByte(struct varlena *v, int32 n, int32 newByte);
...
@@ -481,8 +481,6 @@ extern struct varlena *byteaSetByte(struct varlena *v, int32 n, int32 newByte);
extern
struct
varlena
*
byteaSetBit
(
struct
varlena
*
v
,
int32
n
,
int32
newBit
);
extern
struct
varlena
*
byteaSetBit
(
struct
varlena
*
v
,
int32
n
,
int32
newBit
);
/* datetime.c */
/* datetime.c */
#if USE_NEW_DATE
extern
DateADT
date_in
(
char
*
datestr
);
extern
DateADT
date_in
(
char
*
datestr
);
extern
char
*
date_out
(
DateADT
dateVal
);
extern
char
*
date_out
(
DateADT
dateVal
);
extern
bool
date_eq
(
DateADT
dateVal1
,
DateADT
dateVal2
);
extern
bool
date_eq
(
DateADT
dateVal1
,
DateADT
dateVal2
);
...
@@ -502,29 +500,6 @@ extern DateADT datetime_date(DateTime *datetime);
...
@@ -502,29 +500,6 @@ extern DateADT datetime_date(DateTime *datetime);
extern
DateTime
*
datetime_datetime
(
DateADT
date
,
TimeADT
*
time
);
extern
DateTime
*
datetime_datetime
(
DateADT
date
,
TimeADT
*
time
);
extern
DateADT
abstime_date
(
AbsoluteTime
abstime
);
extern
DateADT
abstime_date
(
AbsoluteTime
abstime
);
#else
extern
int4
date_in
(
char
*
datestr
);
extern
char
*
date_out
(
int4
dateVal
);
extern
bool
date_eq
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_ne
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_lt
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_le
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_gt
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_ge
(
int4
dateVal1
,
int4
dateVal2
);
extern
int
date_cmp
(
int4
dateVal1
,
int4
dateVal2
);
extern
int4
date_larger
(
int4
dateVal1
,
int4
dateVal2
);
extern
int4
date_smaller
(
int4
dateVal1
,
int4
dateVal2
);
extern
int32
date_mi
(
int4
dateVal1
,
int4
dateVal2
);
extern
int4
date_pli
(
int4
dateVal
,
int32
days
);
extern
int4
date_mii
(
int4
dateVal
,
int32
days
);
extern
DateTime
*
date_datetime
(
int4
date
);
extern
int4
datetime_date
(
DateTime
*
datetime
);
extern
DateTime
*
datetime_datetime
(
int4
date
,
TimeADT
*
time
);
extern
int4
abstime_date
(
AbsoluteTime
abstime
);
#endif
extern
TimeADT
*
time_in
(
char
*
timestr
);
extern
TimeADT
*
time_in
(
char
*
timestr
);
extern
char
*
time_out
(
TimeADT
*
time
);
extern
char
*
time_out
(
TimeADT
*
time
);
extern
bool
time_eq
(
TimeADT
*
time1
,
TimeADT
*
time2
);
extern
bool
time_eq
(
TimeADT
*
time1
,
TimeADT
*
time2
);
...
...
src/include/utils/datetime.h
View file @
45409f0c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: datetime.h,v 1.
2 1997/03/14 23:33:21 scrappy
Exp $
* $Id: datetime.h,v 1.
3 1997/06/23 15:03:41 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -15,34 +15,8 @@
...
@@ -15,34 +15,8 @@
#include "utils/dt.h"
#include "utils/dt.h"
#if USE_NEW_DATE
typedef
int32
DateADT
;
typedef
int32
DateADT
;
#else
/* these things look like structs, but we pass them by value so be careful
For example, passing an int -> DateADT is not portable! */
typedef
struct
DateADT
{
char
day
;
char
month
;
short
year
;
}
DateADT
;
#endif
#if USE_NEW_TIME
typedef
float8
TimeADT
;
typedef
float8
TimeADT
;
#else
typedef
struct
TimeADT
{
short
hr
;
short
min
;
float
sec
;
}
TimeADT
;
#endif
#endif
/* DATETIME_H */
#endif
/* DATETIME_H */
src/include/utils/dt.h
View file @
45409f0c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: dt.h,v 1.1
1 1997/06/20 17:15:00
thomas Exp $
* $Id: dt.h,v 1.1
2 1997/06/23 15:03:45
thomas Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -36,15 +36,6 @@ typedef struct {
...
@@ -36,15 +36,6 @@ typedef struct {
}
TimeSpan
;
}
TimeSpan
;
/*
* USE_NEW_DATE enables a more efficient Julian day-based date type.
* USE_NEW_TIME enables a more efficient double-based time type.
*/
#define USE_NEW_DATE 1
#define USE_NEW_TIME 1
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
* time types + support macros
* time types + support macros
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment