| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | broken table formatting in psql |
| Date: | 2022-09-01 07:12:19 |
| Message-ID: | CAFj8pRBE8yvpQ0FSkPCoe0Ny1jAAsAQ6j3qMgVwWvkqAoaaNmQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi
I found some data that are badly formatted in psql
create table foo(a varchar);
insert into foo values('Dětská šperkovnice Goki 15545');
insert into foo values('Tlakoměr Omron Evolv s Bluetooth připojením');
insert into foo values('Řetěz KMC BE08SEP22 stříbrný');
psql older than 12 shows this table correctly
(2022-09-01 08:42:44) postgres=# select * from foo;
┌─────────────────────────────────────────────┐
│ a │
╞═════════════════════════════════════════════╡
│ Dětská šperkovnice Goki 15545 │
│ Tlakoměr Omron Evolv s Bluetooth připojením │
│ Řetěz KMC BE08SEP22 stříbrný │
└─────────────────────────────────────────────┘
(3 rows)
psql 12 and later breaks border little bit
(2022-09-01 08:42:49) postgres=# select * from foo;
┌─────────────────────────────────────────────┐
│ a │
╞═════════════════════════════════════════════╡
│ Dětská šperkovnice Goki 15545 │
│ Tlakoměr Omron Evolv s Bluetooth připojením │
│ Řetěz KMC BE08SEP22 stříbrný │
└─────────────────────────────────────────────┘
(3 rows)
problem is in bad width of invisible char 200E
https://unicodeplus.com/U+200E
(2022-09-01 09:10:05) postgres=# select e'Ahoj\u200eNazdar';
┌─────────────┐
│ ?column? │
╞═════════════╡
│ AhojNazdar │
└─────────────┘
(1 row)
Regards
Pavel
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Frédéric Yhuel | 2022-09-01 07:13:10 | [PATCH] minor bug fix for pg_dump --clean |
| Previous Message | Drouvot, Bertrand | 2022-09-01 06:40:54 | Re: pg_stat_have_stats() returns true for dropped indexes (or for index creation transaction rolled back) |