Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 742849FB5A6 for ; Sun, 22 Apr 2007 00:59:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 26556-06 for ; Sun, 22 Apr 2007 00:59:40 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by postgresql.org (Postfix) with ESMTP id 51C339FB298 for ; Sun, 22 Apr 2007 00:59:41 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id a73so1101574pye for ; Sat, 21 Apr 2007 20:59:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=g5FnAHOt5UDiQcw83y0geiKpHrFaY/BAAyjxm7l5PvNALAE1PhS0RNMS5dtnzaHKWZ4g5e1yG8hGrOpyez6iMpKgZEM+cRzcrOWEhX/Bw0mMYODFJbjPuPHRMFfZQZurmTnOs99qSJR+J1tDeYyFhaMWSZZKA6hwVzNHT/J0TeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=VWwd8HD4QcYG6FolW46bGKrPAOoW9WMXvpFLGM2Y6Bu4+VWey8qbzkRmlLBCyLIsUHL3Fo69Qc+5RWR+lq41Tdi8AH8ZvxuNLS4lc6Td4BsjZ6PSna+FtfuB+sz0dJ7l/PyJ4DPBGJsOdygIPUjHvSDgqY4cHQpcGqefYUJdngY= Received: by 10.35.69.11 with SMTP id w11mr8175710pyk.1177214380666; Sat, 21 Apr 2007 20:59:40 -0700 (PDT) Received: from ict504a ( [136.159.14.13]) by mx.google.com with ESMTP id p57sm7159203pyb.2007.04.21.20.59.39; Sat, 21 Apr 2007 20:59:39 -0700 (PDT) Message-ID: <003e01c78492$a69dce80$0d0e9f88@pc.cpsc.ucalgary.ca> From: "Islam Hegazy" To: "Tom Lane" Cc: References: <002d01c78483$756209d0$0d0e9f88@pc.cpsc.ucalgary.ca> <16677.1177210534@sss.pgh.pa.us> Subject: Re: modifying in the libpg files Date: Sat, 21 Apr 2007 21:59:33 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1256"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/16 X-Sequence-Number: 6504 But can you tell me how to let libpq.so depend on the shared library of PrintQueryTuples? I need to implement this to show my boss that this final step is not applicable. Also, what is and what do you mean by extending libpq's published API? Regards Islam Hegazy ----- Original Message ----- From: "Tom Lane" To: "Islam Hegazy" Cc: Sent: Saturday, April 21, 2007 8:55 PM Subject: Re: [INTERFACES] modifying in the libpg files > "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