/usr/include/postgres-xc/server/pgxc/nodemgr.h is in postgres-xc-server-dev 1.1-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /*-------------------------------------------------------------------------
*
* nodemgr.h
* Routines for node management
*
*
* Portions Copyright (c) 1996-2011 PostgreSQL Global Development Group
* Portions Copyright (c) 2010-2012 Postgres-XC Development Group
*
* src/include/pgxc/nodemgr.h
*
*-------------------------------------------------------------------------
*/
#ifndef NODEMGR_H
#define NODEMGR_H
#include "nodes/parsenodes.h"
#define PGXC_NODENAME_LENGTH 64
/* GUC parameters, limit for number of nodes */
extern int MaxDataNodes;
extern int MaxCoords;
/* Global number of nodes */
extern int NumDataNodes;
extern int NumCoords;
/* Node definition */
typedef struct
{
Oid nodeoid;
NameData nodename;
NameData nodehost;
int nodeport;
bool nodeisprimary;
bool nodeispreferred;
} NodeDefinition;
extern void NodeTablesShmemInit(void);
extern Size NodeTablesShmemSize(void);
extern void PgxcNodeListAndCount(void);
extern void PgxcNodeGetOids(Oid **coOids, Oid **dnOids,
int *num_coords, int *num_dns,
bool update_preferred);
extern NodeDefinition *PgxcNodeGetDefinition(Oid node);
extern void PgxcNodeAlter(AlterNodeStmt *stmt);
extern void PgxcNodeCreate(CreateNodeStmt *stmt);
extern void PgxcNodeRemove(DropNodeStmt *stmt);
#endif /* NODEMGR_H */
|