Re: COPY and custom datestyles. Or some other technique? - Mailing list pgsql-general

From David G. Johnston
Subject Re: COPY and custom datestyles. Or some other technique?
Date
Msg-id CAKFQuwbXWkWOZFTe1wDiQu21uH+_rp=BqHmBhBN35+o7L+VDDA@mail.gmail.com
Whole thread Raw
In response to Re: COPY and custom datestyles. Or some other technique?  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: COPY and custom datestyles. Or some other technique?  (Ron <ronljohnsonjr@gmail.com>)
List pgsql-general
On Wed, Mar 29, 2023 at 6:51 PM Ron <ronljohnsonjr@gmail.com> wrote:
It would be really helpful to be able to reposition columns in tables.  That
way, one could:
add the new TIMESTAMP column,
populate it using to_timestamp(),
drop the text column,
reposition the TIMESTAMP column to where it "should" be.


If that would give you what you need then just define the column as text initially, load the data, then do an ALTER COLUMN ... ALTER TYPE to change the column type to timestamptz in place, with the conversion done via USING.

David J.

pgsql-general by date:

Previous
From: 任重
Date:
Subject: Get dead tuples data
Next
From: Ron
Date:
Subject: Re: COPY and custom datestyles. Or some other technique?