pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #11528: Max Index Keys
10+ messages / 4 participants
[nested] [flat]
* BUG #11528: Max Index Keys
@ 2014-09-30 18:44 pdasari@mdsol.com
0 siblings, 1 reply; 10+ messages in thread
From: pdasari@mdsol.com @ 2014-09-30 18:44 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 11528
Logged by: Paul Dasari
Email address: pdasari@mdsol.com
PostgreSQL version: 9.3.4
Operating system: Windows 2008 server
Description:
We are using Amazon Redshift postgreSQL. no matter what jar file we use it
gives the following error message.
Upon browsing, found that the source code is reading the max_index_keys
should be greater than 0. However the redshift database does not require
indexing. I really appreciate your assistance if there is any specific jar
to use to avoid using the max_index_keys function while executing the query
Below is the error we encountered:
Unable to determine a value for MaxIndexKeys due to missing system catalog
data
Thanks
Paul
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 19:10 John R Pierce <pierce@hogranch.com>
parent: pdasari@mdsol.com
0 siblings, 1 reply; 10+ messages in thread
From: John R Pierce @ 2014-09-30 19:10 UTC (permalink / raw)
To: pdasari@mdsol.com; pgsql-bugs
On 9/30/2014 11:44 AM, pdasari@mdsol.com wrote:
> We are using Amazon Redshift postgreSQL. no matter what jar file we use it
> gives the following error message.
jar file? what is this jar file? Do you mean JDBC ? The
PostgreSQL JDBC driver is its own project, has its own mailling lists.
The bug report form you used is for the core database server, which has
no Java components.
> Upon browsing, found that the source code is reading the max_index_keys
> should be greater than 0. However the redshift database does not require
> indexing. I really appreciate your assistance if there is any specific jar
> to use to avoid using the max_index_keys function while executing the query
>
> Below is the error we encountered:
>
> Unable to determine a value for MaxIndexKeys due to missing system catalog
> data
While PostgreSQL doesn't require indexes, its standard practice in
relational databases to always define a primary key for every table.
I'm not sure why JDBC would be enforcing this.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 19:16 Paul Dasari <pdasari@mdsol.com>
parent: John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 10+ messages in thread
From: Paul Dasari @ 2014-09-30 19:16 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-bugs
Hi John,
Thanks much for your response. Yes I am using the JDBC Jar file from
supplied from
http://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc4.jar
Could you please help me provide a link so that i can post my question to
the required support group.
Thanks
Paul
On Tue, Sep 30, 2014 at 3:10 PM, John R Pierce <pierce@hogranch.com> wrote:
> On 9/30/2014 11:44 AM, pdasari@mdsol.com wrote:
>
>> We are using Amazon Redshift postgreSQL. no matter what jar file we use it
>> gives the following error message.
>>
>
> jar file? what is this jar file? Do you mean JDBC ? The
> PostgreSQL JDBC driver is its own project, has its own mailling lists.
> The bug report form you used is for the core database server, which has no
> Java components.
>
> Upon browsing, found that the source code is reading the max_index_keys
>> should be greater than 0. However the redshift database does not require
>> indexing. I really appreciate your assistance if there is any specific jar
>> to use to avoid using the max_index_keys function while executing the
>> query
>>
>> Below is the error we encountered:
>>
>> Unable to determine a value for MaxIndexKeys due to missing system catalog
>> data
>>
>
> While PostgreSQL doesn't require indexes, its standard practice in
> relational databases to always define a primary key for every table.
> I'm not sure why JDBC would be enforcing this.
>
>
>
> --
> john r pierce 37N 122W
> somewhere on the middle of the left coast
>
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 19:20 John R Pierce <pierce@hogranch.com>
parent: Paul Dasari <pdasari@mdsol.com>
0 siblings, 1 reply; 10+ messages in thread
From: John R Pierce @ 2014-09-30 19:20 UTC (permalink / raw)
To: Paul Dasari <pdasari@mdsol.com>; +Cc: pgsql-bugs
On 9/30/2014 12:16 PM, Paul Dasari wrote:
> Thanks much for your response. Yes I am using the JDBC Jar file from
> supplied from
> http://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc4.jar
>
you actually should be using
http://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc4.jar which
as the home page says, supports all versions of postgres newer than 7.2,
and JDK 1.6
> Could you please help me provide a link so that i can post my question
> to the required support group.
http://jdbc.postgresql.org/community/mailinglist.html
--
john r pierce 37N 122W
somewhere on the middle of the left coast
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 19:26 Paul Dasari <pdasari@mdsol.com>
parent: John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 10+ messages in thread
From: Paul Dasari @ 2014-09-30 19:26 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-bugs
Thanks for the inputs with the mailing list.
No matter which version i use the error exists.
I don't know, it seems like a bug!
Thanks
Paul
On Tue, Sep 30, 2014 at 3:20 PM, John R Pierce <pierce@hogranch.com> wrote:
> On 9/30/2014 12:16 PM, Paul Dasari wrote:
>
> Thanks much for your response. Yes I am using the JDBC Jar file from
> supplied from
> http://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc4.jar
>
>
> you actually should be using
> http://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc4.jar
> which as the home page says, supports all versions of postgres newer than
> 7.2, and JDK 1.6
>
> Could you please help me provide a link so that i can post my question
> to the required support group.
>
>
> http://jdbc.postgresql.org/community/mailinglist.html
>
>
>
> --
> john r pierce 37N 122W
> somewhere on the middle of the left coast
>
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 19:34 John R Pierce <pierce@hogranch.com>
parent: Paul Dasari <pdasari@mdsol.com>
0 siblings, 1 reply; 10+ messages in thread
From: John R Pierce @ 2014-09-30 19:34 UTC (permalink / raw)
To: Paul Dasari <pdasari@mdsol.com>; +Cc: pgsql-bugs
On 9/30/2014 12:26 PM, Paul Dasari wrote:
> Thanks for the inputs with the mailing list.
> No matter which version i use the error exists.
> I don't know, it seems like a bug!
>
afaik, JDBC itself doesn't do this test, so what software are you
running in Java thats using JDBC ? Many Database GUI packages insist
on primary keys, otherwise they can't reliably identify the row to
delete or update in a 'data grid' style edit.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 19:55 Paul Dasari <pdasari@mdsol.com>
parent: John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 10+ messages in thread
From: Paul Dasari @ 2014-09-30 19:55 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-bugs
Ok. I am using SAP Business Objects - Information Design Tool.
Not sure if you have already knew about this page, however after looking at
this page i feel like a bug, because when i use the same JAR that came out
of this it perfectly worked fine
http://www.garrettpatterson.com/2013/08/13/connect-pentahomondrian-schema-workbench-to-amazon-redshi...
But would be good if it is coming directly from postgresql.
Thanks
Paul
On Tue, Sep 30, 2014 at 3:34 PM, John R Pierce <pierce@hogranch.com> wrote:
> On 9/30/2014 12:26 PM, Paul Dasari wrote:
>
> Thanks for the inputs with the mailing list.
> No matter which version i use the error exists.
> I don't know, it seems like a bug!
>
>
> afaik, JDBC itself doesn't do this test, so what software are you running
> in Java thats using JDBC ? Many Database GUI packages insist on primary
> keys, otherwise they can't reliably identify the row to delete or update in
> a 'data grid' style edit.
>
>
>
> --
> john r pierce 37N 122W
> somewhere on the middle of the left coast
>
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 20:10 John R Pierce <pierce@hogranch.com>
parent: Paul Dasari <pdasari@mdsol.com>
0 siblings, 1 reply; 10+ messages in thread
From: John R Pierce @ 2014-09-30 20:10 UTC (permalink / raw)
To: Paul Dasari <pdasari@mdsol.com>; pgsql-bugs
On 9/30/2014 12:55 PM, Paul Dasari wrote:
> Ok. I am using SAP Business Objects - Information Design Tool.
>
> Not sure if you have already knew about this page, however after
> looking at this page i feel like a bug, because when i use the same
> JAR that came out of this it perfectly worked fine
>
> http://www.garrettpatterson.com/2013/08/13/connect-pentahomondrian-schema-workbench-to-amazon-redshi...
>
> But would be good if it is coming directly from postgresql.
>
if its a Redshift specific bug, which that seems to imply, then you'll
need to take that up with Amazon, as Redshift is a fork of a rather old
and no longer supported version of PostgreSQL
this discussion really does belong over on the JDBC list.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 20:44 Tom Lane <tgl@sss.pgh.pa.us>
parent: John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 10+ messages in thread
From: Tom Lane @ 2014-09-30 20:44 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; +Cc: Paul Dasari <pdasari@mdsol.com>; pgsql-bugs
John R Pierce <pierce@hogranch.com> writes:
> if its a Redshift specific bug, which that seems to imply, then you'll
> need to take that up with Amazon, as Redshift is a fork of a rather old
> and no longer supported version of PostgreSQL
max_index_keys is a GUC variable that reflects a server build
parameter, namely the maximum number of columns allowed in an index.
I am guessing that the JDBC driver is trying to read that variable
and it's not working because Redshift is descended from a PG version
that predates whenever we added that GUC. (Which was a long time
ago :-(.) I have no idea *why* the JDBC driver would need to know that.
You really need to ask about this on the pgsql-jdbc mailing list,
not here. There may not be a good solution other than using an ancient
JDBC driver with Redshift ... but the people who would know read that
list.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: BUG #11528: Max Index Keys
@ 2014-09-30 20:49 Paul Dasari <pdasari@mdsol.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 10+ messages in thread
From: Paul Dasari @ 2014-09-30 20:49 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs; John R Pierce <pierce@hogranch.com>
Sure. Thanks Tom and John!
On Sep 30, 2014 4:44 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> John R Pierce <pierce@hogranch.com> writes:
> > if its a Redshift specific bug, which that seems to imply, then you'll
> > need to take that up with Amazon, as Redshift is a fork of a rather old
> > and no longer supported version of PostgreSQL
>
> max_index_keys is a GUC variable that reflects a server build
> parameter, namely the maximum number of columns allowed in an index.
> I am guessing that the JDBC driver is trying to read that variable
> and it's not working because Redshift is descended from a PG version
> that predates whenever we added that GUC. (Which was a long time
> ago :-(.) I have no idea *why* the JDBC driver would need to know that.
>
> You really need to ask about this on the pgsql-jdbc mailing list,
> not here. There may not be a good solution other than using an ancient
> JDBC driver with Redshift ... but the people who would know read that
> list.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 10+ messages in thread
end of thread, other threads:[~2014-09-30 20:49 UTC | newest]
Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-09-30 18:44 BUG #11528: Max Index Keys pdasari@mdsol.com
2014-09-30 19:10 ` John R Pierce <pierce@hogranch.com>
2014-09-30 19:16 ` Paul Dasari <pdasari@mdsol.com>
2014-09-30 19:20 ` John R Pierce <pierce@hogranch.com>
2014-09-30 19:26 ` Paul Dasari <pdasari@mdsol.com>
2014-09-30 19:34 ` John R Pierce <pierce@hogranch.com>
2014-09-30 19:55 ` Paul Dasari <pdasari@mdsol.com>
2014-09-30 20:10 ` John R Pierce <pierce@hogranch.com>
2014-09-30 20:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-09-30 20:49 ` Paul Dasari <pdasari@mdsol.com>
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