Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-04 Thread iihero
Hi, In your code, only the last line "pfree(command);" is wrong. No need to put it there. Since you use the constant string for the variable command. In my test, here is the result: iihero=# select test(); INFO: 1 INFO: 2 INFO: 3 INFO: 4 INFO: 5 INFO: 6 INFO: 7 INFO:

Re: [GENERAL] Function with variables/insert/for loop problems

2012-04-04 Thread iihero
How about ... "' || table_name || '" ...? -- ~~~~~ iihero http://www.sql9.comhttp://www.sql6.com ~ -- Original -- From: "PM Support"; Date: Thu, Apr 5, 201

Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-05 Thread iihero
If possible, could you use a compiled version of PG8.4, and debug your code via attaching the server process. Thus you can get more details why it crashed in your codeline. -- Original -- From: "Vincas Dargis"; Date: Thu, Apr 5, 2012 02:09 PM To