ERROR: Procedures cannot take more that 16 arguments..

Hi,
I'm new to PostGres... When I created a stored function, an insert function which has 31 arguments, I recieve this error. Is this the limitation of PostGres? Or I miss somthing here?
Please do help me, thanks a lot....

Yes, if you look in the Notes section at the bottom of this page, you will see:

(from pgsql-general) As of PostgreSQL 7.2.x the maximum number of arguments that can be used in a function is 16. You can increase this limit by editing FUNC_MAX_ARGS in src/include/pg_config.h, recompile and re-initdb. Be forwarned there is little data on the performance implications on doing this.

You can probably best handle this simply by re-thinking your function. For example you might be able to make one argument as an array (http://www.postgresql.org/idocs/index.php?arrays.html), and then extract all your elements inside the function for your insert statement.

If you are having any more trouble, feel free to post your function code here, and we can suggest alternatives.