Re: BUG #15350: Getting invalid cache ID: 11 Errors - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15350: Getting invalid cache ID: 11 Errors
Date
Msg-id 5225.1536803479@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #15350: Getting invalid cache ID: 11 Errors  (Thomas Munro <thomas.munro@enterprisedb.com>)
Responses Re: BUG #15350: Getting invalid cache ID: 11 Errors  (Thomas Munro <thomas.munro@enterprisedb.com>)
Re: BUG #15350: Getting invalid cache ID: 11 Errors  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-bugs
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> ... Do we really want to crack down on
> extension libraries that wouldn't work in shared_preload_libraries?

That is, perhaps, a fair question; but I see little benefit to users
in such a library design.  Most people who are using a library heavily
would likely wish to have it preloaded.

> What about hypothetical libraries that are smart enough to avoid
> making such calls when they detect that they're running from
> shared_preload_libraries -- you'd generate false warnings when loaded
> the regular way.

I find that argument too thin to take seriously.  If the library
can manage that, it might as well just postpone the calls all the
time, rather than have two different operating modes that would
require separate testing.  What would be the advantage of the
extra complication?

            regards, tom lane


pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors
Next
From: kalyani kaniganti
Date:
Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error Thesource cluster was not shut down cleanly.