From: Tomasz Myrta <jasiek@klaster.net>
To: pgsql-interfaces@postgresql.org
Subject: Re: Connect to a PostgreSQL-Server by TCP/IP
Date: Wed, 10 Aug 2005 12:38:23 +0200
Message-ID: <ddcldh$1tbi$1@news.hub.org> (raw)
In-Reply-To: <42B985D6.8050603@aerodynamics.ch>
References: <42B985D6.8050603@aerodynamics.ch>
Fischer Ulrich napisal 2005-06-22 17:37:
> Hello
>
> I'm new in this List.
> I would like to connect to a Postgres-Server by a LabView-Client. The
> problem is, there is NO odbc-driver for LV on Linux and no LV-interface
> to postgreSQL.
> So I decided to make my own simple LabView driver. Are there some docs,
> which describes the basic communication over a tcp connection between
> the postgres server and a client? I'm interested in 'message
> architecture' (header, data for login, sql-querys and so on...) and all
> this stuff.
May I ask you, why do you want to make your own direct TCP connection to
PostgreSQL? I think, in your case it would be much easier to create some
wrapper for libpq or some other frontend library. It needs less work and
you don't have to be afraid about tracking internal protocol changes.
> I tried some backward engineering by sniffing the tcp connection, but it
> is rather anoying. It looks like the messages have some binary headers
> and they are a problem....
Maybe source code of common used PostgresSQL frontends like libpq will
help you?
Regards,
Tomasz Myrta
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-interfaces@postgresql.org
Cc: jasiek@klaster.net
Subject: Re: Connect to a PostgreSQL-Server by TCP/IP
In-Reply-To: <ddcldh$1tbi$1@news.hub.org>
* 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