deny_truncate()

8.49. deny_truncate()

Function Properties

Language: PLPGSQL

Return Type: trigger

trigger function run when a replicated table receives a TRUNCATE request

	begin
		raise exception 'truncation of replicated table forbidden on subscriber node';
    end