pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Kieran McCusker <kieran.mccusker@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors
Date: Wed, 12 Sep 2018 21:51:19 -0400
Message-ID: <5225.1536803479@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=2Mc_SmwQ46qF-eQuEVa_m_=t3sr+=hqw_Qiq7im5iPuw@mail.gmail.com>
References: <153512195228.1489.8545997741965926448@wrigleys.postgresql.org>
	<12945.1535123753@sss.pgh.pa.us>
	<CAEepm=0oE9agBZKkt11w6S29msav3sUErSUJgMmLqMf6JVYY7Q@mail.gmail.com>
	<20462.1535424017@sss.pgh.pa.us>
	<20180902170542.ojz6btqto7b4zix6@alap3.anarazel.de>
	<CAEepm=2Mc_SmwQ46qF-eQuEVa_m_=t3sr+=hqw_Qiq7im5iPuw@mail.gmail.com>

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




view thread (15+ messages)  latest in thread

Message-ID: <5225.1536803479@sss.pgh.pa.us>
Permalink:  ../5225.1536803479@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5225.1536803479@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, andres@anarazel.de, kieran.mccusker@gmail.com
  Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors
  In-Reply-To: <5225.1536803479@sss.pgh.pa.us>
  References: <153512195228.1489.8545997741965926448@wrigleys.postgresql.org> <12945.1535123753@sss.pgh.pa.us> <CAEepm=0oE9agBZKkt11w6S29msav3sUErSUJgMmLqMf6JVYY7Q@mail.gmail.com> <20462.1535424017@sss.pgh.pa.us> <20180902170542.ojz6btqto7b4zix6@alap3.anarazel.de> <CAEepm=2Mc_SmwQ46qF-eQuEVa_m_=t3sr+=hqw_Qiq7im5iPuw@mail.gmail.com> <5225.1536803479@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