postgres=# select pg_terminate_backend(3587);
pg_terminate_backend
----------------------
t
(1 row)
postgres=#
session1:
postgres=*> insert into t2 select generate_series(1,100000000);
INSERT 0 100000000
postgres=*> commit;
FATAL: terminating connection due to administrator command
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
postgres=>