From: Laszlo Nagy <gandalf@shopzeus.com>
To: pgsql-admin@postgresql.org
Subject: Re: database not found
Date: Mon, 13 Aug 2012 16:32:53 +0200
Message-ID: <50291015.1080608@shopzeus.com> (raw)
In-Reply-To: <CAHr-pYEvLFyQTknMyZsfHgGOcYSXad=SXLeXwDEuopqnio5esg@mail.gmail.com>
References: <CAHr-pYEvLFyQTknMyZsfHgGOcYSXad=SXLeXwDEuopqnio5esg@mail.gmail.com>
On 2012-08-13 16:18, Richard Harper wrote:
> All of the databases appear to be where they should be. As an
> experiment, I tried tcp/ip to the 'posgres' database. That worked.
> Thanks to Ray, I worked that out. Per the suggestion I tried:
> psql -h 127.0.0.1 -d d3_jchem. It connected after requesting a
> password (SSL). I still cannot connect to d3_jchem. Also, an
> additional role I created (su) was not found. Could it be a file
> protection setting. I notice that I cannot even ls the ..../base
> directory without being superuser. That does not seem right. Thanks
> for your patience and suggestions.
It is not a file protection setting. The postgresql server owns all the
database files, and you can only access those files through the service.
Your problem is that you have multiple postgresql server instances
running. Either on the same machine, or on different machines.
Try to login with the postgresql superuser (pgsql or postgres). Then do
these:
select inet_server_addr()
select version()
Do this from both programs (psql and the other program) and compare the
results. Probably you will find out that you are connecting to two
different database instances.
Can you please tell us more about the other (non-psql) program? What is
that program? On what system have you installed that application? There
are some programs that run their own embedded postgresql server. It is
possible that you are running a program that uses an embedded PostgreSQL
server.
Best,
Laszlo
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gandalf@shopzeus.com
Subject: Re: database not found
In-Reply-To: <50291015.1080608@shopzeus.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