pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Marc Millas <marc.millas@mokadb.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: date format
Date: Wed, 14 Jun 2023 22:44:36 +0200
Message-ID: <c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at> (raw)
In-Reply-To: <CADX_1aatzh13gdbi=rV11xcb12mewVQMrzfixhJQcyJ=mvSA6g@mail.gmail.com>
References: <CADX_1aafydAJ6RA=nGUkYQYKGJbwWssbgFa8gPiD6+1GhW1Rmg@mail.gmail.com>
	<CAKFQuwa6mQaHigAZpcwTTA5RTTnB3yZfpJZnriJdbVDHOK5Eeg@mail.gmail.com>
	<CADX_1aatzh13gdbi=rV11xcb12mewVQMrzfixhJQcyJ=mvSA6g@mail.gmail.com>

On Wed, 2023-06-14 at 20:02 +0200, Marc Millas wrote:
> So, creating a foreign table with varchar type, and then doing the insert as select with the appropriate format.. clear.
> somewhat sad as it was a one step process with the former oracle db we get rid off.

It can be a one-step process, if you create a view on the table that uses
to_date() to convert the column to a "date".

Yours,
Laurenz Albe





view thread (31+ messages)

Message-ID: <c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at>
Permalink:  ../c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at/
Also on:    postgresql.org/message-id/c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, marc.millas@mokadb.com, david.g.johnston@gmail.com
  Subject: Re: date format
  In-Reply-To: <c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at>
  References: <CADX_1aafydAJ6RA=nGUkYQYKGJbwWssbgFa8gPiD6+1GhW1Rmg@mail.gmail.com> <CAKFQuwa6mQaHigAZpcwTTA5RTTnB3yZfpJZnriJdbVDHOK5Eeg@mail.gmail.com> <CADX_1aatzh13gdbi=rV11xcb12mewVQMrzfixhJQcyJ=mvSA6g@mail.gmail.com> <c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at>

* 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