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" <[EMAIL PROTECTED]>
To: "Islam Hegazy" <[EMAIL PROTECTED]>
Cc: <pgsql-hackers@postgresql.org>
Sent: Wednesday, April 18, 2007 6:38 PM
Subject: Re: [HACKERS] modifying the table function


"Islam Hegazy" <[EMAIL PROTECTED]> 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


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

               http://www.postgresql.org/about/donate

Reply via email to