Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/test/modules/test_resowner/sql/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 904 B image not shown  

Quelle  test_resowner.sql

  Sprache: SQL
 

CREATE EXTENSION test_resowner;

-- This is small enough that everything fits in the small array
SELECT test_resowner_priorities(23);

-- Same test with more resources, to exercise the hash table
SELECT test_resowner_priorities(232);

-- Basic test with lots more resources, to test extending the hash table
SELECT test_resowner_many(
  3,      -- # of different resource kinds
  100000-- before-locks resources to remember
  500,    -- before-locks resources to forget
  100000-- after-locks resources to remember
  500     -- after-locks resources to forget
);

-- Test resource leak warning
SELECT test_resowner_leak();

-- Negative tests, using a resource owner after release-phase has started.
set client_min_messages='warning'-- order between ERROR and NOTICE varies
SELECT test_resowner_remember_between_phases();
SELECT test_resowner_forget_between_phases();
reset client_min_messages;

Messung V0.5 in Prozent
C=92 H=95 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.