Re: Converting timestamp to timestamptz without rewriting tables

Поиск
Список
Период
Сортировка
От Corey Taylor
Тема Re: Converting timestamp to timestamptz without rewriting tables
Дата
Msg-id CADBz387Cifcu6Mh4iooNFO+CzwG00y1-BC6j+nrAWnLV7om0hw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Converting timestamp to timestamptz without rewriting tables  (Tom Dunstan <pgsql@tomd.cc>)
Список pgsql-general
On Mon, Dec 18, 2017 at 2:18 AM, Tom Dunstan <pgsql@tomd.cc> wrote:
>
>>
>> A timestamptz stores everything as UTC and the value is converted to the session time zone upon retrieval.
>
>
> Which is exactly what we want.

If a random person can interject here, I believe what Tom Dunstan is asking about here is the cheapest way to do a raw conversion of *all* columns in *all* tables with the underlying assumption that the data does not need to be touched at all (as the data representation is the same between timestamp and timestamptz).

Hence he is showing manipulating the pg_attribute and pg_table values. 

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Dunstan
Дата:
Сообщение: Re: Converting timestamp to timestamptz without rewriting tables
Следующее
От: Yogesh Sharma
Дата:
Сообщение: Re: Size of pg_multixact/members increases 11355