DMS task fails when Postgres DateStyle parameter is not ISO

0

Hi everyone.

I need to replicate some tables from a Postgres 11.14 database on an Amazon EC2 instance with DMS.

When I start the DMS task, it fails and the log shows me that the problem has to do with the configuration of the parameter DateStyle in the source system (Postgres).

In the source this parameter is set to 'SQL, DMY' and DMS tells me that needs it set up to 'ISO' to do the replication.

2022-06-08T21:22:00 [SOURCE_CAPTURE  ]E:  Bad setting for 'DateStyle' parameter. WAL connection setup is expecting 'ISO'. [1020452]  (postgres_endpoint_wal_engine.c:1341)

I cannot change this configuration in the source because there we have a Core that needs this parameter to be configured like that ('SQL, DMY').

Is there another way in which we can replicate without having to change this parameter?

Thanks in advance.

2개 답변
0
수락된 답변

We were finally able to find the solution:

Set datestyle only for the replication user:

ALTER USER my_replication_user SET datestyle='ISO, MDY';

For verifying whether the change has taken effect:

SELECT usename,useconfig FROM pg_catalog.pg_user WHERE usename='my_replication_user';

After making the above changes, restart the DMS task and that's all.

답변함 2년 전
0

Can you use Logical Replication (which is far better than DMS) to replicate instead? What is the target?

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠