i created a table with two integer columns and created a triggerfunction to pass inserted data to a third function to use this data as an input parameter based on the table. if i alter the table after function creation, the function becomes not aware of newly created columns.
strangly enough, after i disconnect and reconnect, the function works as expected.