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

Quelle  pg_class.c

  Sprache: C
 

/*-------------------------------------------------------------------------
 *
 * pg_class.c
 *   routines to support manipulation of the pg_class relation
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 *
 * IDENTIFICATION
 *   src/backend/catalog/pg_class.c
 *
 *-------------------------------------------------------------------------
 */

#include "postgres.h"

#include "catalog/pg_class.h"

/*
 * Issue an errdetail() informing that the relkind is not supported for this
 * operation.
 */

int
errdetail_relkind_not_supported(char relkind)
{
 switch (relkind)
 {
  case RELKIND_RELATION:
   return errdetail("This operation is not supported for tables.");
  case RELKIND_INDEX:
   return errdetail("This operation is not supported for indexes.");
  case RELKIND_SEQUENCE:
   return errdetail("This operation is not supported for sequences.");
  case RELKIND_TOASTVALUE:
   return errdetail("This operation is not supported for TOAST tables.");
  case RELKIND_VIEW:
   return errdetail("This operation is not supported for views.");
  case RELKIND_MATVIEW:
   return errdetail("This operation is not supported for materialized views.");
  case RELKIND_COMPOSITE_TYPE:
   return errdetail("This operation is not supported for composite types.");
  case RELKIND_FOREIGN_TABLE:
   return errdetail("This operation is not supported for foreign tables.");
  case RELKIND_PARTITIONED_TABLE:
   return errdetail("This operation is not supported for partitioned tables.");
  case RELKIND_PARTITIONED_INDEX:
   return errdetail("This operation is not supported for partitioned indexes.");
  default:
   elog(ERROR, "unrecognized relkind: '%c'", relkind);
   return 0;
 }
}

Messung V0.5 in Prozent
C=97 H=100 G=98

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