Re: Creating redwood datestyle in Postgres 12

Поиск
Список
Период
Сортировка
Искать
От
Paul Smith
Тема
Re: Creating redwood datestyle in Postgres 12
Дата
Msg-id
d31d1a49-2394-e18b-f810-0a2832826f34@pscs.co.uk
Ответ на
Список
Дерево обсуждения
Creating redwood datestyle in Postgres 12 Tim <timfosho@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Laurenz Albe <laurenz.albe@cybertec.at>
Re: Creating redwood datestyle in Postgres 12 Tim <timfosho@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Laurenz Albe <laurenz.albe@cybertec.at>
Re: Creating redwood datestyle in Postgres 12 Paul Smith <paul@pscs.co.uk>
Re: Creating redwood datestyle in Postgres 12 Tim <timfosho@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Bruce Momjian <bruce@momjian.us>
Re: Creating redwood datestyle in Postgres 12 Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating redwood datestyle in Postgres 12 legrand legrand <legrand_legrand@hotmail.com>
Re: Creating redwood datestyle in Postgres 12 "Jonah H. Harris" <jonah.harris@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Tim <timfosho@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Bruce Momjian <bruce@momjian.us>
Re: Creating redwood datestyle in Postgres 12 "Jonah H. Harris" <jonah.harris@gmail.com>
Re: Creating redwood datestyle in Postgres 12 jim schmidt <txherper@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Tim <timfosho@gmail.com>
Re: Creating redwood datestyle in Postgres 12 Vivek Anandh <ganiba22664@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


В списке pgsql-admin по дате отправления
От: Pepe TD Vo
Дата:
Сообщение: create and drop tablespace
От: Jacque Edmund
Дата:
FAQ