pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

pg: role "postgres" does not exist on pgroll init

Open shiftgg opened this issue 5 months ago • 1 comments

I got just got pgroll from homebrew (pgroll version 0.14.1).

When I try to run pgroll init I get

Error: pq: role "postgres" does not exist

The --role param seems to be ignored.

➜  pgroll git:(master) pgroll init

Error: pq: role "postgres" does not exist
➜  pgroll git:(master) pgroll init --role gg

Error: pq: role "postgres" does not exist
➜  pgroll git:(master) pgroll --role gg init

Error: pq: role "postgres" does not exist
➜  pgroll git:(master) pgroll init --role gg here

Error: pq: role "postgres" does not exist
➜  pgroll git:(master) pgroll init here --role gg

Error: pq: role "postgres" does not exist
➜  pgroll git:(master) pgroll init --role gg here

What am I missing? Is this a bug?

shiftgg avatar Aug 22 '25 03:08 shiftgg

I ran into a similar issue.

Check that you don't already have a postgres server running locally instead of the docker image run lsof -i :5432

imjack avatar Oct 02 '25 09:10 imjack

pgroll doesn't seem to be taking the --role param at all. Doesn't matter where I put it. Other commands give similar result.

giorgenes avatar Nov 28 '25 01:11 giorgenes