Re: Oracle to Postgres migration

Поиск
Список
Период
Сортировка
От Ilya Kosmodemiansky
Тема Re: Oracle to Postgres migration
Дата
Msg-id CAG95seUMaWTJJ=f27B-1rp4rE9wnTMJvcQ1--fW-G8cWX7jo8A@mail.gmail.com
обсуждение исходный текст
Ответ на Oracle to Postgres migration  (bimal maity <bimal.af2020@gmail.com>)
Список pgsql-admin
Hi Bimal,

On Fri, Dec 22, 2023 at 10:28 AM bimal maity <bimal.af2020@gmail.com> wrote:
> I have below query used in Oracle but while migrating to Postgres this code is not supported in Postgres.

I didn't try your query, but I guess it complains about RTRIM, because
it should accept text as an argument. If it is a case, you can try to dig in
direction of something like this:

> SELECT p.id_po, p.line_number, replace(replace(replace(RTRIM(XMLAGG(XMLELEMENT(name C,
regexp_replace(p.protocol_number,'([[:cntrl:]])','','g'))ORDER BY 1)::text 

(with explicit type casting)


best regards,
Ilya




--
Ilya Kosmodemiansky
CEO, Founder

Data Egret GmbH
Your remote PostgreSQL DBA team
T.: +49 6821 919 3297
ik@dataegret.com



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

Предыдущее
От: Krishna B
Дата:
Сообщение: Re: Login script
Следующее
От:
Дата:
Сообщение: RE: Error: Package: postgresql13-devel-13.13-1PGDG.rhel7.x86_64