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

Quelle  deparse_utility.h

  Sprache: C
 

/*-------------------------------------------------------------------------
 *
 * deparse_utility.h
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/include/tcop/deparse_utility.h
 *
 *-------------------------------------------------------------------------
 */

#ifndef DEPARSE_UTILITY_H
#define DEPARSE_UTILITY_H

#include "access/attnum.h"
#include "catalog/objectaddress.h"
#include "nodes/nodes.h"
#include "utils/aclchk_internal.h"


/*
 * Support for keeping track of collected commands.
 */

typedef enum CollectedCommandType
{
 SCT_Simple,
 SCT_AlterTable,
 SCT_Grant,
 SCT_AlterOpFamily,
 SCT_AlterDefaultPrivileges,
 SCT_CreateOpClass,
 SCT_AlterTSConfig,
} CollectedCommandType;

/*
 * For ALTER TABLE commands, we keep a list of the subcommands therein.
 */

typedef struct CollectedATSubcmd
{
 ObjectAddress address;  /* affected column, constraint, index, ... */
 Node    *parsetree;
} CollectedATSubcmd;

typedef struct CollectedCommand
{
 CollectedCommandType type;

 bool  in_extension;
 Node    *parsetree;

 union
 {
  /* most commands */
  struct
  {
   ObjectAddress address;
   ObjectAddress secondaryObject;
  }   simple;

  /* ALTER TABLE, and internal uses thereof */
  struct
  {
   Oid   objectId;
   Oid   classId;
   List    *subcmds;
  }   alterTable;

  /* GRANT / REVOKE */
  struct
  {
   InternalGrant *istmt;
  }   grant;

  /* ALTER OPERATOR FAMILY */
  struct
  {
   ObjectAddress address;
   List    *operators;
   List    *procedures;
  }   opfam;

  /* CREATE OPERATOR CLASS */
  struct
  {
   ObjectAddress address;
   List    *operators;
   List    *procedures;
  }   createopc;

  /* ALTER TEXT SEARCH CONFIGURATION ADD/ALTER/DROP MAPPING */
  struct
  {
   ObjectAddress address;
   Oid     *dictIds;
   int   ndicts;
  }   atscfg;

  /* ALTER DEFAULT PRIVILEGES */
  struct
  {
   ObjectType objtype;
  }   defprivs;
 }   d;

 struct CollectedCommand *parent; /* when nested */
} CollectedCommand;

#endif       /* DEPARSE_UTILITY_H */

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

¤ 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.