From: Paul Smith <paul@pscs.co.uk>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Creating redwood datestyle in Postgres 12
Date: Fri, 26 Mar 2021 09:16:00 +0000
Message-ID: <d31d1a49-2394-e18b-f810-0a2832826f34@pscs.co.uk> (raw)
In-Reply-To: <CAKhLO5i-PJdeX2q8eEzYVs91bzw1bDJxaSL_tD96XhnmGVAJfg@mail.gmail.com>
References: <CAKhLO5jDy8bMop66WU8cNUFcfSuL1==FyGvawKZT-CC2FYuZXQ@mail.gmail.com>
<5273bd68ae53e76fb592249ba05433b4bb645660.camel@cybertec.at>
<CAKhLO5i-PJdeX2q8eEzYVs91bzw1bDJxaSL_tD96XhnmGVAJfg@mail.gmail.com>
On 25/03/2021 12:38, Tim wrote:
> Its a native ORACLE date formatting which shows like this: 08-JAN-99
> 04:05:06 set in the datestyle config param.
>
> Currently running on EDB Advanced Server 12 which allows it as a
> datestyle configuration setting, but looking to migrate off of there
> to native postgres pretty soon and was hoping there was some way to
> have the same setting globally in native postgres. Which is starting
> to look like is not possible.
Could you create views/rules/triggers to do the conversions for you?
Eg, if you have a table 'invoices', then create a view 'invoices_' and
set it to set your formatting, and use rules to allow updates/inserts
via that view. That might need less changes to the code.
--
Paul
Paul Smith Computer Services
support@pscs.co.uk - 01484 855800
--
Paul Smith Computer Services
Tel: 01484 855800
Vat No: GB 685 6987 53
Sign up for news & updates at http://www.pscs.co.uk/go/subscribe
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: paul@pscs.co.uk, pgsql-admin@lists.postgresql.org
Subject: Re: Creating redwood datestyle in Postgres 12
In-Reply-To: <d31d1a49-2394-e18b-f810-0a2832826f34@pscs.co.uk>
* 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