diff options
| author | Noah Misch <noah@leadboat.com> | 2015-03-01 13:22:34 -0500 |
|---|---|---|
| committer | Noah Misch <noah@leadboat.com> | 2015-03-01 13:22:34 -0500 |
| commit | b8a18ad4850ea5ad7884aa6ab731fd392e73b4ad (patch) | |
| tree | cc80b7675d5c984cde35b7c32bca93b3d7f7e36e /src/include/utils/timestamp.h | |
| parent | 424793fa5dc631254f69d5ee8d7d7d6de2976f60 (diff) | |
Add transform functions for AT TIME ZONE.
This makes "ALTER TABLE tabname ALTER tscol TYPE ... USING tscol AT TIME
ZONE 'UTC'" skip rewriting the table when altering from "timestamp" to
"timestamptz" or vice versa. While it would be nicer still to optimize
this in the absence of the USING clause given timezone==UTC, transform
functions must consult IMMUTABLE facts only.
Diffstat (limited to 'src/include/utils/timestamp.h')
| -rw-r--r-- | src/include/utils/timestamp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h index 70118f599c6..530fef1915e 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -161,7 +161,9 @@ extern Datum timestamp_trunc(PG_FUNCTION_ARGS); extern Datum interval_trunc(PG_FUNCTION_ARGS); extern Datum timestamp_part(PG_FUNCTION_ARGS); extern Datum interval_part(PG_FUNCTION_ARGS); +extern Datum timestamp_zone_transform(PG_FUNCTION_ARGS); extern Datum timestamp_zone(PG_FUNCTION_ARGS); +extern Datum timestamp_izone_transform(PG_FUNCTION_ARGS); extern Datum timestamp_izone(PG_FUNCTION_ARGS); extern Datum timestamp_timestamptz(PG_FUNCTION_ARGS); |
