pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo Luna <rodrigomrluna78@gmail.com>
To: Siddharth Jain <siddhsql@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: FATAL: database "xxx" does not exist when it does
Date: Wed, 1 Feb 2023 17:15:37 -0300
Message-ID: <C0A6EAC7-BE24-49B3-8D65-DB0F3B89AA66@gmail.com> (raw)
In-Reply-To: <CAPqV3pQaDqJUOQBxiRQED8JoixNToey6A8LgvA20HYiQ2Z09AQ@mail.gmail.com>
References: <CAPqV3pQaDqJUOQBxiRQED8JoixNToey6A8LgvA20HYiQ2Z09AQ@mail.gmail.com>

Even on the create role you set login?

Rodrigo Dev
Visite: https://rodrigoluna.net.br
YouTube: GamesBR

> Em 1 de fev. de 2023, à(s) 17:13, Siddharth Jain <siddhsql@gmail.com> escreveu:
> 
> 
>> 
>> 
>>> using Postgres 14.4, I created a database as the postgres user:
>>> 
>>> create database xxx;
>>> 
>>> postgres=> \c xxx
>>> psql (13.9 (Debian 13.9-0+deb11u1), server 14.4)
>>> WARNING: psql major version 13, server major version 14.
>>>          Some psql features might not work.
>>> SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
>>> You are now connected to database "xxx" as user "postgres".
>>> 
>>> i gave all privileges on xxx to user sysbench:
>>> 
>>> postgres=> GRANT ALL PRIVILEGES ON DATABASE xxx TO sysbench;
>>> 
>>> i can see:
>>> 
>>> Name     |      Owner       | Encoding | Collate |  Ctype  |           Access privileges
>>> --------------+------------------+----------+---------+---------+---------------------------------------
>>>  xxx         | postgres         | UTF8     | C.UTF-8 | C.UTF-8 | =Tc/postgres                         +
>>>               |                  |          |         |         | postgres=CTc/postgres                +
>>>               |                  |          |         |         | sysbench=CTc/postgres
>>> 
>>> but user sysbench is not able to connect to this database:
>>> 
>>> sysbench=> \c xxx
>>> FATAL:  database "xxx" does not exist
>>> Previous connection kept
>>> 
>>> how can i fix this?

view thread (4+ messages)  latest in thread

Message-ID: <C0A6EAC7-BE24-49B3-8D65-DB0F3B89AA66@gmail.com>
Permalink:  ../C0A6EAC7-BE24-49B3-8D65-DB0F3B89AA66@gmail.com/
Also on:    postgresql.org/message-id/C0A6EAC7-BE24-49B3-8D65-DB0F3B89AA66@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rodrigomrluna78@gmail.com, siddhsql@gmail.com
  Subject: Re: FATAL: database "xxx" does not exist when it does
  In-Reply-To: <C0A6EAC7-BE24-49B3-8D65-DB0F3B89AA66@gmail.com>
  References: <CAPqV3pQaDqJUOQBxiRQED8JoixNToey6A8LgvA20HYiQ2Z09AQ@mail.gmail.com> <C0A6EAC7-BE24-49B3-8D65-DB0F3B89AA66@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox