by having to include miscadmin.h into other header files.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.56 2003/01/07 22:32:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.57 2003/01/09 18:00:23 tgl Exp $
*
* NOTES
* This cruft is the server side of PQfn.
#include "catalog/pg_proc.h"
#include "libpq/libpq.h"
#include "libpq/pqformat.h"
+#include "miscadmin.h"
#include "tcop/fastpath.h"
#include "utils/acl.h"
#include "utils/lsyscache.h"
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.134 2002/12/16 16:22:46 tgl Exp $
+ * $Id: c.h,v 1.135 2003/01/09 18:00:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
typedef double float8;
/*
- * Oid, RegProcedure, TransactionId, CommandId
+ * Oid, RegProcedure, TransactionId, CommandId, AclId
*/
/* typedef Oid is in postgres_ext.h */
#define FirstCommandId ((CommandId) 0)
+typedef int32 AclId; /* user and group identifiers */
+
/*
* Array indexing support
*/
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_conversion.h,v 1.8 2002/12/04 05:18:35 momjian Exp $
+ * $Id: pg_conversion.h,v 1.9 2003/01/09 18:00:24 tgl Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#ifndef PG_CONVERSION_H
#define PG_CONVERSION_H
-#include "miscadmin.h"
-
/* ----------------
* postgres.h contains the system type definitions and the
* CATALOG(), BOOTSTRAP and DATA() sugar words so this file
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: typecmds.h,v 1.3 2003/01/06 00:31:44 tgl Exp $
+ * $Id: typecmds.h,v 1.4 2003/01/09 18:00:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TYPECMDS_H
#define TYPECMDS_H
-#include "miscadmin.h"
#include "nodes/parsenodes.h"
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.114 2002/12/09 18:21:43 tgl Exp $
+ * $Id: miscadmin.h,v 1.115 2003/01/09 18:00:24 tgl Exp $
*
* NOTES
* some of the information in this file should be moved to
extern bool SilentMode;
extern int MaxBackends;
extern int ReservedBackends;
-extern int NBuffers;
+extern DLLIMPORT int NBuffers;
extern int PostPortNumber;
extern int Unix_socket_permissions;
extern char *Unix_socket_group;
extern void SetDatabaseName(const char *name);
extern void SetDatabasePath(const char *path);
-/*
- * AclId system identifier for the user, group, etc.
- */
-typedef int32 AclId;
-
extern char *GetUserNameFromId(AclId userid);
-
extern AclId GetUserId(void);
extern void SetUserId(AclId userid);
extern AclId GetSessionUserId(void);
*
* Copyright (c) 2001, PostgreSQL Global Development Group
*
- * $Id: pgstat.h,v 1.11 2002/12/05 04:04:51 momjian Exp $
+ * $Id: pgstat.h,v 1.12 2003/01/09 18:00:24 tgl Exp $
* ----------
*/
#ifndef PGSTAT_H
#define PGSTAT_H
-#include "miscadmin.h"
-
/* ----------
* Paths for the statistics files. The %s is replaced with the
* installations $PGDATA.
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: acl.h,v 1.49 2002/12/05 04:04:51 momjian Exp $
+ * $Id: acl.h,v 1.50 2003/01/09 18:00:24 tgl Exp $
*
* NOTES
* For backward-compatibility purposes we have to allow there
#ifndef ACL_H
#define ACL_H
-#include "miscadmin.h"
#include "nodes/parsenodes.h"
#include "utils/array.h"
+/* typedef AclId is declared in c.h */
+
#define ACL_ID_WORLD 0 /* placeholder for id in a WORLD acl item */
/*