pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Glaesemann <grzm@seespotcode.net>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: TypeInfoCache.getPGType(pgTypeName) drops schema name when caching
Date: Sun, 16 Jul 2017 12:04:27 -0500
Message-ID: <3B76CB0B-C216-44D9-A54E-DF6E518BAEC3@seespotcode.net> (raw)
In-Reply-To: <CAB=Je-GSx6U05GAVaiU4tQsP01CyWVAGJOZmo=tm+zykcAGcJQ@mail.gmail.com>
References: <72F45272-226E-47FC-940F-F5E5FF446222@seespotcode.net>
	<CAB=Je-EumgtG1m+XcSWMC0AScVs9HkAsUfXBgAwt9meVPFxVeA@mail.gmail.com>
	<7748FA42-7355-4B56-B9B7-F19ABE096A9A@seespotcode.net>
	<CAB=Je-GSx6U05GAVaiU4tQsP01CyWVAGJOZmo=tm+zykcAGcJQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>


> On 2017-07-16, at 11:21, Vladimir Sitnikov <sitnikov.vladimir@gmail.com> wrote:
> 
> Michael>The caching to the cars.colors type name is different depending on whether getPGType(pgTypeName) and getPGType(oid) is doing the caching. getPGType(pgTypeName) doesn't include the schema name 
> 
> This does sound odd on the first sight.
> You might try to file a PR to see if the change would fail some existing tests.

Will do. Thanks!

> 
> There was a recent change https://github.com/pgjdbc/pgjdbc/commit/cddcd185cc71267e8eb177c6ba1dab3f029da089#diff-9cedabddb25727... that did touch _pgNameToOid.
> We might want to use some common approach for _pgNameToOid.
> 
> Vladimir

Michael Glaesemann
grzm seespotcode net





-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (5+ messages)

Message-ID: <3B76CB0B-C216-44D9-A54E-DF6E518BAEC3@seespotcode.net>
Permalink:  ../3B76CB0B-C216-44D9-A54E-DF6E518BAEC3@seespotcode.net/
Also on:    postgresql.org/message-id/3B76CB0B-C216-44D9-A54E-DF6E518BAEC3@seespotcode.net

 · 

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-jdbc@postgresql.org
  Cc: grzm@seespotcode.net, sitnikov.vladimir@gmail.com
  Subject: Re: TypeInfoCache.getPGType(pgTypeName) drops schema name when caching
  In-Reply-To: <3B76CB0B-C216-44D9-A54E-DF6E518BAEC3@seespotcode.net>
  References: <72F45272-226E-47FC-940F-F5E5FF446222@seespotcode.net> <CAB=Je-EumgtG1m+XcSWMC0AScVs9HkAsUfXBgAwt9meVPFxVeA@mail.gmail.com> <7748FA42-7355-4B56-B9B7-F19ABE096A9A@seespotcode.net> <CAB=Je-GSx6U05GAVaiU4tQsP01CyWVAGJOZmo=tm+zykcAGcJQ@mail.gmail.com> <3B76CB0B-C216-44D9-A54E-DF6E518BAEC3@seespotcode.net>

* 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