Re: modifying the table function

From: "Islam Hegazy" <islheg(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: modifying the table function
Date: 2007-04-21 07:08:35
Message-ID: 00c201c783e3$e6759970$0d0e9f88@pc.cpsc.ucalgary.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi again

It seems now that I am one step away from the end. So far I have succeeded
in returing row by row from the backend to the frontend, knew this from
debugging.

Now comes the point of displaying them directly not to wait till the end of
the query. These are the steps I took:

1) redefined 'PrintQueryResults' in common.c to be extern (not static as the
initial definition) to be able to use it elsewhere
2) added a declaration for ''PrintQueryResults' in common.h, to tell other
files about it
3) removed 'PrintQueryResults' invocation from 'SendQuery' common.c
4) added #include "../bin/psql/common.h" to fe-exec.c
5) called 'PrintQueryResults' from within 'PQexecFinish', last statment in
the while loop

when I gmake the project I receive the following error:
"
../../../src/interfaces/libpq/libpq.so: undefined reference to
`PrintQueryTuples'
collect2: ld returned 1 exit status
gmake[3]: *** [initdb] Error 1
gmake[3]: Leaving directory
`/home/grads/imehegaz/postgresql-8.2.3-b/src/bin/initdb'
"

I wonder what does this error mean and how to solve it?

Regards
Islam Hegazy

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Islam Hegazy" <islheg(at)gmail(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Sent: Wednesday, April 18, 2007 6:38 PM
Subject: Re: [HACKERS] modifying the table function

> "Islam Hegazy" <islheg(at)gmail(dot)com> writes:
>> I wonder if I am on the right track or not and how to know such kind of
>> message sent from the server?
>
> Seems like you're doing it the hard way. Wouldn't it be easier to fix
> the client to display data before it's received the whole query result?
>
> regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zoltan Boszormenyi 2007-04-21 07:48:52 Re: [HACKERS] parser dilemma
Previous Message Tom Lane 2007-04-21 06:38:50 Re: Improving deadlock error messages