that Id refers to 'name' column that I need. There still is FK on it, so basically it is broken inside transaction, from trigger's perspective. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general