Talking to PostgreSQL with telnet - Mailing list pgsql-general

From Campano, Troy
Subject Talking to PostgreSQL with telnet
Date
Msg-id 9534B16F750ED2118CF90008C724C4460C222B45@lmig-msg-20.lmig.com
Whole thread Raw
List pgsql-general

I want to write a program that scans a bunch of nodes on port 5432 to see if PostgreSQL lives there.
Is there a command I can issue from telnet that will return if it is PostgreSQL and not another server without supplying and credentials?

For example if I telnet to a node called 'bob' on port 21 I could get:

220 bob FTP server (SunOS 5.8) ready.

And then I'd now it's a FTP server. Anything to find out if it's a PostgreSQL server?
When I use this same method on a PostgreSQL server running on port 5432, I get a blank console that is awaiting for a command.

thank you!

Troy Campano

pgsql-general by date:

Previous
From: tony
Date:
Subject: Re: RAD web development with PostgreSQL?
Next
From: Patrick Nelson
Date:
Subject: Series