Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9XMC-0005XA-6a for pgsql-general@arkaria.postgresql.org; Wed, 14 Jun 2023 20:44:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q9XMB-0002Jn-4A for pgsql-general@arkaria.postgresql.org; Wed, 14 Jun 2023 20:44:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9XMA-0002JY-ME for pgsql-general@lists.postgresql.org; Wed, 14 Jun 2023 20:44:42 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q9XM8-002Djx-5Y for pgsql-general@lists.postgresql.org; Wed, 14 Jun 2023 20:44:41 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f7deee339dso585301e87.0 for ; Wed, 14 Jun 2023 13:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20221208.gappssmtp.com; s=20221208; t=1686775478; x=1689367478; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=zNKk8YDFQKHm1g6B259OwsAxHfvxJIHsWvY27/wifzk=; b=iSMA6gtF5/VpzJv+jpEDem3BXvbENLMLfyYderg7QC4DvdfzRZYwCkQ1clk0F81W4e RQwqhWe+EdI/MuAlGKXvov1n0Z6aMlU8iEzRfPOyLAxVtSU8D1CUqOmMDZ107vqOHnWF +dTDY/Os/nZ0qxPYH+uX/zGUqFapoEu3UJl43urYMog58ZnN8BPIil3Bm5KGe0W+fiMC CVpxgreUjFAQtdHdJ/MNtBbOx8R004FuNaCKvSlVfMnucKHX4Ktl0iB7x2/32NsogZIW JXX5qeSpECwZA84DWPTEncOnLj88333E2a+iCthsH510VbOQW+qW1nXhXF21i+ylYlM/ Bqaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686775478; x=1689367478; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zNKk8YDFQKHm1g6B259OwsAxHfvxJIHsWvY27/wifzk=; b=iGTBBCFu3r+ueKJKEHGGmIHF/yZkwqNPGxkv+kL/yBJ5zd0p4km809oKrTmvwbdSYz VhahomdwLuGKItPoHib9GR19kD/H8r3XcqGVMBVwj16W0L8N8lmahAzZi4pSAfi4vqmw bdAzOviQdSILSwOJfR2FkFHsn8M6aj8CsXdrziAKgr0WDZLRmPQYlKEl7CfRU8UUYB7G l9KcIGgRDqOJnFccPbX3ZYGIacovgEUjhvPinQaX3FauywYWdz2/Mt4vRfgY3kFqAkVv PTKMcbHT9cq1t7JQnRCeQluXU1AuddMgXaaB2uAk9VgeEd0QxzQgxyPv+PDqFr4M2x7j kGWQ== X-Gm-Message-State: AC+VfDwoLwCX0aZHNFYvAnOyQW11u4boOlaRuJ6zOLLhwTcYVhqCa5oi /eygQZc6l2HlR6W/d3U5/nPdpQ== X-Google-Smtp-Source: ACHHUZ74mV9GLqxDEK9+5TOf/oSPXvRifX4KbjEC9vRhGHIpjwUTeZkt6+mLi6B0KmoQUmsRCWuDzw== X-Received: by 2002:a19:f20b:0:b0:4f4:c62c:c542 with SMTP id q11-20020a19f20b000000b004f4c62cc542mr8239270lfh.37.1686775478284; Wed, 14 Jun 2023 13:44:38 -0700 (PDT) Received: from localhost.localdomain (178-190-178-29.adsl.highway.telekom.at. [178.190.178.29]) by smtp.gmail.com with ESMTPSA id w15-20020a1709062f8f00b009534211cc97sm8396448eji.159.2023.06.14.13.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 13:44:37 -0700 (PDT) Message-ID: Subject: Re: date format From: Laurenz Albe To: Marc Millas , "David G. Johnston" Cc: "pgsql-general@lists.postgresql.org" Date: Wed, 14 Jun 2023 22:44:36 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 ge= t 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