Обсуждение: Re: pg_ctl question

Поиск
Список
Период
Сортировка

Re: pg_ctl question

От
"Bender, Cheryl"
Дата:
<<I am able to set the database to start upon boot, but
can not get pgAdmin to connect. >>

The easiest way is to set it in postgresql.conf, which is put in your
data folder when you run initdb.

Near the beginning of the file you should see something like
tcpip_socket=true
port=5432

Except that these lines are commented out by default.  Uncomment them
and restart pgsql after saving this file.

I almost forgot--If you haven't already done this, in order to connect
from pgadmin you will also need to change your pg_hba.conf file as well
to tell it what host(s) to allow.

Here is a simple entry to allow all hosts on a subnet to connect to all
databases

#TYPE        DATABASE     USER           IP-ADDRESS         IP-MASK
METHOD
host          all          all           192.168.0.0
255.255.255.0  trust



Cheryl Bender


Re: pg_ctl question

От
Jason Jahn
Дата:
I personally use the postgresql.conf file to specify the options for the
server.

tcpip_socket = true
in that file should do the trick.

That file is located in /var/lib/pgsql/data for me (Fedora core 2), but it
may be located elsewhere on your system.

Jason

-----Original Message-----
From: Jeff Stout [mailto:jstout@cctus.com]
Sent: Monday, June 28, 2004 4:10 PM
Cc: pgsql-admin@postgresql.org
Subject: [ADMIN] pg_ctl question


I am using the /contrib/start-scripts/linux file to set
up postgres to automatically restart upon reboot.

I set it up /etc/init.d/postgres which calls pg_ctl

pg_ctl invokes postmaster

where do I set the -i option to allow tcp connection?

I am able to set the database to start upon boot, but
can not get pgAdmin to connect.

Thank you in advance for you help.

Jeff
CCT


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