473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

pgadmin problem

mmd
I want to use pgadmin to set up some tables, rather than do all the
psql statements from the terminal.

When I try to add a server, though, pgadmin fails to connect, and asks
whether the server is accepting TCP/IP connections on the default
port, and whether localhost is the correct servername.

I assume that both of these ARE set to the defaults, because if I
simply type

$ psql contacts

I go right into psql, where I am allowed to make and alter tables.

Is there something along the lines of a "psql -v" that would tell
me what the server calls itself, and what ports it's listening on (oh,
and whether it's allowing TCP/IP connections)?

If not, is there better help on this pgadmin3 dialogue somewhere? The
stock documentation is very thin.

Best,
Matt

--

Matthew M Davis
<mm*@teledavis.com>

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #1
2 1921
mm*@teledavis.com writes:
I want to use pgadmin to set up some tables, rather than do all the
psql statements from the terminal.

When I try to add a server, though, pgadmin fails to connect, and asks
whether the server is accepting TCP/IP connections on the default
port, and whether localhost is the correct servername.

I assume that both of these ARE set to the defaults, because if I
simply type

$ psql contacts

I go right into psql, where I am allowed to make and alter tables.


The server doesn't use TCP/IP by default. You can change this by
editing the postgresql.conf file in the server's data directory (the
location of which varies depending on how PG was installed) and
setting 'tcpip_socket' to 'true', then restarting the server.

You may also need to edit pg_hba.conf, depending on whether you're
connecting from the local machine and how you have your databases set
up.

-Doug

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

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #2
On Fri, 2004-07-23 at 13:58, mm*@teledavis.com wrote:
I want to use pgadmin to set up some tables, rather than do all the
psql statements from the terminal.

When I try to add a server, though, pgadmin fails to connect, and asks
whether the server is accepting TCP/IP connections on the default
port, and whether localhost is the correct servername.

I assume that both of these ARE set to the defaults, because if I
simply type

$ psql contacts

I go right into psql, where I am allowed to make and alter tables.


In that case you are not using TCP/IP to localhost, but a Unix socket.
Try "psql -h localhost contacts" to see the difference.

Edit $PGDATA/pg_hba.conf to change the settings (and then signal the
postmaster or restart it).

--
Oliver Elphick ol**@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
"Be not deceived; God is not mocked; for whatsoever a
man soweth, that shall he also reap."
Galatians 6:7
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matthew T. O'Connor | last post by:
Saw this on newsforge.com just a few minutes ago. Go to www.pgadmin.org to get your copy. I just installed the windows version on a Win2k Terminal Server Box that several developers use,...
1
by: Együd Csaba | last post by:
Hi All, I've a problem using PGAdmin III. When I click on one of my functions the definition pane shows an empty function (with the correct header and footer but with no body). Pg_dump shows...
1
by: mikew | last post by:
I am working at a company that has been using MS SQL Server, and we are going to be switching over to postgresql next week. (Getting off of Windows will be a relief!) I am very familiar with SQL...
1
by: MargaretGillon | last post by:
I am using PGADMIN III v1.1.0 Windows to set up PostgreSQL tables on a Linux Server, RedHat 9. Every time I create a character field, even just one character wide, the PGADMIN uses EXTENDED as the...
1
by: raptor | last post by:
hi, Is there a plans for pgadmin III to support editing the table data, not only view-ing it ? tia ---------------------------(end of broadcast)--------------------------- TIP 5: Have you...
2
by: Vic Cekvenich | last post by:
What can I run on OS X as a pgAdmin equivalment (other than the Java solutions)? ..V -- Please post on Rich Internet Applications User Interface (RiA/SoA) <http://www.portalvu.com> ...
0
by: Laurent Duperval | last post by:
HI, I'm using pgadmin III 1.2.0 Post Beta 1 (Sept 17 2004). I used it to execute a SQL script that creates tables and inserts data. At the end, I get a message saying that everything went...
1
by: John French | last post by:
I just installed postgresql 7.4.5 and pgadmin3 1.0.2 on FreeBSD and noticed that pgadmin allows the pgsql user to log in while ignoring the password. You can enter a wrong password or no password...
1
by: gocraig | last post by:
PG Admin Version 1.6.0 (Nov 15 2006, rev 5641) Running on Windows 2000 PostgreSQL 8.2.6, running remotely on Linux pg_hba.conf contains the record ... host all all ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.