X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B2C0752B73 for ; Wed, 10 Aug 2005 07:37:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29127-03 for ; Wed, 10 Aug 2005 10:37:41 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 055E952A97 for ; Wed, 10 Aug 2005 07:37:40 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 1395730959; Wed, 10 Aug 2005 12:47:34 +0200 (MET DST) From: Tomasz Myrta X-Newsgroups: pgsql.interfaces Subject: Re: Connect to a PostgreSQL-Server by TCP/IP Date: Wed, 10 Aug 2005 12:38:23 +0200 Organization: Hub.Org Networking Services Lines: 25 Message-ID: References: <42B985D6.8050603@aerodynamics.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: pl, en-us, en In-Reply-To: <42B985D6.8050603@aerodynamics.ch> To: pgsql-interfaces@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200508/13 X-Sequence-Number: 5684 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