![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is timestamp with timezone a ANSI SQL (or some other) standard data type ? I noticing a difference in the way it is implemented in Postgresql and Oracle. In Oracle it is possible to know the timezone with which the data is inserted into the table (which is the usecase of the data type i feel). See example (http://www.databasejournal.com/ features/oracle/article.php/3072991/Oracle-Time-Zone.htm) In postgresql when you insert a record, the data is converted to UTC and stored. When I select the record later on it shows the timestamp converted to the session timezone. There is no way to know that originally with what timezone the data was inserted in to the table. In this an issue with postgresql or a conscious implementation decision ? Is there an option to view the timezone with which the timestamp is originally stored in the table at a later point of time with having to add one additional column for that purpose ? |
#3
| ||||
| ||||
|
|
Is timestamp with timezone a ANSI SQL (or some other) standard data type ? |
|
I noticing a difference in the way it is implemented in Postgresql and Oracle. In Oracle it is possible to know the timezone with which the data is inserted into the table (which is the usecase of the data type i feel). See example (http://www.databasejournal.com/ features/oracle/article.php/3072991/Oracle-Time-Zone.htm) |
|
In postgresql when you insert a record, the data is converted to UTC and stored. When I select the record later on it shows the timestamp converted to the session timezone. There is no way to know that originally with what timezone the data was inserted in to the table. In this an issue with postgresql or a conscious implementation decision? |
|
Is there an option to view the timezone with which the timestamp is originally stored in the table at a later point of time with having to add one additional column for that purpose ? |
#4
| |||
| |||
|
|
Is timestamp with timezone a ANSI SQL (or some other) standard data type ? yes, there are rules about how it behaves and as I understand it postgres mets all the requirements. |
|
In this an issue with postgresql or a conscious implementation decision? as far as I can tell is was a conscious decision. |
![]() |
| Thread Tools | |
| Display Modes | |
| |