Comments (10)
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: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.
I think they recommend using only 8.4
from pgjdbc.
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.
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.
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.
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.
I've had no response from Amazon/ParAccel. They seem to content to ignore issues with Redshift and PgJDBC.
from pgjdbc.
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.
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.
Not going to fix this
from pgjdbc.
Related Issues (20)
- Connect to several hosts concurrently to reduce connect lantency HOT 1
- executeBatch(...) hangs indefinitely with no exception HOT 1
- The report host status is agnostic to error codes
- Implement direct SSL for PostgreSQL version 17 and above
- Performance degradation of XML operations under Java 21 with custom parsers/transformers HOT 4
- When BI tool connects to pg, it causes OOM HOT 4
- conversion for `TIME '24:00'` to LocalTime breaks in binary-mode
- DatabaseMetaDataTest does not test binary mode
- When fetching a BOOLEAN data type for a column, this is identified as a BIT data type by java.sql.Types HOT 7
- Failing while building postgresql version 42.2.20 using ./gradlew build (postgresql:42.2.20) HOT 4
- CallableStatement#getUpdateCount() seems wrong for stored procedures HOT 3
- Prevent fetchFieldMetaData() from being run when unnecessary. HOT 11
- setMaxRows doesn't limit rows HOT 3
- Move PGStream.receiveInteger2 and receiveInteger4 to VisibleBufferedInputStream, and remove int2Buf, int4Buf HOT 1
- Reuse buffers and reduce allocations in GSSInputStream
- Connection.rollback should cancel in-flight queries HOT 1
- Connection.abort should cancel in-flight queries HOT 3
- Test against PostgreSQL head. HOT 2
- DDL batch commit, pg_stat_activity displays execution one by one, not batch execution HOT 4
- Multiple BEGIN ATOMIC ... END; not supported for prepared statement. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgjdbc.