From: Ferran P. <fer...@re...> - 2002-08-22 17:13:10
|
eurlix wrote: >Hi All, > >I am trying to use postgreSQL with TC, using Rildo's tdb02a.c >compiled as a shared library. >This works not too bad (thanks Rildo) but the time to start >a program is almost TWENTY seconds. >I think that is the time to find libpq.so in /usr/lib/. >I have tryed somethings like : >- add "/usr/lib/libpq.so" in TCOB_LD_LIBRARY_PATH, >- recompile TC with libltdl, >... >but the time for start the program is always the same. > >As someone (perhaps Ferran) an idea about this ? > >Regards, > > Sorry for the late answer, I was on halydays. The calls to libpq are from the C source, then the TCOB_LD_LIBRARY_PATH doesn't act on it. This only acts for finding the routines found on tdba.c My recomentation is, first link tdba.c with libpq. This can be done easily because shared libs can be linked with other shared libs. This should reduce the time needed to find libpq. Then the problem is the time to fund the libraries found on tdb02a. A good solution is to rename the shared object to something like libtdba.so. If this doesn't work try to inser displays and printf on the cobol and c source and see where is the time spend exactly. If nothing helps, ask me again with more detailed info. -- Salutacions / Regards +---------------------------------------------------------------+ | Ferran Pegueroles Forcadell | | mailto:fer...@re... | | Tels (+34)937252106 - (+34)667658535 | | C/Unió 44 2n 2a 08201 Sabadell (BCN) | +---------------------------------------------------------------+ |