Re: modifying in the libpg files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Islam Hegazy" <islheg(at)gmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: modifying in the libpg files
Date: 2007-04-22 02:55:34
Message-ID: 16677.1177210534@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"Islam Hegazy" <islheg(at)gmail(dot)com> 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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Islam Hegazy 2007-04-22 03:59:33 Re: modifying in the libpg files
Previous Message Islam Hegazy 2007-04-22 02:10:45 modifying in the libpg files