mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Used modified version of indent that understands over 100 typedefs.
This commit is contained in:
contrib
src
backend
access
common
gist
hash
heap
index
nbtree
rtree
transam
bootstrap
catalog
commands
executor
execAmi.cexecFlatten.cexecJunk.cexecMain.cexecProcnode.cexecQual.cexecScan.cexecTuples.cexecUtils.cfunctions.cnodeAgg.cnodeAppend.cnodeGroup.cnodeHash.cnodeHashjoin.cnodeIndexscan.cnodeMaterial.cnodeMergejoin.cnodeNestloop.cnodeResult.cnodeSeqscan.cnodeSort.cnodeTee.cnodeUnique.cspi.c
lib
libpq
auth.cbe-dumpdata.cbe-fsstubs.cbe-pqexec.chba.cpassword.cportal.cportalbuf.cpqcomm.cpqcomprim.cpqpacket.c
nodes
optimizer
geqo
geqo_copy.cgeqo_cx.cgeqo_erx.cgeqo_eval.cgeqo_main.cgeqo_misc.cgeqo_mutation.cgeqo_ox1.cgeqo_ox2.cgeqo_params.cgeqo_paths.cgeqo_pmx.cgeqo_pool.cgeqo_px.cgeqo_recombination.cgeqo_selection.cminspantree.c
path
allpaths.cclausesel.ccostsize.chashutils.cindxpath.cjoinpath.cjoinrels.cjoinutils.cmergeutils.corindxpath.cpredmig.cprune.cxfunc.c
plan
prep
util
parser
postmaster
regex
rewrite
storage
buffer
file
ipc
large_object
lmgr
smgr
tcop
tioga
utils
bin
include
access
funcindex.hgenam.hgist.hgistscan.hgiststrat.hhash.hheapam.hhtup.hibit.hiqual.histrat.hitup.hnbtree.hrelscan.hrtree.hrtstrat.hskey.hstrat.htransam.htupdesc.hvalid.hxact.h
bootstrap
c.hcatalog
commands
executor
execFlatten.hexecdesc.hexecutor.hfunctions.hhashjoin.hnodeAgg.hnodeAppend.hnodeGroup.hnodeHash.hnodeHashjoin.hnodeIndexscan.hnodeMaterial.hnodeMergejoin.hnodeNestloop.hnodeResult.hnodeSeqscan.hnodeSort.hnodeTee.hnodeUnique.hspi.htuptable.h
lib
libpq
miscadmin.hnodes
execnodes.hmemnodes.hnodeFuncs.hnodes.hparams.hparsenodes.hpg_list.hplannodes.hprimnodes.hprint.hrelation.h
optimizer
clauseinfo.hclauses.hcost.hgeqo.hgeqo_copy.hgeqo_gene.hgeqo_misc.hgeqo_mutation.hgeqo_paths.hgeqo_pool.hgeqo_recombination.hgeqo_selection.hjoininfo.hkeys.hordering.hpathnode.hpaths.hplancat.hplanmain.hplanner.hprep.htlist.hvar.hxfunc.h
parser
port
postgres.hregex
rewrite
storage
buf_internals.hbufmgr.hbufpage.hipc.hitemid.hitemptr.hlarge_object.hlmgr.hlock.hproc.hshmem.hsinvaladt.h
tcop
utils
interfaces
libpgtcl
libpq
test
tools
entab
tutorial
C-code
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/nodeFuncs.c,v 1.5 1997/09/08 02:23:40 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/nodeFuncs.c,v 1.6 1997/09/08 21:44:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -23,16 +23,16 @@
|
||||
#include "nodes/nodeFuncs.h"
|
||||
#include "utils/lsyscache.h"
|
||||
|
||||
static bool var_is_inner(Var * var);
|
||||
static bool var_is_inner(Var *var);
|
||||
|
||||
/*
|
||||
* single_node -
|
||||
* Returns t if node corresponds to a single-noded expression
|
||||
*/
|
||||
bool
|
||||
single_node(Node * node)
|
||||
single_node(Node *node)
|
||||
{
|
||||
if (IsA(node, Ident) || IsA(node, Const) || IsA(node, Var) || IsA(node, Param))
|
||||
if (IsA(node, Ident) ||IsA(node, Const) ||IsA(node, Var) ||IsA(node, Param))
|
||||
return (true);
|
||||
else
|
||||
return (false);
|
||||
@ -58,22 +58,22 @@ single_node(Node * node)
|
||||
*
|
||||
*/
|
||||
bool
|
||||
var_is_outer(Var * var)
|
||||
var_is_outer(Var *var)
|
||||
{
|
||||
return ((bool) (var->varno == OUTER));
|
||||
}
|
||||
|
||||
static bool
|
||||
var_is_inner(Var * var)
|
||||
var_is_inner(Var *var)
|
||||
{
|
||||
return ((bool) (var->varno == INNER));
|
||||
}
|
||||
|
||||
bool
|
||||
var_is_rel(Var * var)
|
||||
var_is_rel(Var *var)
|
||||
{
|
||||
return (bool)
|
||||
! (var_is_inner(var) || var_is_outer(var));
|
||||
!(var_is_inner(var) || var_is_outer(var));
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
@ -90,7 +90,7 @@ var_is_rel(Var * var)
|
||||
*
|
||||
*/
|
||||
Oper *
|
||||
replace_opid(Oper * oper)
|
||||
replace_opid(Oper *oper)
|
||||
{
|
||||
oper->opid = get_opcode(oper->opno);
|
||||
oper->op_fcache = NULL;
|
||||
@ -108,10 +108,10 @@ replace_opid(Oper * oper)
|
||||
*
|
||||
*/
|
||||
bool
|
||||
non_null(Expr * c)
|
||||
non_null(Expr *c)
|
||||
{
|
||||
|
||||
if (IsA(c, Const) && !((Const *) c)->constisnull)
|
||||
if (IsA(c, Const) &&!((Const *) c)->constisnull)
|
||||
return (true);
|
||||
else
|
||||
return (false);
|
||||
|
Reference in New Issue
Block a user