Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/backend/access/rmgrdesc/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 1 kB image not shown  

Quelle  rmgrdesc_utils.c

  Sprache: C
 

/*-------------------------------------------------------------------------
 *
 * rmgrdesc_utils.c
 *   Support functions for rmgrdesc routines
 *
 * Copyright (c) 2023-2025, PostgreSQL Global Development Group
 *
 *
 * IDENTIFICATION
 *   src/backend/access/rmgrdesc/rmgrdesc_utils.c
 *
 *-------------------------------------------------------------------------
 */

#include "postgres.h"

#include "access/rmgrdesc_utils.h"
#include "storage/off.h"

/*
 * Helper function to print an array, in the format described in the
 * README.
 */

void
array_desc(StringInfo buf, void *array, size_t elem_size, int count,
     void (*elem_desc) (StringInfo buf, void *elem, void *data),
     void *data)
{
 if (count == 0)
 {
  appendStringInfoString(buf, " []");
  return;
 }
 appendStringInfoString(buf, " [");
 for (int i = 0; i < count; i++)
 {
  elem_desc(buf, (char *) array + elem_size * i, data);
  if (i < count - 1)
   appendStringInfoString(buf, ", ");
 }
 appendStringInfoChar(buf, ']');
}

void
offset_elem_desc(StringInfo buf, void *offset, void *data)
{
 appendStringInfo(buf, "%u", *(OffsetNumber *) offset);
}

void
redirect_elem_desc(StringInfo buf, void *offset, void *data)
{
 OffsetNumber *new_offset = (OffsetNumber *) offset;

 appendStringInfo(buf, "%u->%u", new_offset[0], new_offset[1]);
}

void
oid_elem_desc(StringInfo buf, void *relid, void *data)
{
 appendStringInfo(buf, "%u", *(Oid *) relid);
}

Messung V0.5 in Prozent
C=93 H=91 G=91

¤ Dauer der Verarbeitung: 0.15 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.