public inbox for [email protected]  
help / color / mirror / Atom feed
From: Chapman Flack <[email protected]>
To: Bear Giles <[email protected]>
Cc: [email protected]
Subject: Re: Problem running examples.jar with official postgresql pljava deb
Date: Sat, 5 Mar 2022 18:39:53 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CALBNtw4eTNsV7+2Cr6fmFX8+RyWMHAA+4Og2NRwOBLz30u2FWw@mail.gmail.com>
References: <CALBNtw5Wchp128n2-rgJ1ebjqw7sVW0fBw4A0gEH1ZasYjJ75w@mail.gmail.com>
	<[email protected]>
	<CALBNtw4eTNsV7+2Cr6fmFX8+RyWMHAA+4Og2NRwOBLz30u2FWw@mail.gmail.com>

On 03/05/22 18:16, Bear Giles wrote:
>   postgres=# SELECT sqlj.remove_jar("ex", false);
> 
> then reinstalling example.jar fails since the 'javatest' schema already
> exists. However if I execute
> 
>   postgres=# DROP SCHEMA javatest CASCADE;
> 
> then when I re-install examples.jar I get
> 
>   ERROR:  type "javatest.complextuple" does not exist

If I do sqlj.remove_jar with true instead of false, then it puts away
all its toys including the javatest schema itself, and I don't see an
error upon reinstalling examples.jar (in a new session),

Trying to reinstall the jar in the same session can lead to puzzling
errors of the "Cannot cast Point to Point" variety, because the caching
of type information in the C code can retain references to the schema's
former ClassLoader, and classes of the same name but different loaders
are different. But that's easily sidestepped by just opening a new session.

Regards,
-Chap





view thread (6+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Problem running examples.jar with official postgresql pljava deb
  In-Reply-To: <[email protected]>

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

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