reorg / pg_repack

Reorganize tables in PostgreSQL databases with minimal locks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WARNING: Unable to set up worker conn #0: FATAL: password authentication failed for user "master"

mvdobrinin opened this issue · comments

I am running into an issue where adding the -j flag gives errors about password authentication.

$ export PGPASSWORD='my\+p@assw0rd'
$ time ./pg_repack -d pfm_infra_service_db -h pfm-infra-service-cluster.cluster-x.us-east-2.rds.amazonaws.com -U master -p 5432 -t public.execution -k -j 16
NOTICE: Setting up workers.conns
WARNING: Unable to set up worker conn #0: FATAL:  password authentication failed for user "master"
FATAL:  no pg_hba.conf entry for host "10.221.137.233", user "master", database "pfm_infra_service_db", SSL off
INFO: repacking table "public.execution"

But when running with a single thread it works fine. Also it's strange because even though it complains about password, it does the repack correctly.

The client and server of pg_repack are both 1.4.6.

   Name    | Version | Schema |                         Description
-----------+---------+--------+--------------------------------------------------------------
 pg_repack | 1.4.6   | public | Reorganize tables in PostgreSQL databases with minimal locks
(1 row)

@mvdobrinin Can you please check if this problem is solved with the change in #354? Thanks!