diff options
author | Bruce Momjian <bruce@momjian.us> | 2009-06-11 14:49:15 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2009-06-11 14:49:15 +0000 |
commit | d7471402794266078953f1bd113dab4913d631a1 (patch) | |
tree | 618e392a84eaf837e00bf78f8694097b78fec227 /src/backend/parser/parse_utilcmd.c | |
parent | 4e86efb4e51b66ef57b3fe6f28576de23a1bf1c6 (diff) | |
download | postgresql-d7471402794266078953f1bd113dab4913d631a1.tar.gz postgresql-d7471402794266078953f1bd113dab4913d631a1.zip |
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
-rw-r--r-- | src/backend/parser/parse_utilcmd.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index e011208ad86..e5a3621cce6 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -19,7 +19,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.20 2009/01/01 17:23:46 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.21 2009/06/11 14:49:00 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -287,9 +287,9 @@ transformColumnDefinition(ParseState *pstate, CreateStmtContext *cxt, } /* - * We have to reject "serial[]" explicitly, because once we've - * set typeid, LookupTypeName won't notice arrayBounds. We don't - * need any special coding for serial(typmod) though. + * We have to reject "serial[]" explicitly, because once we've set + * typeid, LookupTypeName won't notice arrayBounds. We don't need any + * special coding for serial(typmod) though. */ if (is_serial && column->typename->arrayBounds != NIL) ereport(ERROR, @@ -800,9 +800,9 @@ generateClonedIndexStmt(CreateStmtContext *cxt, Relation source_idx, index->idxname = NULL; /* - * If the index is marked PRIMARY, it's certainly from a constraint; - * else, if it's not marked UNIQUE, it certainly isn't; else, we have - * to search pg_depend to see if there's an associated unique constraint. + * If the index is marked PRIMARY, it's certainly from a constraint; else, + * if it's not marked UNIQUE, it certainly isn't; else, we have to search + * pg_depend to see if there's an associated unique constraint. */ if (index->primary) index->isconstraint = true; @@ -876,10 +876,10 @@ generateClonedIndexStmt(CreateStmtContext *cxt, Relation source_idx, if (amrec->amcanorder) { /* - * If it supports sort ordering, copy DESC and NULLS opts. - * Don't set non-default settings unnecessarily, though, - * so as to improve the chance of recognizing equivalence - * to constraint indexes. + * If it supports sort ordering, copy DESC and NULLS opts. Don't + * set non-default settings unnecessarily, though, so as to + * improve the chance of recognizing equivalence to constraint + * indexes. */ if (opt & INDOPTION_DESC) { @@ -1042,6 +1042,7 @@ transformIndexConstraints(ParseState *pstate, CreateStmtContext *cxt) strcmp(index->accessMethod, priorindex->accessMethod) == 0) { priorindex->unique |= index->unique; + /* * If the prior index is as yet unnamed, and this one is * named, then transfer the name to the prior index. This @@ -1475,7 +1476,7 @@ transformRuleStmt(RuleStmt *stmt, const char *queryString, if (pstate->p_hasWindowFuncs) ereport(ERROR, (errcode(ERRCODE_WINDOWING_ERROR), - errmsg("cannot use window function in rule WHERE condition"))); + errmsg("cannot use window function in rule WHERE condition"))); /* * 'instead nothing' rules with a qualification need a query rangetable so |