Coder Social home page Coder Social logo

Comments (10)

davecramer avatar davecramer commented on June 24, 2024

if it presents as 8.0 and the code checks for min version >= 7.3 then it
should work ?

Dave Cramer

On Mon, Aug 12, 2013 at 6:28 PM, garrettpatterson
[email protected]:

When using Mondrian schema workbench, it is unable to list databases in
the schema, the error is: org.postgresql.util.PSQLException: "Unable to
determine a value for MaxIndexKeys due to missing system catalog data."

It appears to be incompatibility of SQL used to query metadata and the
version which Redshift presents itself as:

https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java#L46-59

The query it tries to run reporting as an 8.0 PostgreSQL:
SELECT * FROM pg_catalog.pg_settings WHERE name='max_index_keys'

Query that actually works (Min version >= 7.3 query):
SELECT t1.typlen/t2.typlen from pg_catalog.pg_namespace n,
pg_catalog.pg_type t1, pg_catalog.pg_type t2 WHERE t1.typnamespace=n.oid
AND n.nspname='pg_catalog' AND t1.typelem=t2.oid AND t1.typname='oidvector'

Is there a way to determine a Redshift version within the driver? Set
something in JDBC configuration for Redshift?


Reply to this email directly or view it on GitHubhttps://github.com//issues/79
.

from pgjdbc.

davecramer avatar davecramer commented on June 24, 2024

I think they recommend using only 8.4

from pgjdbc.

garrettpatterson avatar garrettpatterson commented on June 24, 2024

Redshift presents as >8, yet the auto-discovery query for PostGres version 8 and up does not work. The query that does work and matches the metadata schema is that of Postgres version >=7.3 but < version 8. I wouldn't consider "I think they recommend using only 8.4" a decent reason to close this.

from pgjdbc.

davecramer avatar davecramer commented on June 24, 2024

I'll reopen it for now then. I have to find a way to get a hold of redshift. In some ways it's really their bug

from pgjdbc.

garrettpatterson avatar garrettpatterson commented on June 24, 2024

Agreed - they're the ones doing out of band things. thanks for re-opening, would be fine if this went to an enhancement instead since its more about support than a true bug.

from pgjdbc.

ringerc avatar ringerc commented on June 24, 2024

On 04/26/2014 03:57 AM, Dave Cramer wrote:

I'll reopen it for now then. I have to find a way to get a hold of
redshift. In some ways it's really their bug

I have some contacts within Amazon here. I'll get in touch and see if I
can get a contact within the Redshift team. They really need to start
contributing to PgJDBC if they're going to be relying on it - and I'd
really rather they contributed to mainline PgJDBC than suddenly pop up
with a fork.

Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

from pgjdbc.

ringerc avatar ringerc commented on June 24, 2024

I've had no response from Amazon/ParAccel. They seem to content to ignore issues with Redshift and PgJDBC.

from pgjdbc.

davecramer avatar davecramer commented on June 24, 2024

Well I have an account they will let us use, but I'm less than motivated to
help them. I had to ask them for the account

Dave Cramer

On 26 June 2014 05:21, Craig Ringer [email protected] wrote:

I've had no response from Amazon/ParAccel. They seem to content to ignore
issues with Redshift and PgJDBC.


Reply to this email directly or view it on GitHub
#79 (comment).

from pgjdbc.

ringerc avatar ringerc commented on June 24, 2024

On 06/26/2014 05:44 PM, Dave Cramer wrote:

Well I have an account they will let us use, but I'm less than motivated to
help them. I had to ask them for the account

... and they still haven't donated one to the SQLFiddle folks, AFAIK.
Which is not sensible.

I see little reason to put any effort into supporting their
closed-source product when they don't dedicate any resources to helping
out here.

Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

from pgjdbc.

davecramer avatar davecramer commented on June 24, 2024

Not going to fix this

from pgjdbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.