Re: BUG #16737: error running compiled C program with connection to Postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rb9999999(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16737: error running compiled C program with connection to Postgres
Date: 2020-11-21 17:36:39
Message-ID: 1545763.1605980199@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> when running a compiled C program with connection attributes to postgres, I
> now get the following error after upgrading to Big Sur:

> dyld: Library not loaded: /usr/lib/libpq.5.dylib
> Referenced from: /xxdir/program
> Reason: image not found
> Abort trap: 6

Complaining here won't help you with that. The Postgres project has
no say in what Apple chooses to include in their operating system.

Having said that, the version that Apple was shipping up through
Catalina was pretty darn obsolete:

$ ls -1 /usr/lib/libpq*
/usr/lib/libpq.5.6.dylib
/usr/lib/libpq.5.dylib
/usr/lib/libpq.dylib

libpq.5.6 would be from Postgres 9.3, which has been out of support
for some time ... and it'd be a very good bet that this wasn't an
end-of-life version anyway, meaning it's certainly missing security
and other bug fixes. So personally I wouldn't use that anyway.

The most obvious path forward is to use Homebrew or MacPorts to
install Postgres, as well as anything else you need. (It looks
like Apple culled a heck of a lot from /usr/lib in Big Sur,
not only libpq.)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-11-21 17:44:55 Re: BUG #16736: SCRAM authentication is not supported by this driver
Previous Message Alvaro Herrera 2020-11-21 17:06:38 Re: BUG #16732: pg_dump creates broken backups