arkhipov / temporal_tables

Temporal Tables PostgreSQL Extension
BSD 2-Clause "Simplified" License
935 stars 47 forks source link

Is the DELETE Trigger in the readme text correct #46

Open ThorkilG12 opened 5 years ago

ThorkilG12 commented 5 years ago

Hi

In the very last part of the readme one can see this: BEFORE DELETE ON employees_history

but is it not so, that one never deletes from the history table ?

The trigger should be triggered when someone deletes a row from Employee and when that happenes, then a row should be written in the History table, where the username who deleted the row should also exist?