diff options
Diffstat (limited to 'src/backend/commands/define.c')
-rw-r--r-- | src/backend/commands/define.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 1409c1d2881..74e32625b66 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.3 1996/10/31 09:07:41 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.4 1996/11/02 02:01:48 bryanh Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -34,19 +34,16 @@ */ #include <string.h> #include <ctype.h> -#include <math.h> #include <postgres.h> #include <access/heapam.h> -#include <access/htup.h> #include <utils/tqual.h> #include <catalog/catname.h> #include <catalog/pg_aggregate.h> #include <catalog/pg_operator.h> #include <catalog/pg_proc.h> #include <catalog/pg_type.h> -#include <catalog/pg_user.h> /* superuser() uses this */ #include <utils/syscache.h> #include <nodes/pg_list.h> #include <nodes/parsenodes.h> @@ -66,24 +63,6 @@ static int defGetTypeLength(DefElem *def); #define DEFAULT_TYPDELIM ',' -bool -superuser(void) { -/*-------------------------------------------------------------------------- - The Postgres user running this command has Postgres superuser - privileges. ---------------------------------------------------------------------------*/ - HeapTuple utup; - char *userName; - - userName = GetPgUserName(); - utup = SearchSysCacheTuple(USENAME, PointerGetDatum(userName), - 0,0,0); - Assert(utup != NULL); - return ((Form_pg_user)GETSTRUCT(utup))->usesuper; -} - - - void case_translate_language_name(const char *input, char *output) { /*------------------------------------------------------------------------- |