| Slony-I 2.2.10 Documentation | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Chapter 8. Schema schemadoc | Fast Forward | Next |
Function Properties
Language: PLPGSQL
Return Type: integer
A function that drops and recreates the log trigger on the specified table. It is intended to be used after the primary_key/unique index has changed.begin
execute 'drop trigger "_schemadoc_logtrigger" on ' ||
p_fq_table_name ;
-- ----
execute 'create trigger "_schemadoc_logtrigger"' ||
' after insert or update or delete on ' ||
p_fq_table_name
|| ' for each row execute procedure logTrigger (' ||
pg_catalog.quote_literal('_schemadoc') || ',' ||
pg_catalog.quote_literal(p_tab_id::text) || ',' ||
pg_catalog.quote_literal(p_tab_attkind) || ');';
return 0;
end