Friday, 2009-10-23

*** rossand has joined #ingres02:44
*** ChanServ sets mode: +o rossand02:44
Dejanultrav1olet: sql <database name> < <sql file>03:13
Dejanexample: sql mydb < commands.sql03:14
Dejanor: cat commands.sql | sql mydb03:14
Dejani think there is also a \script command03:15
ultrav1oletDejan: got that03:15
ultrav1oletright now my ingres server segfaults after start up03:16
ultrav1oletI wiped transaction log since it got full03:16
ultrav1olethow can I recreate all ingres work files?03:16
ultrav1oletwithout reinstalling it?03:16
Dejanincrease size of the LOG file03:16
Dejanby default it is very small03:17
Dejanlike 256Mb03:17
Dejanor something like that03:17
ultrav1oletright now it's 2G03:17
Dejanaha, that is good03:17
ultrav1oletright now my ingres server segfaults after start up, how can I recreate all ingres working files?03:17
Dejanwhat does it say?03:17
ultrav1olet200KB of errors03:18
Dejanjust see the last error03:19
Dejanthat would where crash-related errors will appear03:19
Dejanie. the end of file03:19
ultrav1oletthat is iicrash.log03:19
Dejanno, error.log03:19
Dejaniicrash is impossible to understand by humans :D03:20
ultrav1oletFri Oct 23 01:01:26 2009 E_DMA460_LGREAD_EOF_REACHED   The end of th03:20
ultrav1olete log file has been reached. Log record address <1256284382,22,0> is past the end (or beginning) of the log file. The log file currently contains log record03:20
ultrav1oletaddresses <1256284382,26,120> through <1256284382,32,740>.03:20
Dejanso log file is full again03:22
ultrav1olethttp://pastebin.ca/163970603:22
ultrav1oletDejan: transaction log or log file?03:22
ultrav1oletI have recreated transaction log and did nothing after that. It cannot be full03:23
Dejanthat is what buffles me03:24
Dejanare you sure you restarted ingres?03:24
ultrav1oletyes, of course03:25
ultrav1oletchecked it wasn't running with ingstatus03:25
ultrav1oletmaybe I shouldn't work with ingres-10.0.0-107-NPTL-gpl-pc-linux-i386-LONG.tgz03:25
Dejanthat is not good03:25
Dejani check with ps -aux03:25
Dejan:)03:25
ultrav1oletbut ingres-10.0.0-109-NPTL-gpl-pc-linux-i386.tgz is broken03:25
Dejani do not trust ingstatus03:25
ultrav1oletps axu showed zero ingres processes03:25
Dejani use build 109 atm03:25
Dejanok03:26
ultrav1oletit has a broken RPM inside03:26
Dejanthen i have no idea how to help you03:26
grantcultrav1olet: that release of ingres is very much an alpha release - it has partial support for longer names03:26
Dejani am an Ingres newbie myself03:26
ultrav1oletgrantc: which one should I use, then?03:26
ultrav1oletingres-9.3.0-151-NPTL-gpl-pc-linux-i386.tgz ?03:26
Vroomfondle9.3 is the latest full release. 9.2 is the more "mature" option.03:27
grantcwhat Vroomfondle says03:27
ultrav1oletok, let's purge 1003:27
grantc9.3 just got released - v10 is still being developed03:28
grantceg last id support went in yesterday/today ...03:28
Dejanomg, really?03:30
Dejanthat is good to "hear"03:30
Dejanbetter say read...03:30
Dejan:)03:30
ultrav1oletI'm going to have a 20GB database, what is the proper log size for importing such a db?03:30
grantcultrav1olet: it depends ...03:33
ultrav1olettransaction log03:33
ultrav1oletwell, with the default transaction log ingres failed importing 100MB database.03:33
ultrav1oletthat's ridiculous03:34
Dejanstrange03:34
grantcif you are importing each table from scratch you can make use of bulk load  which will avoid some of these problems03:34
Dejani am importing 3GB databases like 40 times per day03:34
Dejanand i have 2G transaction log03:34
Dejanhowever, when i try larger databases, ingres crashes03:35
Dejanso what i did is simply to split copy.in into chunks03:35
Dejanand i execute them with 10sec pause in between03:36
Dejanas i am a newbie i have no idea why, but ... it is working ;)03:36
grantchttp://docs.ingres.com/Ingres/9.3/Database%20Administrator%20Guide/bulkcopy.htm#o195903:37
Dejani have a decade of work with MySQL behind me, but when it comest to Ingres, i am still a noob03:37
ultrav1oletsame here03:37
grantcif you don't meet the conditions for a bulk copy we do an incremental copy and the trx log file gets used a lot more03:37
Dejangrantc: good to know that, thx03:38
grantcyou can load the database using "set nologging" but that is not advisable03:38
ultrav1oletI'd be glad to disable it altogether03:38
ultrav1oletgreat!03:38
ultrav1oletis this just an SQL statement before running sql db < data.sql ?03:39
grantc"set nologging" will disable it but it will make your database inconsistent if there is any problem03:39
Dejanultrav1olet: put it as the first line in data.sql03:39
ultrav1oletDejan: that's exactly what I thought03:39
grantcyou would put "set nologging" at the top of your script and "set logging" at the end to re-enable03:39
grantcsee http://docs.ingres.com/Ingres/9.3/Database%20Administrator%20Guide/largedataloadswsetnologgingstatement.htm for the "set nologgin" statement03:41
Dejanyeah03:42
Dejanand make a checkpoint after03:42
Dejan:D03:42
ultrav1oletdamn, The transaction log file is full.  The transaction will be aborted.03:49
ultrav1oletthat's with set nologging04:05
*** ultrav1olet has left #ingres04:10
Dejanselect * from ii_log where nickname = 'Dejan';\g04:44
Dejangrantc: i just got a good idea04:44
Dejanfor a bot04:44
Dejan:D04:44
grantcgo on..04:45
Dejanwhat you think about bot which actually can execute SQL statements04:45
Dejansome sort of IRC frontend for TM04:45
* grantc thinks that's dangerous 04:45
Dejaneach nickname here on this channel would get a schema04:45
grantcwhy would you need it?04:46
Dejanwith enough permissions to do common SQL stuff04:46
Dejanto learn SQL04:46
Dejanand Ingews04:46
Dejanupsy, Ingres04:46
Dejanit is not about learning SQL04:46
Dejanbut about discussions04:47
Dejanit would be similar to what #python, #minid, #lua guys have04:47
Dejanon their channels04:47
Dejan#D too04:47
grantci'll have a think about it...04:51
*** mull has joined #ingres06:30
*** grantc has quit IRC06:48
Dejanare there going to be MD5() or SHA1() functions in Ingres?08:24
*** Dejan has quit IRC08:31
*** DerMeister has joined #ingres08:40
*** Dejan has joined #ingres09:33
Dejanhello09:33
Dejananyone here?09:36
pborosure09:36
Dejanpboro: do you perhaps know if it is planned to have MD5 or SHA1 functions in Ingres?09:38
pborohaven't heard about them, but you can always implement them yourself09:38
Dejancan i? - i think i must read some documentation about it09:48
pborohttp://community.ingres.com/wiki/OME:_User_Defined_Functions09:49
DejanYAY09:50
DejanIT HAS MD5 sum as an example!09:50
Dejanwooohoooo09:50
pboroyup09:50
Dejanpage bookmarked09:53
Dejanty09:53
pboronp09:53
Dejani wonder if Ingres developers ever thought of making this even easier09:53
Dejanto actually have some sort of "repository" with all "commands"09:54
Dejanthat are in fact simple linux apps09:54
Dejanand a definition file per each "command"09:54
Dejanso whenever someone does something like select somefield, mycommand(somefield) from sometable09:55
*** bonro012 has quit IRC09:55
Dejaningres executes "mycommand" app09:55
pborothat would be really, really slow09:55
Dejansure it would09:55
*** bonro01 has joined #ingres09:55
Dejanbut user should be aware of that09:55
Dejanthis approach surely is not suitable for everything09:56
DerMeisterUsually users aren't aware of anything until they complain about it :P09:56
Dejanbut, i do not insert md5 digest of some user every millisecond09:56
Dejanor update, or check09:57
Dejanok, depends on the database09:57
Dejannaturally09:57
Dejanand nature of business09:57
Dejananyways, i need this MD5() very much09:58
Dejanbeacuse i do not want application to give me MD509:58
Dejan:)09:58
Dejanor SHA109:59
Dejandoes not really matter09:59
DarylMcd11:36
DarylMoops11:36
DarylM;-)11:37
toumi01just be careful where you type rm -rf ;)11:37
DarylMbeen there, done that11:38
DarylMPretty funny to watch a Unix system eat itself.....11:38
* DarylM ponders the results of rm -fr /11:38
* toumi01 remembers years ago there was a Solaris bug with the user admin GUI - create a user with no home directory so internally home is / - then delete that user with checkbox "delete home directory" checked ;)11:41
DarylMouch11:42
*** mull has quit IRC12:19
*** mull_ has joined #ingres12:19
*** DerMeister has quit IRC14:33
*** DarylM has quit IRC15:14
*** mull_ has quit IRC15:15
*** zxiiro has joined #ingres16:26
*** ChanServ sets mode: +v zxiiro16:26
*** rossand has quit IRC16:49
*** zxiiro has quit IRC18:03
*** cytrinox_ has joined #ingres19:20
*** cytrinox has quit IRC19:36
*** cytrinox_ is now known as cytrinox19:36

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