[Lazarus] Postgres Dlls not found
Michael Van Canneyt
michael at freepascal.org
Sat May 31 10:07:48 CEST 2008
On Fri, 30 May 2008, dgcoventry at gmail.com wrote:
> Michael, Marc, Soren, Jalal, Joost et al,
>
> Thanks very much for your assistance.
>
> I ran Dependency Walker on the libpq.dll and found there was some kind
> of error on the file, so I deleted all instances of libpq.dll on the
> system (I had ended up with 4 or 5 copies of the file with all my
> experimentation) except the ones in the pgadminIII directory.
>
> I added the pgadminIII directory to the PATH environment variable, and ....
>
> ...It wotks!
>
> Without wanting to sound churlish, I am a bit of a loss to understand
> why the PQconnection needs to use the libpq.dll in the first place.
> I'm sure a lot of the Queries could be handled by communicating
> directly with the psql command line through ssh.
You could try to do this;
But it would be horribly inefficient, making it totally unusable.
The recommended programmer's interface is libpq.dll, so that is what
we use. The problems you experienced are what is known as DLL hell,
and occur under many circumstances, not just with PostGreSQL.
Michael.
More information about the Lazarus
mailing list