mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Major code cleanups from D'arcy (-Wall -Werror)
This commit is contained in:
@@ -12,8 +12,11 @@
|
||||
#ifndef GIST_H
|
||||
#define GIST_H
|
||||
|
||||
#include "utils/rel.h"
|
||||
#include "storage/off.h"
|
||||
#include "storage/block.h"
|
||||
#include "storage/bufpage.h"
|
||||
|
||||
#include "access/skey.h"
|
||||
|
||||
/*
|
||||
** You can have as many strategies as you please in GiSTs, as
|
||||
@@ -146,4 +149,5 @@ extern void gistdentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr,
|
||||
Relation r, Page pg, OffsetNumber o, int b, bool l) ;
|
||||
extern void gistcentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr,
|
||||
Relation r, Page pg, OffsetNumber o, int b, bool l) ;
|
||||
extern StrategyNumber RelationGetGISTStrategy(Relation, AttrNumber, RegProcedure);
|
||||
#endif /* GIST_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: iqual.h,v 1.1 1996/08/27 21:50:16 scrappy Exp $
|
||||
* $Id: iqual.h,v 1.2 1996/10/23 07:41:27 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "storage/itemid.h"
|
||||
#include "utils/rel.h"
|
||||
#include "access/skey.h"
|
||||
#include "access/itup.h"
|
||||
|
||||
/* ----------------
|
||||
* index tuple qualification support
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nbtree.h,v 1.1 1996/08/27 21:50:19 scrappy Exp $
|
||||
* $Id: nbtree.h,v 1.2 1996/10/23 07:41:29 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -23,6 +23,10 @@
|
||||
#include "access/relscan.h"
|
||||
#include "access/sdir.h"
|
||||
#include "nodes/pg_list.h"
|
||||
#include "storage/page.h"
|
||||
#include "storage/bufpage.h"
|
||||
#include "storage/item.h"
|
||||
#include "utils/memutils.h"
|
||||
|
||||
/*
|
||||
* BTPageOpaqueData -- At the end of every page, we store a pointer
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: relscan.h,v 1.2 1996/10/19 06:27:08 scrappy Exp $
|
||||
* $Id: relscan.h,v 1.3 1996/10/23 07:41:30 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -14,11 +14,9 @@
|
||||
#define RELSCAN_H
|
||||
|
||||
#include "utils/tqual.h"
|
||||
#include "utils/rel.h"
|
||||
#include "storage/buf.h"
|
||||
|
||||
|
||||
|
||||
|
||||
typedef ItemPointerData MarkData;
|
||||
|
||||
typedef struct HeapScanDescData {
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: transam.h,v 1.1 1996/08/27 21:50:26 scrappy Exp $
|
||||
* $Id: transam.h,v 1.2 1996/10/23 07:41:31 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Transaction System Version 101 now support proper oid
|
||||
@@ -17,6 +17,10 @@
|
||||
#ifndef TRANSAM_H
|
||||
#define TRANSAM_H
|
||||
|
||||
#include "utils/nabstime.h"
|
||||
#include "utils/rel.h"
|
||||
#include "storage/bufmgr.h"
|
||||
|
||||
/* ----------------
|
||||
* transaction system version id
|
||||
*
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nodeIndexscan.h,v 1.1 1996/08/28 07:22:20 scrappy Exp $
|
||||
* $Id: nodeIndexscan.h,v 1.2 1996/10/23 07:41:34 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -29,4 +29,5 @@ extern bool ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent);
|
||||
|
||||
extern int ExecCountSlotsIndexScan(IndexScan *node);
|
||||
|
||||
extern void ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan* parent);
|
||||
#endif /* NODEINDEXSCAN_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tuptable.h,v 1.1 1996/08/28 07:22:28 scrappy Exp $
|
||||
* $Id: tuptable.h,v 1.2 1996/10/23 07:41:36 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* The tuple table interface is getting pretty ugly.
|
||||
@@ -17,6 +17,9 @@
|
||||
#ifndef TUPTABLE_H
|
||||
#define TUPTABLE_H
|
||||
|
||||
#include "access/htup.h"
|
||||
#include "access/relscan.h"
|
||||
|
||||
/* ----------------
|
||||
* Note: the executor tuple table is managed and manipulated by special
|
||||
* code and macros in executor/execTuples.c and tupTable.h
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: libpq.h,v 1.2 1996/10/20 21:51:45 scrappy Exp $
|
||||
* $Id: libpq.h,v 1.3 1996/10/23 07:41:41 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This file contains definitions for structures and
|
||||
@@ -19,6 +19,10 @@
|
||||
#ifndef LIBPQ_H
|
||||
#define LIBPQ_H
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include "libpq/pqcomm.h"
|
||||
|
||||
/* ----------------
|
||||
* PQArgBlock --
|
||||
* Information (pointer to array of this structure) required
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: pqcomm.h,v 1.2 1996/10/11 09:12:18 bryanh Exp $
|
||||
* $Id: pqcomm.h,v 1.3 1996/10/23 07:41:47 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Some of this should move to libpq.h
|
||||
@@ -16,7 +16,9 @@
|
||||
#ifndef PQCOMM_H
|
||||
#define PQCOMM_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: execnodes.h,v 1.3 1996/10/20 06:35:07 scrappy Exp $
|
||||
* $Id: execnodes.h,v 1.4 1996/10/23 07:41:56 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "nodes/params.h"
|
||||
#include "access/sdir.h"
|
||||
#include "access/funcindex.h"
|
||||
#include "executor/hashjoin.h"
|
||||
#include "nodes/primnodes.h"
|
||||
#include "nodes/memnodes.h"
|
||||
|
@@ -6,13 +6,17 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: primnodes.h,v 1.3 1996/10/19 04:48:30 scrappy Exp $
|
||||
* $Id: primnodes.h,v 1.4 1996/10/23 07:42:02 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef PRIMNODES_H
|
||||
#define PRIMNODES_H
|
||||
|
||||
#include "nodes/pg_list.h"
|
||||
#include "nodes/nodes.h"
|
||||
#include "access/attnum.h"
|
||||
|
||||
#include "utils/fcache.h"
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: bufpage.h,v 1.4 1996/10/20 06:35:16 scrappy Exp $
|
||||
* $Id: bufpage.h,v 1.5 1996/10/23 07:42:07 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "storage/itemid.h"
|
||||
#include "storage/item.h"
|
||||
#include "storage/buf.h"
|
||||
#include "storage/page.h"
|
||||
#include "storage/off.h"
|
||||
|
||||
/*
|
||||
@@ -72,7 +73,6 @@
|
||||
* initialize its pages with PageInit and then set its own opaque
|
||||
* fields.
|
||||
*/
|
||||
typedef Pointer Page;
|
||||
|
||||
/*
|
||||
* PageIsValid --
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tqual.h,v 1.2 1996/10/20 06:35:27 scrappy Exp $
|
||||
* $Id: tqual.h,v 1.3 1996/10/23 07:42:13 scrappy Exp $
|
||||
*
|
||||
* NOTE
|
||||
* It may be desirable to allow time qualifications to indicate
|
||||
@@ -18,6 +18,7 @@
|
||||
#define TQUAL_H
|
||||
|
||||
#include "utils/nabstime.h"
|
||||
#include "access/htup.h"
|
||||
|
||||
typedef struct TimeQualSpace {
|
||||
char data[12];
|
||||
|
Reference in New Issue
Block a user