Thursday, 2009-08-06

*** dyki has joined #ingres00:00
*** DarylM has joined #ingres00:01
pborodamn it's slow to COPY a table with a lot of LONG VARCHARs, even they don't contain a lot of data01:18
Alex|every long varchar adds an overhead of reading another page...01:51
Alex|for smaller lobs this will change when Ingres supports inline lobs01:51
*** Deyan has joined #ingres02:26
Deyangood morning, gents02:26
pboroAlex|, ahh... inline lobs, GREAT :)02:43
pboroI need 64kB varchar columns for some texts, LONG VARCHAR is simply too much for it...02:44
Alex|you can have 64k in varchar columns02:54
pboroyeah, but... page size limits :)02:55
pboroinst 64k maximum page size?02:55
Alex|since 9.2 (?) we have page spanning, which means you can have varchars that are longer than your page size02:55
pboroisn't even02:55
Alex|up to 256k02:55
pborooh :-o well, 256k is not enough still02:55
pboroI need eight of them02:55
Alex|ah, well... no I think 256k is the widest row we support currently02:56
Alex|split the table :)02:56
pboroI considered creating (id, name, value) for it, ie. break the columns in rows02:56
pborobut have not yet tried that, since it would need extra work to make sure that there's always certain rows for each ids02:57
Deyanwhy long varchar?03:07
Deyanwhy not make it a blob03:07
Deyan?03:07
*** dyki_ has joined #ingres03:07
Deyanhey dyki_ \o/03:07
Deyanlong time no see mate03:07
dyki_yo03:07
Deyan:P03:07
dyki_i have clonned somehow :D03:07
pboroDeyan, long varchar is in practice, a blob03:08
Deyanyeah03:08
pboroso it would not help03:08
*** dyki has quit IRC03:13
atrofastYeah but with blobs you wouldn't run into the page size problem03:13
atrofastSo you could have tons of long varchars on any page size :)03:15
Deyanthat is why i thought that03:15
atrofastI could be missing something... Just woke up and my brain is still booting :P03:16
pboroHmm... that's strainge, why put on arbitrary limit on clobs but not blob?03:16
pboroahh, misread... yeah, but it still wont help03:17
pborowhether it's clob or blob, it's damn slow :)03:17
pborobecause of the extra etab table and another page reading...03:17
atrofastAh well you got me there, although there is a project to improve the performance of blobs03:18
Deyani thought BLOB/TEXT columns take 9-12 bytes03:18
Deyanin the row03:18
Deyansimilar to MyISAM tables03:19
pboroDeyan, yeah, they do, it's just a "pointer" to another table which actually contains the data03:19
atrofastSeems like a long varchar actually has a width of 33 bytes03:20
Deyan33 ?03:21
Deyanwow03:21
Deyani would like to see .src.rpm for ingres packages :D03:24
Deyanare they in the svn?03:24
atrofastAs far as I know, no. You can download the source along side builds from esd.ingres.com03:34
atrofastBut it's just a tar file03:34
Deyani think i will do the CMake support for Ingres at some stage03:35
Deyanonce i have enough time for that03:36
DeyanIngres source tree is huge03:36
* atrofast thinks that's an awesome idea03:39
atrofasthave you ever done jam->cmake before?03:40
Deyannope, i am going to ignore Jam03:47
Deyancompletely03:47
Deyansure i will read jam files just to get a clue where is what03:47
atrofastAh, I think jam -dx will output the stuff you need (compile commands etc)03:50
Deyanmy first priority would actually be to make ingres build on 64bit03:52
Deyanand use only 64bit stuff03:53
Deyan:D03:53
Deyanbecause i am sick of 32bit support03:53
Deyanand installing all those prerequisities for 32bit build that i actually do not need at all03:53
Deyanin fact, we here do not have 32bit machines i think03:53
*** Gerhard has joined #ingres04:37
Deyanhello Gerhard04:49
*** DerMeister has joined #ingres04:59
GerhardHi Deyan05:03
*** rossand has joined #ingres05:31
*** ChanServ sets mode: +o rossand05:31
*** toumi01 has left #ingres05:47
*** toumi01 has joined #ingres05:58
*** DerMeister has quit IRC06:02
*** toumi01 has left #ingres06:03
*** thiagomz has joined #ingres06:08
*** toumi01 has joined #ingres06:11
*** rossand has quit IRC06:20
*** rossand has joined #ingres06:26
*** ChanServ sets mode: +o rossand06:26
rossandDeyan: I am quite interested in what you've said - 64 bit w/o 32 bit libs and cmake. If you ever decide you want to forge ahead, please ping me and I'll rally support for this. It is very worthwhile.06:32
rossandIf done right, the work to implement cmake could enable using multi-core for parallel builds. i.e. builds go a heck of a lot faster.06:33
DarylM.06:33
DarylMMy Mac OS/X 64 bit build is 64 bit only.  No 32 bit.06:35
atrofastDoes it run through the test suite without errors?06:35
DarylMHave not run the official test suite.06:36
DarylMIt is a work in progress06:36
rossandDarylM: sounds great. Might be worth trying to run the tests to expose the issues 1) with running the tests on MacOS and then 2) With the port in general06:36
DarylMI know for certain that it already >fixed< several problems with the Mac port :)06:37
rossandRunning the tests works decent on Ubuntu/Fedora/Suse 32 bit. 64 is ok I think as well though can't speak first hand myself.06:37
Deyanrossand: even more06:41
Deyancmake would enable ingres developers an excellent dashboard utility06:41
Deyanwhich i think would be very, very helpful06:41
Deyanso you can immediately see what fails to build, and where06:42
Deyandashboard is the main reason why I started using CMake long ago06:42
rossandDeyan: Sounds handy. Is it really that much better than say jam -q?06:45
Alex|I've had cases where jam -q didn't stop in case of an error - so anything that stops at an error is better ;)06:46
DarylMjam -q with other options never stops form me06:46
DarylMfor*06:46
DarylMActually, I really really dislike jam06:46
* DarylM thinks jelly is not so bad though....06:47
Deyanwww.cdash.org06:47
rossandThat's good to know. Unfortunate when a tool doesn't work (jam -q) as it should.06:49
rossandIt sounds like there are a half dozen or so people who would be interested in helping to give cmake  a go. If you guys are serious, just say so and we can create a branch to start chipping away at it.06:50
rossandIt's a pretty itchy itch to scratch.06:50
*** mull has joined #ingres07:07
Deyani can always make a branch for myself :)07:08
Deyanand make a local git out of the current tree07:08
Deyanfor personal play07:08
*** Alex| is now known as Alex|off07:10
Deyani would like to have support for ingres in PDO...07:22
*** rossand1 has joined #ingres07:23
DarylMHave at it :)07:24
*** rossand has quit IRC07:41
*** Gerhard has left #ingres07:58
*** Alex|off is now known as Alex|10:05
*** Deyan has quit IRC10:12
thiagomzguys, how can i generate a script to migrate tables from 4k to 8k ?11:20
thiagomzusermod should be a good choice, but it always execute the command...11:25
thiagomzi wanna just the script...11:25
thiagomzso after that i could use vi to replace 4096 to 8192...11:25
thiagomzcopydb !!!!11:32
thiagomzit will work11:32
pboroyeah, that will work :)11:33
atrofastthiagomz: yeah copydb should work, or you can use unloaddb which unloads everything11:37
*** Alex| is now known as Alex|off11:39
thiagomzatrofast: worked11:41
atrofastCool!11:42
thiagomzi did a select and i got the table_names11:42
thiagomzwith awk i change the columns to lines11:42
thiagomzcopydb -with_modify11:42
thiagomzvi s/4096/8192/g11:42
thiagomz;)11:42
thiagomzjust to keep in logs...11:43
thiagomzawk '{a=$0;getline;printf "%s",a,$0}' base > base-in-line11:43
thiagomzsql database -udba < copy.in | tee copy.log11:43
*** rossand1 has quit IRC12:41
*** zxiiro has joined #ingres13:23
*** ChanServ sets mode: +v zxiiro13:23
*** zxiiro has quit IRC13:43
*** zxiiro has joined #ingres13:48
*** ChanServ sets mode: +v zxiiro13:48
atrofastAny Ingres backend guru on? If I use qec_malloc(ulm) etc etc, do I have to worry about freeing that memory myself? Or is that done when the stream is closed?13:50
atrofastI assume not, I don't see it done in other places13:53
*** thiagomz_ has joined #ingres13:58
*** rossand has joined #ingres14:15
*** ChanServ sets mode: +o rossand14:15
*** thiagomz has quit IRC14:15
*** zxiiro has quit IRC14:26
*** zxiiro has joined #ingres15:01
*** ChanServ sets mode: +v zxiiro15:01
toumi01atrofast: you are correct that if you use a ulm memory stream you are freeing all the sub-allocations when you free the stream15:04
*** DarylM has quit IRC15:25
*** mull has quit IRC15:44
*** zxiiro has quit IRC15:46
atrofasttoumi01: Thanks! That's what I needed to make sure, don't want memory leaks :D15:57
*** rossand has quit IRC16:53
*** toumi01 has left #ingres20:25
*** Alex|off is now known as Alex|22:36
*** Alex| is now known as Alex|off23:04
*** Alex|off is now known as Alex|23:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!