How to know if all insertions are finished

intmail01 <intmail01@gmail.com>

From: intmail01 <intmail01@gmail.com>
To: pgsql-sql@lists.postgresql.org
Date: 2024-03-08T12:01:11Z
Lists: pgsql-sql
Hi,

Is there any way to know if several insertion are terminated.
I use libreoffice base to import at the same time many lines. When all
lines are inserted I have to do some data check. I dont find any way to
know if the insertion ends to start some function automatically.
I tried to use a STATEMENT trigger type but all lines are treated as
statement.