Thursday, 2009-02-26

*** rossand has quit IRC01:44
*** mc349 has quit IRC03:05
*** Alex|off is now known as Alex|07:05
*** notdefault is now known as withdefault07:09
*** grantc_offline is now known as grantc07:15
*** Alex| is now known as Alex|off07:42
pborohmm... is it possible to put newlines in SELECT? like... SELECT "User: " || TRIM(effective_user) || "\n" || "...?08:02
pboroTrying to write a simple sessions listing script08:03
grantcpboro, i believe so since people have used them to format "create proc"08:04
pboroI just have to figure out the syntax then...08:04
pborohmmh, looks like sql/tm replaces the newline with "\n" in the output08:21
pboroinsert into test values (?Hello world?+x?0a?);08:25
pborothat's from the manual... but it doesn't work :-o08:26
pborohttp://docs.ingres.com/Ingres/9.2/SQL%20Reference%20Guide/terminalmonitorcharacterinputoutput.htm08:28
pborodoes that work for someone?08:28
pboroah, it does work in isql08:29
pboroand sql, but it converts it into \n when outputin :D08:29
pborodamnit...08:29
grantcperhaps its a bug?08:30
pboroI guess it's just a way how sql & isql works, they convert any \n into string \n in output instead of printing newline08:30
pboroI can replace those \n's with real \n's using sed, so...08:31
pboroerr... sql/tm is too primitive for this, I guess I have to write a C program anyway08:34
withdefaultyou could write it in a scripting language that has an Ingres driver08:36
pboroI wanted to keep it simple (just a sh script), but it looks like I need to use Python or similar08:37
pboroI have never written a python script, maybe this is the day to begin :)08:38
pborooh wait, wasn't there perl driver too08:38
withdefaultyes - I've not used that before08:39
grantcpboro, yes there is but it's behind in terms of support for ingres compared to the other drivers08:39
pborohm :/ I'll try the perl driver first to see if it's enough08:41
pborodated 2004... oh well, Ingres isn't that new either08:41
grantcdo you do stuff with unicode?08:42
pboronope, I will just poke around imadb :) I'm creating some administrative scripts08:42
grantci guess you should be fine there (unless you come across any bigints :))08:43
pboroah, Stefan Reddig has taken care of DBD-Ingres in 2008 and done some updates to the driver08:43
pborohttp://search.cpan.org/dist/DBD-Ingres/08:43
grantcyup - i see he fixed the 64 bit issue08:45
pboroquite a lot of compiler warnings for such a small program :D08:55
grantci am sure he accepts patches :)08:56
pboropart of the code is generated from Ingres (.sc), I guess that's something that can't be fixed in the driver08:56
grantcperhaps08:57
grantcfor those that know C, are there any alternatives to atoi() that are platform agnostic?09:09
pboroplatform agnostic in what way? :)09:10
withdefaultwhat's wrong with atoi()?09:10
grantcnothing at the moment09:10
pboroit's part of ISO C anyway09:10
grantcin that case it stays, I have not got as far as testing my code on windows/solaris09:11
pborothere are some problems with atoi tho', for example it doesn't provide any useful error indicators and it may not perform too well09:12
grantcthis is code that only gets executed with an ini_set(), invoked from user land09:13
pborookay, then the performance is not a question here :)09:13
grantcwell kind of, i am replacing a conditional check on every ingres_query() with atoi() in ini_set...09:14
pborooh...09:14
grantchttp://lists.ingres.com/pipermail/ip-os-drivers/2009-February/000147.html309:14
grantchttp://lists.ingres.com/pipermail/ip-os-drivers/2009-February/000147.html09:14
grantceven..09:15
grantcif you pepper your PHP code with ini_set() then this code will get invoked but that's your problem so to speak09:19
grantcwithdefault, the dynamic cache feature does it work with views?10:05
withdefaultif the view is included in the query, then I don't see why not10:07
grantcok thanks - there is some guy on twitter who is having some problems10:08
withdefaultcheck if they're using prepared queries10:09
grantcyup, already there...10:09
grantcdoes hibernate use prepared queries by default?10:14
withdefaultI think it does10:14
grantcok - now to work out how to get him to enable cache dynamic in a tweet10:15
*** bonro011 has joined #ingres11:33
*** bonro01 has quit IRC11:33
*** troal01 has joined #ingres11:54
*** troal01 has quit IRC11:57
*** troal01 has joined #ingres12:01
troal01ATI + Linux = bad combo12:01
pboroin some cases, yes :)12:06
pborograntc, session_id in ima is bigint? :(12:25
pboroah, no, it's just varchar(32)12:25
grantci would have thought that some of the stats tables use i8 but it would appear not12:26
grantcperhaps the underlying types in ingres are i4 still?12:27
pborothey are varchars mostly :)12:27
pboroyeah prolly12:27
grantcfor session id sure since it could be a hex val12:27
pboroin ima table it's integer12:28
pboroI need to do HEX() on it to get the hex value which is shown by IPM12:28
grantcah there you go12:29
pborointeger in varchar column is funny, but doesn't matter here :)12:29
pboroAny tips what does "577" stand for in session string "1DFC8100:577"?12:30
grantcthread id?12:30
pborocould be... good tip, I'll check that12:30
pboroyeah, seems so since it's unique12:31
troal01In Ingres I can do a CREATE TABLE AS SELECT correct, but is there anything that will MOVE the data from the old table to the new?12:37
grantctroal01, no12:37
troal01AWw12:37
grantcif you are looking to rename a table, no, if you want to move sections of data no12:38
grantcthe former could be done via hacking the system catalogs12:39
troal01I'd rather not hack it12:39
*** troal01 has quit IRC12:42
*** rossand has joined #ingres13:01
*** ChanServ sets mode: +o rossand13:01
*** rossand has quit IRC13:08
*** troal01 has joined #ingres13:17
*** rossand has joined #ingres13:20
*** ChanServ sets mode: +o rossand13:20
pboroE_US1400 Natural join syntax is not yet supported.13:38
pborodoh :D13:38
troal01Blah I can't re-enable desktop effects... Something is off with my ATI drivers I think13:54
troal01It used to work13:54
pboroHere's something I quickly wrote on my coffee break: http://pauli.borodulin.fi/misc/ingres/ima_sessions-v1.0.pl14:07
*** mull_ has joined #ingres14:24
withdefaultand for your next project you can use the queries here http://blogs.planetingres.org/notnull/2006/06/08/ima-guru-pronounced-im-a-guru-i-definitely-am-not/ ;)14:25
elPiolawithdefault, if I'm ever allowed to let go of VMS, I'm supposed to claim responsibility for IMA (I had started but the VMS vortex pulled me back)14:35
pborowithdefault, thanks for the tip :) I'll bookmark that14:40
withdefaultelPiola, that's a shame - I understand the concept of the code vortex, but they never seem to die instead they seem to grow in number14:40
pboroah... DBD-Ingres: "dbdimp.sc", line 745: warning: implicit function declaration: Newx14:46
pboroany tips what Newx is?14:46
elPiolawithdefault, the only hope is that since the associated hardware (at least Alpha and certainly VAX) is dying, the code vortex loses its strength as well14:46
pboroah, Perl version difference :)14:50
pboroDBD-Ingres requires Perl 5.8.814:50
pboroit's not mentioned anywhere tho'14:51
pboroI'll drop an email about it :)14:51
*** DarylM has joined #ingres14:52
elPiolawithdefault, how come the tags in your blog don't work?14:55
withdefaultI don't know - I'll have to speak with the admin14:56
elPiolacorrection: the tags in the tag cloud work, it's just that IMA article's tags that aren't actually tags14:58
withdefaultAh, they may have been added prior to the blog software being updated15:04
withdefaultyup - they're in the body of the post - I've manually added them now15:12
pboroah, figured it out...15:28
grantcelPiola, getting what we have in IMA documented would be a start :)15:33
pborograntc, http://www.nntp.perl.org/group/perl.dbi.users/2009/02/msg33698.html15:34
pborograntc, the problem is that DBD-Ingres requires Perl 5.8.8 because of the use of Newx function15:34
pborograntc, Newx was New (with slightly different parameters) before 5.8.815:34
grantcdrop an email to the maintainer15:34
pboroI did file a bug, I couldn't find maintainers email anywhere15:35
grantcor perhaps it can be fixed with a ifdef?15:35
pboroprolly, don't know since I have no knowledge on programming Perl modules15:35
grantcthere is a community driver email for ingres...15:36
pborohttp://rt.cpan.org/Public/Bug/Display.html?id=4366215:37
grantccommunity.drivers@15:38
troal01pboro: Stefan Reddig is the DBD-Ingres maintainer I believe: Stefan.Reddig@ingres.com15:42
pborotroal01, ok, thanks. I guess he'll get the message from the CPAN's bug tracker too, tho'15:43
pboroat least I hope so, since I don't see point in sending the same message through several routes :)15:43
troal01Oh no, people love getting the same information several times, make sure you call him after you've e-mailed him!15:43
pboroI'll file a bug in service desk too15:44
troal01Hehehe15:44
grantcpboro, testing driver code against multiple releases is a PITA15:51
grantcespecially multiple ingres vs multiple lang15:51
pboroI can imagize :)15:52
grantcthen producing DLLs for windows... the release process for the PHP driver lasts 1 day from the last commit...15:53
pboro:D15:54
*** mull_ has quit IRC16:44
*** bonro011 has left #ingres16:57
*** bonro01 has joined #ingres16:57
*** DerMeister has joined #ingres17:08
grantcSlimeyPete, the latest incantation of the docs for the php extension can be found at http://croker.net/~grant/ingres-doc/19:03
grantcalso CVS has version 2.1.0 which will be release tomorrow19:03
grantcreleased even19:03
pborograntc, it's nice to see someone doing so much good work on the PHP driver :)19:04
troal01grantc: Do you have release notes for php 2.1.0?19:08
troal01pboro: that makes two of us :)19:08
grantcrelease notes are the same as 2.0.2 with the following applied s/2.0.2/2.1.0/g  :)19:13
grantcif its the CHANGELOG you are looking for.... http://cvs.php.net/viewvc.cgi/pecl/ingres/CHANGELOG?revision=1.58&view=co19:13
troal01Did you ever get a chance to investigate that issue I was having?19:19
*** Alex|off is now known as Alex|20:56
*** Alex| is now known as Alex|off21:05
*** DerMeister has quit IRC21:23
*** rossand has quit IRC21:55
pboroerr... http://community.ingres.com/wiki/Ingres_2006_Release_4_Update_122:12
pborowhy does that page look like that?22:12
SlimeyPete:o NOW WE KNOW THEY USE ARRAYS IN THEIR WEBSITE!22:15
pboro...22:15
pborothe point was that there is prolly something else too :D22:15
pboroor at least I would expect... oh well22:15
*** perftuning has joined #ingres22:25
*** DarylM has quit IRC22:50
*** mull_ has joined #ingres23:27

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