Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/backend/utils/cache/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 635 B image not shown  

Quellcode-Bibliothek test_multixact.c

  Sprache: C
 

/*--------------------------------------------------------------------------
 *
 * test_multixact.c
 *  Support code for multixact testing
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * IDENTIFICATION
 *  src/test/modules/test_slru/test_multixact.c
 *
 * -------------------------------------------------------------------------
 */


#include "postgres.h"

#include "access/multixact.h"
#include "access/xact.h"
#include "fmgr.h"

PG_FUNCTION_INFO_V1(test_create_multixact);
PG_FUNCTION_INFO_V1(test_read_multixact);

/*
 * Produces multixact with 2 current xids
 */

Datum
test_create_multixact(PG_FUNCTION_ARGS)
{
 MultiXactId id;

 MultiXactIdSetOldestMember();
 id = MultiXactIdCreate(GetCurrentTransactionId(), MultiXactStatusUpdate,
         GetCurrentTransactionId(), MultiXactStatusForShare);
 PG_RETURN_TRANSACTIONID(id);
}

/*
 * Reads given multixact.  Discards local cache to make a real read.
 */

Datum
test_read_multixact(PG_FUNCTION_ARGS)
{
 MultiXactId id = PG_GETARG_TRANSACTIONID(0);
 MultiXactMember *members;

 /* discard caches */
 AtEOXact_MultiXact();

 if (GetMultiXactIdMembers(id, &members, falsefalse) == -1)
  elog(ERROR, "MultiXactId not found");

 PG_RETURN_VOID();
}

Messung V0.5 in Prozent
C=89 H=96 G=92

¤ 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.0.12Bemerkung:  (vorverarbeitet am  2026-08-08) ¤

*Bot Zugriff






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.