mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove now-dead code for !HAVE_INT64_TIMESTAMP.
This is a basically mechanical removal of #ifdef HAVE_INT64_TIMESTAMP tests and the negative-case controlled code. Discussion: https://postgr.es/m/26788.1487455319@sss.pgh.pa.us
This commit is contained in:
@ -153,11 +153,7 @@ ts_dist(PG_FUNCTION_ARGS)
|
||||
|
||||
p->day = INT_MAX;
|
||||
p->month = INT_MAX;
|
||||
#ifdef HAVE_INT64_TIMESTAMP
|
||||
p->time = PG_INT64_MAX;
|
||||
#else
|
||||
p->time = DBL_MAX;
|
||||
#endif
|
||||
PG_RETURN_INTERVAL_P(p);
|
||||
}
|
||||
else
|
||||
@ -181,11 +177,7 @@ tstz_dist(PG_FUNCTION_ARGS)
|
||||
|
||||
p->day = INT_MAX;
|
||||
p->month = INT_MAX;
|
||||
#ifdef HAVE_INT64_TIMESTAMP
|
||||
p->time = PG_INT64_MAX;
|
||||
#else
|
||||
p->time = DBL_MAX;
|
||||
#endif
|
||||
PG_RETURN_INTERVAL_P(p);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user