pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: rb9999999@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16737: error running compiled C program with connection to Postgres
Date: Sat, 21 Nov 2020 12:36:39 -0500
Message-ID: <1545763.1605980199@sss.pgh.pa.us> (raw)
In-Reply-To: <16737-71e193335e499c9a@postgresql.org>
References: <16737-71e193335e499c9a@postgresql.org>

PG Bug reporting form <noreply@postgresql.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





view thread (2+ messages)

Message-ID: <1545763.1605980199@sss.pgh.pa.us>
Permalink:  ../1545763.1605980199@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1545763.1605980199@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rb9999999@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16737: error running compiled C program with connection to Postgres
  In-Reply-To: <1545763.1605980199@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox