No function matches the given name and argument types

Your function has a couple of smallint parameters.But in the call, you are using numeric literals that are presumed to be type integer. A string literal or string constant (‘123’) is not typed immediately. It remains type “unknown” until assigned or cast explicitly. However, a numeric literal or numeric constant is typed immediately. The manual: A numeric constant that contains neither a decimal … Read more

Postgresql: Scripting psql execution with password

To answer your question, there are several ways provide a password for password-based authentication: Via the password prompt. Example: psql -h uta.biocommons.org -U foo Password for user foo: In a pgpass file. See libpq-pgpass. Format: <host>:<port>:<database>:<user>:<password> With the PGPASSWORD environment variable. See libpq-envars. Example: export PGPASSWORD=yourpass psql … # Or in one line for this … Read more

FATAL: password authentication failed for user “postgres” (postgresql 11 with pgAdmin 4)

The default authentication mode for PostgreSQL is set to ident. You can access your pgpass.conf via pgAdmin -> Files -> open pgpass.conf That will give you the path of pgpass.conf at the bottom of the window (official documentation). After knowing the location, you can open this file and edit it to your liking. If that doesn’t work, you can: … Read more