diff options
| author | Noah Misch | 2019-03-09 04:16:27 +0000 |
|---|---|---|
| committer | Noah Misch | 2019-03-09 04:16:27 +0000 |
| commit | 3c5926301aea476025f118159688a6a88b2738bc (patch) | |
| tree | 22d481ae1e71858d81a3a442a444dd93878a3320 /src/include | |
| parent | 82a5649fb9dbef12d04cd24799be6bf298d889a6 (diff) | |
Avoid some table rewrites for ALTER TABLE .. SET DATA TYPE timestamp.
When the timezone is UTC, timestamptz and timestamp are binary coercible
in both directions. See b8a18ad4850ea5ad7884aa6ab731fd392e73b4ad and
c22ecc6562aac895f0f0529707d7bdb460fd2a49 for the previous attempt in
this problem space. Skip the table rewrite; for now, continue to
needlessly rewrite any index on an affected column.
Reviewed by Simon Riggs and Tom Lane.
Discussion: https://postgr.es/m/20190226061450.GA1665944@rfd.leadboat.com
Diffstat (limited to 'src/include')
| -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 aeb89dc0ce..cb6bb4b242 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -104,4 +104,6 @@ extern int date2isoweek(int year, int mon, int mday); extern int date2isoyear(int year, int mon, int mday); extern int date2isoyearday(int year, int mon, int mday); +extern bool TimestampTimestampTzRequiresRewrite(void); + #endif /* TIMESTAMP_H */ |
