bug?

Started by Alexander Millsover 9 years ago3 messagesbugs
Jump to latest
#1Alexander Mills
alexander.d.mills@gmail.com

Report bugs to <pgsql-bugs@postgresql.org>.
sfoc02q106hg8wm:crucible-poc-discovery t_millal$ psql -h $(docker-machine
ip) -U pguser
Password for user pguser:
psql: FATAL: database "pguser" does not exist

I gave it the -U option, so why does it say

"database "pguser" does not exist"

?

thanks!

--
Alexander D. Mills
(650)269-9502
alexander.d.mills@gmail.com

- www.linkedin.com/pub/alexander-mills/b/7a5/418/

#2John R Pierce
pierce@hogranch.com
In reply to: Alexander Mills (#1)
Re: bug?

On 10/21/2016 3:03 PM, Alexander Mills wrote:

sfoc02q106hg8wm:crucible-poc-discovery t_millal$ psql -h
$(docker-machine ip) -U pguser
Password for user pguser:
psql: FATAL: database "pguser" does not exist

I gave it the -U option, so why does it say

"database "pguser" does not exist"

you didn't specify a database name, just a host and user. I believe it
defaults to a database named the same as the user if you don't specify it.

--
john r pierce, recycling bits in santa cruz

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#3Alexander Mills
alexander.d.mills@gmail.com
In reply to: John R Pierce (#2)
Re: bug?

alrighty then!

On Fri, Oct 21, 2016 at 3:36 PM, John R Pierce <pierce@hogranch.com> wrote:

On 10/21/2016 3:03 PM, Alexander Mills wrote:

sfoc02q106hg8wm:crucible-poc-discovery t_millal$ psql -h
$(docker-machine ip) -U pguser
Password for user pguser:
psql: FATAL: database "pguser" does not exist

I gave it the -U option, so why does it say

"database "pguser" does not exist"

you didn't specify a database name, just a host and user. I believe it
defaults to a database named the same as the user if you don't specify it.

--
john r pierce, recycling bits in santa cruz

--
Alexander D. Mills
(650)269-9502
alexander.d.mills@gmail.com

- www.linkedin.com/pub/alexander-mills/b/7a5/418/