problem connecting to pg.

problem connecting to pg.

Post by postgresq » Wed, 15 Aug 2001 23:04:58



I am experimenting with running PG 7.1.2 on Mac OSX. I seem to
have a problem with getting my users to connect. This works
beautifully when connect to my linux box.

Any ideas?

[localhost:/etc] postgres% /usr/local/pgsql/bin/postmaster -i -p5444 -D /users/postgres/pgdata
DEBUG:  database system was shut down at 2001-08-14 09:03:12 EDT
DEBUG:  CheckPoint record at (0, 2571948)
DEBUG:  Redo record at (0, 2571948); Undo record at (0, 0);
Shutdown TRUE
DEBUG:  NextTransactionId: 750; NextOid: 35106
DEBUG:  database system is in production state
Unable to connect to Ident server on the host which is trying to
connect to Postgres (IP address 192.168.0.2, Port 113). errno =
Connection refused (61)
IDENT authentication failed for user 'postgres'

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

 
 
 

problem connecting to pg.

Post by Josh Berku » Thu, 16 Aug 2001 04:42:36


This is a multi-part MIME message

--_===101882====davinci.ethosmedia.com===_
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit

"postgresql":

Quote:> I am experimenting with running PG 7.1.2 on Mac OSX. I seem to
> have a problem with getting my users to connect. This works
> beautifully when connect to my linux box.

Hmm ... this probably isn't the right list for you.  Try pgsql-general
or pgsql-interfaces.  As yet, there is no specific OSX resource.

Some general advice (and please take this off-list if you reply):
1. Make sure that postmaster is starting successfully (and not crashing
right after start).
2. Make sure that postmaster is starting in TCP/IP mode ( -i ).
3. Make sure that OSX's built-in firewall isn't blocking Port 5432.
4. Try setting a log file for postgresql and monitor it when you try to
connect.
5. Make sure that the access file (pg_hba.conf) allows access from your
client machine.

Personally, I'd be interested in hearing about your problems/successes.
We're planning to port Postgres to OSX.1 as soon as it comes out.

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus

   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco

--_===101882====davinci.ethosmedia.com===_
Content-Type: text/plain
Content-Disposition: attachment; filename=""
Content-Transfer-Encoding: base64

DQo=

--_===101882====davinci.ethosmedia.com===_
Content-Type: text/plain
Content-Disposition: attachment; filename=""
Content-Transfer-Encoding: base64

DQo=

--_===101882====davinci.ethosmedia.com===_
Content-Type: text/plain
Content-Disposition: attachment; filename=""
Content-Transfer-Encoding: base64

DQo=

--_===101882====davinci.ethosmedia.com===_
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

--_===101882====davinci.ethosmedia.com===_--

 
 
 

1. Problem connect to PG on W2K

Hi

I am trying to connect via DBI to a PostgreSQL server set up on a W2K
machine.

I get the following error:
---------------------------
DBI->connect(dbname=test1) failed: connectDBStart() -- socket() failed:
errno=2
No such file or directory
------------------------------
Postmaster is set up as a W2K service and I am able to connect to test1
database via PSQL from C-prompt or CYGWIN.
Here is code snippet:
---------------------------------------------
my $dbh=DBI->connect("dbi:Pg:dbname=$dbmain", $dbuser, $dbpass, {
      RaiseError => 1, AutoCommit => 0});
-----------------------------------------
I set up DBD-Pg via PPM.

Any ideas as to what I am missing.

Howard

2. Selection of a sample from a population with unequal probabilitie s of selection

3. PQconnectPoll connect() failure using DBI & DBD::Pg

4. Win2k cd rom cannot read media

5. Connect to pg via tcpip

6. How to get more MFC document ??

7. vim pg up/ pg down

8. PPPoE

9. Pg.chips vs Pg.chipsdc

10. another DBD::Pg install problem

11. Problems installing Pg module on Tru64 Unix

12. Problems with compiling Perl DBD::Pg on Tru64 Unix

13. Problem Pg.pm ? DBI ?