Re: Converting timestamp to timestamptz without rewriting tables - Mailing list pgsql-general

From Corey Taylor
Subject Re: Converting timestamp to timestamptz without rewriting tables
Date
Msg-id CADBz387Cifcu6Mh4iooNFO+CzwG00y1-BC6j+nrAWnLV7om0hw@mail.gmail.com
Whole thread Raw
In response to Re: Converting timestamp to timestamptz without rewriting tables  (Tom Dunstan <pgsql@tomd.cc>)
List 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 by date:

Previous
From: Tom Dunstan
Date:
Subject: Re: Converting timestamp to timestamptz without rewriting tables
Next
From: Yogesh Sharma
Date:
Subject: Re: Size of pg_multixact/members increases 11355