@@ -99,7 +99,6 @@ static const datetkn datetktbl[] = {
9999{"aug" ,MONTH ,8 },
100100{"august" ,MONTH ,8 },
101101{DB_C ,ADBC ,BC },/* "bc" for years <= 0 */
102- {DCURRENT ,RESERV ,DTK_CURRENT },/* "current" is always now */
103102{"d" ,UNITS ,DTK_DAY },/* "day of month" for ISO input */
104103{"dec" ,MONTH ,12 },
105104{"december" ,MONTH ,12 },
@@ -113,7 +112,6 @@ static const datetkn datetktbl[] = {
113112{"friday" ,DOW ,5 },
114113{"h" ,UNITS ,DTK_HOUR },/* "hour" */
115114{LATE ,RESERV ,DTK_LATE },/* "infinity" reserved for "late time" */
116- {INVALID ,RESERV ,DTK_INVALID },/* "invalid" reserved for bad time */
117115{"isodow" ,UNITS ,DTK_ISODOW },/* ISO day of week, Sunday == 7 */
118116{"isoyear" ,UNITS ,DTK_ISOYEAR },/* year in terms of the ISO week date */
119117{"j" ,UNITS ,DTK_JULIAN },
@@ -157,7 +155,6 @@ static const datetkn datetktbl[] = {
157155{"tue" ,DOW ,2 },
158156{"tues" ,DOW ,2 },
159157{"tuesday" ,DOW ,2 },
160- {"undefined" ,RESERV ,DTK_INVALID },/* pre-v6.1 invalid time */
161158{"wed" ,DOW ,3 },
162159{"wednesday" ,DOW ,3 },
163160{"weds" ,DOW ,3 },
@@ -191,7 +188,6 @@ static const datetkn deltatktbl[] = {
191188{"hours" ,UNITS ,DTK_HOUR },/* "hours" relative */
192189{"hr" ,UNITS ,DTK_HOUR },/* "hour" relative */
193190{"hrs" ,UNITS ,DTK_HOUR },/* "hours" relative */
194- {INVALID ,RESERV ,DTK_INVALID },/* reserved for invalid time */
195191{"m" ,UNITS ,DTK_MINUTE },/* "minute" relative */
196192{"microsecon" ,UNITS ,DTK_MICROSEC },/* "microsecond" relative */
197193{"mil" ,UNITS ,DTK_MILLENNIUM },/* "millennium" relative */
@@ -222,7 +218,6 @@ static const datetkn deltatktbl[] = {
222218{DTIMEZONE ,UNITS ,DTK_TZ },/* "timezone" time offset */
223219{"timezone_h" ,UNITS ,DTK_TZ_HOUR },/* timezone hour units */
224220{"timezone_m" ,UNITS ,DTK_TZ_MINUTE },/* timezone minutes units */
225- {"undefined" ,RESERV ,DTK_INVALID },/* pre-v6.1 invalid time */
226221{"us" ,UNITS ,DTK_MICROSEC },/* "microsecond" relative */
227222{"usec" ,UNITS ,DTK_MICROSEC },/* "microsecond" relative */
228223{DMICROSEC ,UNITS ,DTK_MICROSEC },/* "microsecond" relative */
@@ -1186,14 +1181,6 @@ DecodeDateTime(char **field, int *ftype, int nf,
11861181case RESERV :
11871182switch (val )
11881183{
1189- case DTK_CURRENT :
1190- ereport (ERROR ,
1191- (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
1192- errmsg ("date/time value \"current\" is no longer supported" )));
1193-
1194- return DTERR_BAD_FORMAT ;
1195- break ;
1196-
11971184case DTK_NOW :
11981185tmask = (DTK_DATE_M |DTK_TIME_M |DTK_M (TZ ));
11991186* dtype = DTK_DATE ;
@@ -2097,13 +2084,6 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
20972084case RESERV :
20982085switch (val )
20992086{
2100- case DTK_CURRENT :
2101- ereport (ERROR ,
2102- (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2103- errmsg ("date/time value \"current\" is no longer supported" )));
2104- return DTERR_BAD_FORMAT ;
2105- break ;
2106-
21072087case DTK_NOW :
21082088tmask = DTK_TIME_M ;
21092089* dtype = DTK_TIME ;