pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Marc Millas <marc.millas@mokadb.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: date format
Date: Wed, 14 Jun 2023 11:53:36 -0700
Message-ID: <3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com> (raw)
In-Reply-To: <CADX_1aY-ox0VH9WMkcO4WQTWQRjTOBZqVYR=FXqfr0DkDc4=-g@mail.gmail.com>
References: <CADX_1aafydAJ6RA=nGUkYQYKGJbwWssbgFa8gPiD6+1GhW1Rmg@mail.gmail.com>
	<CAKFQuwa6mQaHigAZpcwTTA5RTTnB3yZfpJZnriJdbVDHOK5Eeg@mail.gmail.com>
	<CADX_1aatzh13gdbi=rV11xcb12mewVQMrzfixhJQcyJ=mvSA6g@mail.gmail.com>
	<72f9bd35-43ef-0fdb-2bb8-339e585a5375@gmail.com>
	<CADX_1aY-ox0VH9WMkcO4WQTWQRjTOBZqVYR=FXqfr0DkDc4=-g@mail.gmail.com>

On 6/14/23 11:23, Marc Millas wrote:
> 
> 


Sort of like?:

https://pgloader.readthedocs.io/en/latest/ref/csv.html

date format

column-name [date format 'YYYY-MM-DD HH24-MI-SS.US']

> 
> 
>     In Postgresql, could you write a simple anonymous procedure that
>     reads the file_fdw table records, does the conversion and then
>     inserts into the destination table?
>     -> one sql line insert as select  using the to_date() function with
>     appropriate format.
> 
>     -- 
>     Born in Arizona, moved to Babylonia.
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (31+ messages)  latest in thread

Message-ID: <3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com>
Permalink:  ../3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com/
Also on:    postgresql.org/message-id/3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, marc.millas@mokadb.com, ronljohnsonjr@gmail.com
  Subject: Re: date format
  In-Reply-To: <3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com>
  References: <CADX_1aafydAJ6RA=nGUkYQYKGJbwWssbgFa8gPiD6+1GhW1Rmg@mail.gmail.com> <CAKFQuwa6mQaHigAZpcwTTA5RTTnB3yZfpJZnriJdbVDHOK5Eeg@mail.gmail.com> <CADX_1aatzh13gdbi=rV11xcb12mewVQMrzfixhJQcyJ=mvSA6g@mail.gmail.com> <72f9bd35-43ef-0fdb-2bb8-339e585a5375@gmail.com> <CADX_1aY-ox0VH9WMkcO4WQTWQRjTOBZqVYR=FXqfr0DkDc4=-g@mail.gmail.com> <3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox