Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pg_user_mapping.h56 linesDownload Raw Back to catalog
1/*-------------------------------------------------------------------------2 *3 * pg_user_mapping.h4 *	  definition of the "user mapping" system catalog (pg_user_mapping)5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * src/include/catalog/pg_user_mapping.h10 *11 * NOTES12 *	  The Catalog.pm module reads this file and derives schema13 *	  information.14 *15 *-------------------------------------------------------------------------16 */17#ifndef PG_USER_MAPPING_H18#define PG_USER_MAPPING_H19 20#include "catalog/genbki.h"21#include "catalog/pg_user_mapping_d.h"22 23/* ----------------24 *		pg_user_mapping definition.  cpp turns this into25 *		typedef struct FormData_pg_user_mapping26 * ----------------27 */28CATALOG(pg_user_mapping,1418,UserMappingRelationId)29{30	Oid			oid;			/* oid */31 32	Oid			umuser BKI_LOOKUP_OPT(pg_authid);	/* Id of the user,33													 * InvalidOid if PUBLIC is34													 * wanted */35	Oid			umserver BKI_LOOKUP(pg_foreign_server); /* server of this36														 * mapping */37 38#ifdef CATALOG_VARLEN			/* variable-length fields start here */39	text		umoptions[1];	/* user mapping options */40#endif41} FormData_pg_user_mapping;42 43/* ----------------44 *		Form_pg_user_mapping corresponds to a pointer to a tuple with45 *		the format of pg_user_mapping relation.46 * ----------------47 */48typedef FormData_pg_user_mapping *Form_pg_user_mapping;49 50DECLARE_TOAST(pg_user_mapping, 4173, 4174);51 52DECLARE_UNIQUE_INDEX_PKEY(pg_user_mapping_oid_index, 174, UserMappingOidIndexId, on pg_user_mapping using btree(oid oid_ops));53DECLARE_UNIQUE_INDEX(pg_user_mapping_user_server_index, 175, UserMappingUserServerIndexId, on pg_user_mapping using btree(umuser oid_ops, umserver oid_ops));54 55#endif							/* PG_USER_MAPPING_H */56 
codekingpro/portable-devtools · Team Ai