I have the trigger in SQL Server database which extract a plain text from rtf field and store it in other field
update table set plaintxt=dbo.gettextfrom_rtf(rtf_field) where id=ID;
I use SQLCLR function dbo.gettextfrom_rtf, it is my c# extractor.
How I can do it in PostgreSQL trigger? I.e. How to implement RTF->plain text in PostgreSQL function?