public inbox for pgsql-novice@postgresql.org
help / color / mirror / Atom feedIs it possible to have comma as default decimal seperator
3+ messages / 2 participants
[nested] [flat]
* Is it possible to have comma as default decimal seperator
@ 2026-02-26 10:12 Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
0 siblings, 1 reply; 3+ messages in thread
From: Subramanian,Ramachandran @ 2026-02-26 10:12 UTC (permalink / raw)
To: pgsql-novice@lists.postgresql.org <pgsql-novice@lists.postgresql.org>
Hallo,
is it possible to globally set the COMMA as the decimal separator for an instance instead of the DOT.
1. Is it possible
2. If yes, how would one convert all the DBs in an existing instance.
LG
Ram
Freundliche Grüße
i. A. Ramachandran Subramanian
Zentralbereich Informationstechnologie
Alte Leipziger Lebensversicherung a.G.
Hallesche Krankenversicherung a.G.
Alte Leipziger Lebensversicherung a.G., Alte Leipziger-Platz 1, 61440 Oberursel
Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Wiltrud Pekarek, Udo Wilcsek
Sitz Oberursel (Taunus) · Rechtsform VVaG · Amtsgericht Bad Homburg v. d. H. HRB 1583 · USt.-IdNr. DE 114106814
Hallesche Krankenversicherung a.G., Löffelstraße 34-38, 70597 Stuttgart
Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape,
Wiltrud Pekarek, Udo Wilcsek
Sitz Stuttgart · Rechtsform VVaG · Amtsgericht Stuttgart HRB 2686 · USt.-IdNr. DE 147802285
Beiträge zu privaten Kranken- und Pflegekrankenversicherungen unterliegen nicht der Versicherungsteuer (§ 4 Nr. 5 VersStG) · Versicherungsleistungen sowie Umsätze aus Versicherungsvertreter-/Maklertätigkeiten sind umsatzsteuerfrei
Die Pflichtangaben der ALH Gruppe gemäß § 35a GmbHG bzw. § 80 AktG finden Sie hier: https://www.alte-leipziger.de/impressum
______________________
ALH Gruppe
Alte Leipziger-Platz 1, 61440 Oberursel
Tel.: +49 (6171) 66-4882
Fax: +49 (6171) 66-800-4882
E-Mail: ramachandran.subramanian@alte-leipziger.de
www.alte-leipziger.de
www.hallesche.de
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Is it possible to have comma as default decimal seperator
@ 2026-02-26 10:58 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
0 siblings, 1 reply; 3+ messages in thread
From: Laurenz Albe @ 2026-02-26 10:58 UTC (permalink / raw)
To: Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>; pgsql-novice@lists.postgresql.org <pgsql-novice@lists.postgresql.org>
On Thu, 2026-02-26 at 10:12 +0000, Subramanian,Ramachandran wrote:
> is it possible to globally set the COMMA as the decimal separator for an instance instead of the DOT.
>
> 1. Is it possible
> 2. If yes, how would one convert all the DBs in an existing instance.
I assume you would like to use the comma as decimal separator in your
SQL statements, like
UPDATE konto SET betrag = 23,50 WHERE kontonummer = 42;
That is not possible.
However, if you set the parameter "lc_numeric" to a German locale, you
can use the comma with the function to_number():
SET lc_numeric = "de_DE.utf8";
SELECT to_number('23,50', '999999999D99');
to_number
═══════════
23.50
(1 row)
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 3+ messages in thread
* AW: Is it possible to have comma as default decimal seperator
@ 2026-02-27 05:41 Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
parent: Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 0 replies; 3+ messages in thread
From: Subramanian,Ramachandran @ 2026-02-27 05:41 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-novice@lists.postgresql.org <pgsql-novice@lists.postgresql.org>
I am really grateful for ALL your help Laurenz.
Thank you so much.
😊
Regards
Ram
Freundliche Grüße
i. A. Ramachandran Subramanian
Zentralbereich Informationstechnologie
Alte Leipziger Lebensversicherung a.G.
Hallesche Krankenversicherung a.G.
Alte Leipziger Lebensversicherung a.G., Alte Leipziger-Platz 1, 61440 Oberursel
Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Wiltrud Pekarek, Udo Wilcsek
Sitz Oberursel (Taunus) · Rechtsform VVaG · Amtsgericht Bad Homburg v. d. H. HRB 1583 · USt.-IdNr. DE 114106814
Hallesche Krankenversicherung a.G., Löffelstraße 34-38, 70597 Stuttgart
Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape,
Wiltrud Pekarek, Udo Wilcsek
Sitz Stuttgart · Rechtsform VVaG · Amtsgericht Stuttgart HRB 2686 · USt.-IdNr. DE 147802285
Beiträge zu privaten Kranken- und Pflegekrankenversicherungen unterliegen nicht der Versicherungsteuer (§ 4 Nr. 5 VersStG) · Versicherungsleistungen sowie Umsätze aus Versicherungsvertreter-/Maklertätigkeiten sind umsatzsteuerfrei
Die Pflichtangaben der ALH Gruppe gemäß § 35a GmbHG bzw. § 80 AktG finden Sie hier: https://www.alte-leipziger.de/impressum
______________________
ALH Gruppe
Alte Leipziger-Platz 1, 61440 Oberursel
Tel.: +49 (6171) 66-4882
Fax: +49 (6171) 66-800-4882
E-Mail: ramachandran.subramanian@alte-leipziger.de
www.alte-leipziger.de
www.hallesche.de
-----Ursprüngliche Nachricht-----
Von: Laurenz Albe <laurenz.albe@cybertec.at>
Gesendet: Donnerstag, 26. Februar 2026 11:59
An: Subramanian,Ramachandran IT-md-db <ramachandran.subramanian@alte-leipziger.de>; pgsql-novice@lists.postgresql.org
Betreff: Re: Is it possible to have comma as default decimal seperator
On Thu, 2026-02-26 at 10:12 +0000, Subramanian,Ramachandran wrote:
> is it possible to globally set the COMMA as the decimal separator
> for an instance instead of the DOT.
>
> 1. Is it possible
> 2. If yes, how would one convert all the DBs in an existing instance.
I assume you would like to use the comma as decimal separator in your SQL statements, like
UPDATE konto SET betrag = 23,50 WHERE kontonummer = 42;
That is not possible.
However, if you set the parameter "lc_numeric" to a German locale, you can use the comma with the function to_number():
SET lc_numeric = "de_DE.utf8";
SELECT to_number('23,50', '999999999D99');
to_number
═══════════
23.50
(1 row)
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-02-27 05:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-02-26 10:12 Is it possible to have comma as default decimal seperator Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
2026-02-26 10:58 ` Laurenz Albe <laurenz.albe@cybertec.at>
2026-02-27 05:41 ` AW: Is it possible to have comma as default decimal seperator Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox