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

Quelle  tablesample.c

  Sprache: C
 

/*-------------------------------------------------------------------------
 *
 * tablesample.c
 *    Support functions for TABLESAMPLE feature
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 *
 * IDENTIFICATION
 *    src/backend/access/tablesample/tablesample.c
 *
 * -------------------------------------------------------------------------
 */


#include "postgres.h"

#include "access/tsmapi.h"


/*
 * GetTsmRoutine --- get a TsmRoutine struct by invoking the handler.
 *
 * This is a convenience routine that's just meant to check for errors.
 */

TsmRoutine *
GetTsmRoutine(Oid tsmhandler)
{
 Datum  datum;
 TsmRoutine *routine;

 datum = OidFunctionCall1(tsmhandler, PointerGetDatum(NULL));
 routine = (TsmRoutine *) DatumGetPointer(datum);

 if (routine == NULL || !IsA(routine, TsmRoutine))
  elog(ERROR, "tablesample handler function %u did not return a TsmRoutine struct",
    tsmhandler);

 return routine;
}

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

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