Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash fails to execute wrapper commands #1

Open
schmidward opened this issue Mar 27, 2023 · 0 comments
Open

Bash fails to execute wrapper commands #1

schmidward opened this issue Mar 27, 2023 · 0 comments

Comments

@schmidward
Copy link

Software versions:
PostgreSQL - 15.2 (pg_hba.conf set to "trust" to eliminate password requirement)
GNU bash, version 5.1.16(1)-release (x86_64-pc-msys)

All of this is running on Windows 11.

Problem:
Bash fails to run any of the psql wrapper commands, like "createdb" or "dropdb" resulting in a new line in bash but no return to add another prompt or command. Basically it just creates a new line without the $ or ~ to execute something new.

When executing the ./runme.sh, bash will get stuck on the first command of creating a new database and remain there. When running through windows power shell, the commands to create a new database and output folder work correctly, but no files are returned in that folder. Running psql ccd_stats -f import_ccd_districts.sql; independently in the command line results in:

psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: role "-f" does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant