*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: sdir.h,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
+ * $Id: sdir.h,v 1.2 1996/07/30 07:44:57 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
/*
* ScanDirectionIsValid --
- * True iff scan direciton is valid.
+ * True iff scan direction is valid.
*/
#define ScanDirectionIsValid(direction) \
((bool) (BackwardScanDirection <= direction && \
/*
* ScanDirectionIsBackward --
- * True iff scan direciton is backward.
+ * True iff scan direction is backward.
*/
#define ScanDirectionIsBackward(direction) \
((bool) (direction == BackwardScanDirection))
/*
* ScanDirectionIsNoMovement --
- * True iff scan direciton indicates no movement.
+ * True iff scan direction indicates no movement.
*/
#define ScanDirectionIsNoMovement(direction) \
((bool) (direction == NoMovementScanDirection))
/*
* ScanDirectionIsForward --
- * True iff scan direciton is forward.
+ * True iff scan direction is forward.
*/
#define ScanDirectionIsForward(direction) \
((bool) (direction == ForwardScanDirection))
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.1.1.1 1996/07/09 06:21:25 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.2 1996/07/30 07:45:27 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
static void EndPlan(Plan *plan, EState *estate);
static TupleTableSlot *ExecutePlan(EState *estate, Plan *plan,
Query *parseTree, CmdType operation,
- int numberTuples, int direction,
+ int numberTuples, ScanDirection direction,
void (*printfunc)());
static void ExecRetrieve(TupleTableSlot *slot, void (*printfunc)(),
Relation intoRelationDesc);
parseTree,
operation,
ALL_TUPLES,
- EXEC_FRWD,
+ ForwardScanDirection,
destination);
break;
case EXEC_FOR:
parseTree,
operation,
count,
- EXEC_FRWD,
+ ForwardScanDirection,
destination);
break;
parseTree,
operation,
count,
- EXEC_BKWD,
+ BackwardScanDirection,
destination);
break;
parseTree,
operation,
ONE_TUPLE,
- EXEC_FRWD,
+ ForwardScanDirection,
destination);
break;
default:
Query *parseTree,
CmdType operation,
int numberTuples,
- int direction,
+ ScanDirection direction,
void (*printfunc)())
{
Relation intoRelationDesc;
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execdefs.h,v 1.1.1.1 1996/07/09 06:21:25 scrappy Exp $
+ * $Id: execdefs.h,v 1.2 1996/07/30 07:45:29 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECDEFS_H
#define EXECDEFS_H
-/* ----------------
- * executor scan direction definitions
- * ----------------
- */
-#define EXEC_FRWD 1 /* Scan forward */
-#define EXEC_BKWD -1 /* Scan backward */
-
/* ----------------
* ExecutePlan() tuplecount definitions
* ----------------
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.1.1.1 1996/07/09 06:21:26 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.2 1996/07/30 07:45:31 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
* while creating the temporary relation.
* ----------------
*/
- estate->es_direction = EXEC_FRWD;
+ estate->es_direction = ForwardScanDirection;
/* ----------------
* if we couldn't create the temp or current relations then
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.1.1.1 1996/07/09 06:21:27 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.2 1996/07/30 07:45:35 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
* while creating the temporary relation.
* ----------------
*/
- estate->es_direction = EXEC_FRWD;
+ estate->es_direction = ForwardScanDirection;
/* ----------------
* if we couldn't create the temp or current relations then
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.2 1996/07/30 07:47:23 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
static HTAB *SharedBufHash;
-extern HTAB *ShmemInitHash();
-
typedef struct lookup {
BufferTag key;
Buffer id;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.1.1.1 1996/07/09 06:21:56 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.2 1996/07/30 07:47:33 scrappy Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
*/
static bool LockingIsDisabled;
-/* ------------------
- * from storage/ipc/shmem.c
- * ------------------
- */
-extern HTAB *ShmemInitHash();
-
/* -------------------
* map from tableId to the lock table structure
* -------------------
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: builtins.h,v 1.1.1.1 1996/07/09 06:22:01 scrappy Exp $
+ * $Id: builtins.h,v 1.2 1996/07/30 07:47:42 scrappy Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
in executor/executor.h*/
-extern int32 pqtest();
+extern int32 pqtest(struct varlena *vlena);
/* arrayfuncs.c */
#include "utils/array.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.1.1.1 1996/07/09 06:22:15 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.2 1996/07/30 07:47:58 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
{
static char buf[500];
- printf("%s");
+ printf("%s", prompt);
return fgets(buf, 500, stdin);
}