*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.47 1999/12/12 05:15:10 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.48 1999/12/20 01:11:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#include <signal.h>
#include <sys/stat.h>
+#include <unistd.h>
#include "postgres.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: user.c,v 1.45 1999/12/16 17:24:13 momjian Exp $
+ * $Id: user.c,v 1.46 1999/12/20 01:11:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#define SQL_LENGTH 512
/*---------------------------------------------------------------------
- * UpdatePgPwdFile
+ * update_pg_pwd
*
* copy the modified contents of pg_shadow to a file used by the postmaster
* for user authentication. The file is stored as $PGDATA/pg_pwd.
*---------------------------------------------------------------------
*/
-/* This is the old name. Now uses a lower case name to be able to call this
- from SQL. */
-#define UpdatePgPwdFile() update_pg_pwd()
-
void
-update_pg_pwd()
+update_pg_pwd(void)
{
char *filename,
*tempname;
* we can be sure no other backend will try to write the flat
* file at the same time.
*/
- UpdatePgPwdFile();
+ update_pg_pwd();
/*
* Now we can clean up.
* we can be sure no other backend will try to write the flat
* file at the same time.
*/
- UpdatePgPwdFile();
+ update_pg_pwd();
/*
* Now we can clean up.
* we can be sure no other backend will try to write the flat
* file at the same time.
*/
- UpdatePgPwdFile();
+ update_pg_pwd();
/*
* Now we can clean up.
*/
if (stmt->action == 0) /* change sysid */
{
- bool sysid_exists = false;
ScanKeyData keys[2];
HeapTuple tuple;
HeapScanDesc scan;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeTidscan.c,v 1.2 1999/12/16 22:19:44 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeTidscan.c,v 1.3 1999/12/20 01:14:33 tgl Exp $
*
*-------------------------------------------------------------------------
*/
if (estate->es_evTuple != NULL &&
estate->es_evTuple[node->scan.scanrelid - 1] != NULL)
{
- int iptr, numQuals;
-
ExecClearTuple(slot);
if (estate->es_evTupleNull[node->scan.scanrelid - 1])
return slot; /* return empty slot */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.28 1999/09/24 00:24:53 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.29 1999/12/20 01:19:11 tgl Exp $
*
*-------------------------------------------------------------------------
*/
CreateExecutorState(void)
{
EState *state;
- extern int NBuffers;
/* ----------------
* create a new executor state
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.12 1999/10/11 06:28:26 inoue Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.13 1999/12/20 01:23:04 tgl Exp $
*
* NOTES
* input routine largely stolen from boxin().
if (!string) return (ItemPointer)0;
- str = textout(string);
+ str = textout((text *) string);
result = tidin(str);
pfree(str);
if (!relname) return result;
- str = textout(relname);
+ str = textout((text *) relname);
result = (ItemPointer) palloc(sizeof(ItemPointerData));
ItemPointerSetInvalid(result);
extern void AlterGroup(AlterGroupStmt *stmt, CommandDest dest);
extern void DropGroup(DropGroupStmt *stmt, CommandDest dest);
+extern void update_pg_pwd(void);
+
#endif /* USER_H */