Cannot connect to postgresql database #2921
-
|
I cannot connect to our PostgeSQL database using the code shown below. This used to work but no longer. I have the following environment variables set Any thoughts or help would be greatly appreciated Bruce source code // options.query()->set_expression(sqlQuery); } |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
Do you get any error messages that you could share? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Jason for the reply
There were no error messages other than to say it could not open.
I assumed that since ogrinfo could open it when executed from the same
directory that I had all of the required dlls. Are there any tha osgEarth
requires in addition to the GDAL ones?
…On Fri, Feb 20, 2026 at 11:54 AM Jason Beverage ***@***.***> wrote:
Do you get any error messages that you could share?
—
Reply to this email directly, view it on GitHub
<#2921 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNLDTTNGFVU3QDT4ZGYXWL4M436BAVCNFSM6AAAAACV2TYKJGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOBXGQZTONQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Jason:
Is it possible that postgresql is not included in the gdal build when
using the osgearth vcpkg builder?
When I do ogrinfo --formats in my osgEarh application directory postgresql
does not show on the list. If I go to a recent download of gdal i see
postgresql
Unfortunately thhose dlls are not compatible.
…On Fri, Feb 20, 2026 at 2:06 PM Bruce Clay ***@***.***> wrote:
Thanks Jason for the reply
There were no error messages other than to say it could not open.
I assumed that since ogrinfo could open it when executed from the same
directory that I had all of the required dlls. Are there any tha osgEarth
requires in addition to the GDAL ones?
On Fri, Feb 20, 2026 at 11:54 AM Jason Beverage ***@***.***>
wrote:
> Do you get any error messages that you could share?
>
> —
> Reply to this email directly, view it on GitHub
> <#2921 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADNLDTTNGFVU3QDT4ZGYXWL4M436BAVCNFSM6AAAAACV2TYKJGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOBXGQZTONQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
|
It turns out the problem was with GDAL. When I rad ogrinfo with the gdal.dll created by the earth vcpkg build 64 formats were listed. Pgdump was one of them but Postgresql was not. I pulled a fresh copy of GDAL and ran vcpkg on that. As a result 194 formats were listed including Postgresql. |
Beta Was this translation helpful? Give feedback.
-
|
Glad you figured it out! |
Beta Was this translation helpful? Give feedback.
It turns out the problem was with GDAL. When I rad ogrinfo with the gdal.dll created by the earth vcpkg build 64 formats were listed. Pgdump was one of them but Postgresql was not.
I pulled a fresh copy of GDAL and ran vcpkg on that. As a result 194 formats were listed including Postgresql.