Thursday, 2009-05-14

*** clach04 has quit IRC02:03
*** atrofast1 has joined #ingres02:22
atrofast1Anyone still awake? Is there any way to check in Ingres how much size a table takes on the disk?02:23
atrofast1I guess #pages x page size would tell me?02:24
*** atrofast1 has quit IRC05:23
*** Alex|off is now known as Alex|06:16
*** janschi has joined #ingres06:54
*** withdefault has quit IRC06:58
*** Alex| is now known as Alex|off06:58
*** janschi has quit IRC06:59
*** Alex|off is now known as Alex|07:12
*** grantc_offline has quit IRC07:33
*** grantc has joined #ingres07:34
*** withdefault has joined #ingres07:35
*** ChanServ sets mode: +o grantc07:35
*** ChanServ sets mode: +o withdefault07:35
*** eriksnoeijs has joined #ingres08:03
*** Alex| is now known as Alex|off08:32
*** Alex|off is now known as Alex|08:41
*** MagnusG| has joined #ingres09:04
*** Alex| is now known as Alex|off09:14
*** Alex|off is now known as Alex|09:17
withdefaultHi All, Anyone here planning to attend the UK IUA on June 9?09:17
MagnusG|Our company will be represented by my colleague Kenneth who will give a presentation about OpenROAD and XML. Looking at the agenda I'd love to be there but no chance.09:29
MagnusG|The good thing is that I wan't have to choose between listening to Peter Gale on trace point sc930 and the Ingres Roadmap discussion :-)09:31
grantcperhaps someone can give us a live feed of the roadmap discussion09:35
grantc:)09:35
* withdefault wonders if I can type that fast09:55
* grantc knows that withdefault is good at taking notes :)09:57
grantcor setup a twitter account ?09:57
*** PaulM05 has joined #ingres10:20
eriksnoeijssorry for the beginners question, but i've just got ingres running and wanted to do some queries on the demodb. So i fired up isql and had no idea what to do next. I tried SHOW TABLES; But i guess that's a mysql only thing perhaps.10:25
eriksnoeijsah, nevermind.  I should have googled some more.10:26
eriksnoeijsor just have listened to my instincts and typed in HELP :)10:27
grantchi eriksnoeijs - glad you got ingres working in the end :)10:28
eriksnoeijsyeah. your help was very much appriciated.10:29
grantcnp10:29
*** atrofast has quit IRC10:43
Alex|is there a list of reserved keywords in Ingres?12:05
Alex|customer tried to create table test (tid integer) - which did not work because of tid... now he's asking what other keywords he needs to know of12:06
grantcAlex|, i think tid is the only one...12:06
grantcyou can have "create table table (integer integer not null...)12:07
Alex|yeah, context sensitve parser... but are there other cases like the one above?12:07
grantctid is the only exception since it is an actual column, hidden as you probably know12:07
grantcnot that i am aware of12:08
Alex|I guess as long as he doesn't try to create ii_ tables...12:08
grantcE_US13FC CREATE TABLE: Illegal tablename 'ii_table'. 'ii' is reserved for system catalogs.12:08
Alex|yup12:08
grantccreate table tid (integer integer not null)\g is valid12:08
PaulM05is that on the forums - I just responded to that12:15
grantcAlex|, is that your sock puppet? ;)12:16
Alex|link?12:16
grantchttp://community.ingres.com/forum/migration-forum/2613-how-escape-reserved-words-column-names.html#post1012112:17
Alex|ah hehe... yeah, that's the one :)12:17
Alex|impatient guy...12:17
PaulM05kicker is the customer?12:18
Alex|yes12:18
PaulM05there are lists of reserved words in the back of the SQL Guide IIRC12:18
PaulM05yep - Appendix A Keywords12:19
grantcPaulM05, with the syntax sensitive parser it should be less of an issue now, with the exception of "tid" right?12:19
Alex|well, he don't really needs it... he's got an existing schema and fears that half of his column and table names are reserved12:19
PaulM05yes it should12:19
PaulM05there used to be a script that checked for reserved words12:20
eriksnoeijshmm. I was toying around a bit and got caught by the following. I'm using the PHP module to talk to ingres and was getting some errors because of that the close function never got called. Then after some mucking about i could no longer connect because the user  limit was exceeded.12:25
PaulM05KB doc 265156 for those with ServiceDesk access - but shouldn't be needed now for reasons given by Grant12:25
eriksnoeijsSo am i correct to assume that ingres session don't close by themselves?12:25
grantceriksnoeijs, ingres_connect() or ingres_pconnect() ?12:25
eriksnoeijsingres_connect()12:26
grantcthey should be closed at the end of the request12:26
eriksnoeijshmmm, well apparently it doesnt. It was however spouting warnings about not being able to close because of active queries.12:27
grantcin fact when the connect resource is freed12:27
eriksnoeijsWas trying inserts.12:27
grantchmm - which release of the driver do you have?12:27
grantcthe driver forces a close at the end of a page request unless the connection is persistent12:27
eriksnoeijsingres extension version: 2.1.0   revision 1.14   openAPI version 612:28
grantchmmm12:28
grantcapache2-prefork or mpm?12:29
grantcnot that it should make much difference...12:29
grantcok - can you paste some code into http://ingres.pastebin.com ?12:33
grantcusing http://ingres.pastebin.com/f7565ff1f i cannot see the sessions stick around12:34
eriksnoeijsI think preform, not sure just installed the default ubuntu LAMP stack. didn't pay much attention.  I'll try the code, just a moment.12:37
grantcprefork is what i used, partly because mpm is not recommended12:38
*** PaulM05 has quit IRC12:39
*** atrofast has joined #ingres12:39
*** PaulM05 has joined #ingres12:40
grantchello atrofast12:40
eriksnoeijsthis was my code.  http://ingres.pastebin.com/d50cec3b4    It failed on the insert because of the missing ID.12:41
eriksnoeijsYour code worked. (after restarting ingres to get some new/free sessions)12:42
*** toumi01 has joined #ingres12:44
atrofastMorning grantc12:47
atrofastJust on for a couple of minutes, then I gotta jet again12:47
grantcno problem - good news/bad news re drupal12:48
grantcwhich one do you want first :)12:48
atrofastGood news12:49
grantci think i know what the problem is12:49
atrofastThat's great :) so what's the bad news?12:49
grantcits going to be a real b1tch to fix12:49
atrofastOuch!12:49
atrofastWill you need some assistance?12:49
grantcperhaps...12:50
grantci can get the installer to complete when i run apache through valgrind12:50
grantcbut i get some interesting messages - writing to memory that was freed12:50
grantcit has to do with the result resources and how they are cleared up.. obviously not very well :(12:52
atrofastInteresting12:53
atrofastI love those errors :P12:53
atrofastCan Valgrind pinpoint which pointer it is?12:53
grantceriksnoeijs, i get http://ingres.pastebin.com/d62bc59712:53
atrofastCan I modified Drupal to work around it somehow you thin?12:54
grantcits the result resource in general12:54
grantcnot sure you can12:54
grantceriksnoeijs, my output is a bit more verbose since i have xdebug installed but i see the error you get12:55
atrofastOkay thanks grantc. I've gotta run, drop me an email if you want me to look at something in code to help you out12:56
eriksnoeijsWell my problem is not in so much that my code is faulty. Heck most of the time i expect my code to be faulty :) However the fact that ingres did not release the user session could be a bit of a bad point.12:56
*** atrofast has left #ingres12:56
grantceriksnoeijs, good point - there are two bugs there, the non-freeing of the session and the way describe input failed.12:56
grantcam going to try out head revs...12:57
grantcnot much better12:58
grantccan you log a bug http://pecl.php.net/bugs/report.php?package=ingres12:58
eriksnoeijssure.12:59
PaulM05lunchtime - see you later :)13:14
*** PaulM05 has quit IRC13:14
eriksnoeijsgrantc: don't take this the wrong way. But how ready for production systems is the php ingres module? Because i can attribute a lot to the fact i've only been toying with this for a day and utterly incompetent but how stable is it?13:18
grantceriksnoeijs, sorry for not responding I was in the kitchen preparing lunch.14:21
grantcthe driver is used in production by ingres on a number of websites along with a number of clients one of which is internet facing14:21
eriksnoeijsOk. so for the most part it's just me and my supernatural ability to break stuff.  Good to know.14:23
grantci agree that there are some issues that need resolving, in particular these came about with 2.1.0 and I am working my way through them now. One problem I have is that I don't have an extensive test suite. Problems like yours only come about by people using the driver.14:23
eriksnoeijsfair enough, i'm going to assume you have a day job as well :)14:24
grantcit is my day job :)14:24
grantcthat along with general ingres community activities and maintaining the ruby driver14:25
grantceach of which can be a full time job on its own14:25
eriksnoeijsah, lol. well that's also good to know. For one thing ingres has really shown its good side with a active community.14:25
grantchttp://community.ingres.com/wiki/User:Grant - my "official" bio ...14:26
grantcanyways - I will take a look at that problem with the sessions not disconnecting. It should be relatively "easy" to fix14:30
grantcright after i have lunch ...14:30
*** DarylM has joined #ingres14:39
*** eriksnoeijs has quit IRC14:44
*** PaulM05 has joined #ingres14:58
*** Alex| is now known as Alex|off15:15
*** Alex|off is now known as Alex|15:40
*** Alex| is now known as Alex|off15:48
*** DerMeister has joined #ingres16:09
*** clach04 has joined #ingres16:41
*** eriksnoeijs has joined #ingres17:21
*** yoeljacobsen1 has joined #ingres17:26
yoeljacobsen1Hello17:26
yoeljacobsen1Is there a way to script user creation inside an SQL script as I can in other DBMS? CONNECT isn't available in interactive SQL and I must be connected to iidbdb in order to CREATE USER ...17:27
grantcthat's correct you need to be connected to iidbdb to create a user...17:28
yoeljacobsen1Can I switch databases within a single sql session? Otherwise17:34
yoeljacobsen1I'll need to use two scripts..17:34
*** Alex|off is now known as Alex|17:35
PaulM05not in terminal monitor17:36
PaulM05so yes you need two scripts17:37
yoeljacobsen1Ok. Thanks. (this is pity as Oracle, MySQL, DB2, MS-SQL ... doesn't require it..).17:50
PaulM05your welcome - I'm off now - good night17:54
*** PaulM05 has quit IRC17:54
grantcyoeljacobsen1, sure it would be good if we could connect in to a shell like the dbms engines you mention17:56
yoeljacobsen1What do you mean by "connect to a shell"? in other dbms I just can "CONNECT 'iidbdb';" from a script. Such a feature is simple and will do..18:01
grantcit is in effect a shell18:02
*** eriksnoeijs has quit IRC18:02
grantcyoeljacobsen1,  you connect to the "shell" and that in turn connects you through to the database you want with "use dbname" in the case of MySQL. Then all your commands to the shell are passed into that database. When you issue again "use dbname2" it terminates your connection to the first db then you are connected to the second db18:04
yoeljacobsen1ok. I see what you mean by shell.18:18
yoeljacobsen1ESQL in ingress allow you to EXEC SQL CONNECT and DISCONNECT though.18:18
*** withdefault has left #ingres19:06
*** MagnusG| has left #ingres20:27
*** NoeJeko has joined #ingres20:54
*** DerMeister has quit IRC22:15
*** toumi01 has left #ingres22:38
*** NoeJeko has quit IRC22:51
*** bonro011 has left #ingres23:30

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