pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Islam Hegazy <islheg@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: modifying in the libpg files
Date: Sat, 21 Apr 2007 22:55:34 -0400
Message-ID: <16677.1177210534@sss.pgh.pa.us> (raw)
In-Reply-To: <002d01c78483$756209d0$0d0e9f88@pc.cpsc.ucalgary.ca>
References: <002d01c78483$756209d0$0d0e9f88@pc.cpsc.ucalgary.ca>

"Islam Hegazy" <islheg@gmail.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



view thread (4+ messages)  latest in thread

Message-ID: <16677.1177210534@sss.pgh.pa.us>
Permalink:  ../16677.1177210534@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16677.1177210534@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, islheg@gmail.com
  Subject: Re: modifying in the libpg files
  In-Reply-To: <16677.1177210534@sss.pgh.pa.us>

* 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