Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C1C439FB39A for ; Sat, 21 Apr 2007 23:55:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 22979-02 for ; Sat, 21 Apr 2007 23:55:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7E2AA9FB249 for ; Sat, 21 Apr 2007 23:55:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l3M2tYXn016678; Sat, 21 Apr 2007 22:55:34 -0400 (EDT) To: "Islam Hegazy" cc: pgsql-interfaces@postgresql.org Subject: Re: modifying in the libpg files In-reply-to: <002d01c78483$756209d0$0d0e9f88@pc.cpsc.ucalgary.ca> References: <002d01c78483$756209d0$0d0e9f88@pc.cpsc.ucalgary.ca> Comments: In-reply-to "Islam Hegazy" message dated "Sat, 21 Apr 2007 20:10:45 -0600" Date: Sat, 21 Apr 2007 22:55:34 -0400 Message-ID: <16677.1177210534@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/15 X-Sequence-Number: 6503 "Islam Hegazy" writes: > ../../src/interfaces/libpq/libpq.so: undefined reference to = > `PrintQueryResults' libpq.so is a shared library --- you can't have it calling functions that are not in either itself or a shared library it depends on. You'd have to move PrintQueryTuples bodily into libpq.so to make this work. There are various reasons why that's not a great idea, the main one being that libpq has no idea where psql is intending to send the output. IMHO a reasonable solution would involve extending libpq's published API to allow returning partial query results. This seems like it could be made to fit into the PQsendQuery/PQgetResult paradigm, but nobody's actually done that yet. regards, tom lane