BUG #17407: trim trims more than expected

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17407: trim trims more than expected
Дата
Msg-id 17407-d39ff77fdea57c42@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #17407: trim trims more than expected  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17407
Logged by:          trim combined with substring from pattern for gives inconsistent output
Email address:      unmesh.joshi126@gmail.com
PostgreSQL version: 12.4
Operating system:   Linux 5.15.4-051504-generic
Description:

Expected output

demo=# select trim ('nextval(''' from
substring('nextval(''database_table_id_seq''::regclass)' from
'%#"%_id_seq#"%' for '#' ));
         btrim         
-----------------------
 database_table_id_seq
(1 row)


Unexpected output

demo=# select trim ('nextval(''' from
substring('nextval(''auth_table_id_seq''::regclass)' from '%#"%_id_seq#"%'
for '#' ));
      btrim       
------------------
 uth_table_id_seq
(1 row)


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Victor Yegorov
Дата:
Сообщение: Re: BUG #17406: Segmentation fault on GiST index after 14.2 upgrade
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17408: Duplicate aliases silently fail