Create generic Function definition in Perl

Поиск
Список
Период
Сортировка
От Jignesh Shah
Тема Create generic Function definition in Perl
Дата
Msg-id c11950270908270322l68ec34fbp38ad8d78348d0a6d@mail.gmail.com
обсуждение исходный текст
Список pgsql-novice
Hi,
 
I have written function and trigger for my table in Perl. I have many tables in my database with the variable number of columns. I want to create trigger for insert, update and delete operations for each tables but want to use the same function for all the triggers. This could only be possible if I don't hard code the column names. I referred Chapter:40.6 but couldn't find any field that returns the number of columns along with their names could be retrieved using Perl function.
 
In Perl, could any one tell me if there is any way to get the total number of columns available in table(with their names) for which trigger has invoked?
 
Thanks,
Jignesh
 
 

В списке pgsql-novice по дате отправления:

Предыдущее
От: Jignesh Shah
Дата:
Сообщение: Re: Perl trigger not working
Следующее
От: Ruzsinszky Attila
Дата:
Сообщение: Simple like filter