-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no postgresql support #5
Comments
Hi @yoshi314! Honestly I didn't even try it on PostgreSQL, just had a quick look at the documentation and seemed that it would work. Could you please just remove the "WITH" and try again? Just the word WITH, nothing else. And what PostgreSQL version are you running? |
removed "WITH" in DbCube.php in function prepareRollupQuery. does not work either: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "ROLLUP" running postgresql-server-9.2.15-1.el7_2.x86_64 |
postgresql-server-9.2 -> guess that's the problem. I have to double-check this, but it seems that they introduced rollups later on. This was my first hit on that friendly search engine: https://www.compose.com/articles/deeper-into-postgres-9-5-new-group-by-options-for-aggregation/ Also had a look at the documentation, it exists on the relate page for 9.5, but is missing on the one for 9.4. I'll try to find some time to test it on 9.5 and mention it as a requirement in case it works. There is not much more I can do about this right now, sorry for that. Cheers, |
i think i am on 9.6 atm. i'll see if i can alter the resulting query somehow. |
Thanks @yoshi314! I also gave it a try with 9.5, using GROUP BY ROLLUP (os) instead of GROUP BY (os) WITH ROLLUP should work fine. And makes more fun with more dimensions of course :p |
@yoshi314: could you please try the current master? I tried to push a fix for this. In case it works I'll add 9.5 as a requirement when running on PostgreSQL and publish a new release on Thursday. @das-chick: I'm sorry for you, but while all of this could also be accomplished in userspace the intention of the cube was to let the database do most of the work. So there will we no support for PostgreSQL < 9.5 right now. |
No, same thing happens. I'll have a look at the query in a few hours in my hopefully more idle work hours. |
No, same thing happens. I'll have a look at the query in a few hours in my hopefully more idle work hours. replacing the rollup bit with
seems to fix the query. e.g. by doing a rollup on vars.os from hosts i get this : "";267;22;15 Seems okay to me. |
the entire query in question, works on 9.6 for me. |
https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.5#GROUPING_SETS.2C_CUBE_and_ROLLUP documentation for the feature. |
Small mistake on my end, grouping sets is not a rollup..
|
That's what I wanted to achieve with the patch I pushed. Could you please show me the query it rendered? |
i still have the error. for some reason it doesn't detect the database as pgsql. weird. |
That's very strange. Could you please add something like... var_dump($this->connection->getDbType());
exit; ...at the beginning of the isPgsql() function or so? That's how professional debugging works ;-) |
Ok, where will i see the debug message? I am not very familiar with php. |
In the web frontend :-) As of the "exit" it will destroy your layout as soon as you choose a dimension, but at least we'll get some more information |
I have a suspicion that this function does not start at all. Layout is not messed up and i still have the old error message. |
http://imgur.com/a/wzjGJ screenshot is here |
And you are sure that you pulled the latest master? What does...
...tell when being in your cube directory? |
it says 3107867 |
Okay, i think openvz mounts are messing with me. I'll try now. |
...aaand it works fine. |
Great to hear that! Guess I'll tag a new version with official PostgreSQL support tomorrow :D |
Still no tag, we should schedule one ;-) |
I might give it a try, once i figure out all the queries the module does.
The text was updated successfully, but these errors were encountered: