Re: COPY and custom datestyles. Or some other technique?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: COPY and custom datestyles. Or some other technique?
Date: 2023-03-30 03:03:35
Message-ID: CAKFQuwaTsyxzm_tvB=VgYsNVENKY+Nsu=TpWx1OABCJc8zibmA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Mar 29, 2023 at 7:39 PM Ron <ronljohnsonjr(at)gmail(dot)com> wrote:

> Something like this?
>
> ALTER TABLE foo
> ALTER COLUMN update_ts TIMESTAMP WITHOUT TIME ZONE
> USING to_timestamp(update_ts, 'YYYYMMDDHH24miSSMS');
>
> That would definitely minimize the possibility of errors.
>

Yes.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vladimir Sitnikov 2023-03-30 03:58:25 Re: Do BRIN indexes support MIN/MAX?
Previous Message Ron 2023-03-30 02:38:53 Re: COPY and custom datestyles. Or some other technique?