F.20. fasttrun — a transaction unsafe function to truncate temporary tables #

The fasttrun module provides transaction unsafe function to truncate temporary tables without growing pg_class size.

This module is required for 1C Enterprise support.

Fast truncate operation is not transactional, so its results cannot be rolled back and become immediately visible in all sessions regardless of isolation level.

F.20.1. Function #

There is a function call example:

        select fasttruncate('TABLE_NAME');
      

F.20.2. Test example #

For tests you can use this example:

create or replace function f() returns void as $$
begin
  for i in 1..1000
    loop
      PERFORM fasttruncate('tt1');
    end loop;
  end;
$$ language plpgsql;
      

F.20.3. Authors #


      Teodor Sigaev 
    

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy