Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
F.19. fasttrun — a transaction unsafe function to truncate temporary tables
Prev UpAppendix F. Additional Supplied Modules and Extensions Shipped inpostgrespro-std-17-contribHome Next

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

Thefasttrun 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.19.1. Function#

There is a function call example:

        select fasttruncate('TABLE_NAME');

F.19.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.19.3. Authors#


      Teodor Sigaev <teodor@sigaev.ru>
    


Prev Up Next
F.18. earthdistance — calculate great-circle distances Home F.20. file_fdw — access data files in the server's file system
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp