Re: [SQL] C function extending postgres

2005-03-21 Thread Jonathan Daugherty
# I'm actually trying to use a system metrics library from # http://www-usr.inf.ufsm.br/~veiga/liblproc/index-en.html Have you added the path of the lproc library to your /etc/ld.so.conf? -- Jonathan Daugherty http://www.parsed.org ---(end of broa

Re: [SQL] C function extending postgres

2005-03-21 Thread Jonathan Daugherty
# ERROR: could not load library "/usr/lib/pgsql/processinfo.so": # /usr/lib/pgsql/processinfo.so: undefined symbol: proc_cpu_idle My guess that you're not linking against the library that containts 'proc_cpu_idle' when you build your .so. What's the b

Re: [SQL] tablename as function parameter

2005-03-20 Thread Jonathan Daugherty
r INTO _row; WHILE FOUND LOOP RETURN NEXT _row; FETCH _mycursor INTO _row; END LOOP; RETURN; END ' LANGUAGE plpgsql; If you return SETOF RECORD, you'll need to be explicit about how the return value is treated, depending on what you expect to get back from the function: mydb>

Re: [SQL] Group by 15 Minute Steps

2005-03-20 Thread Jonathan Daugherty
or other intervals. -- Jonathan Daugherty Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Replication & Support Services, (503) 667-4564 ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings