mirror of https://github.com/postgres/postgres
Fix it's and its to be correct.
This commit is contained in:
parent
c0cab6f4fa
commit
b78769fda2
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.56 1999/12/10 03:55:46 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.57 2000/01/05 18:23:44 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Transaction aborts can now occur two ways:
|
||||
|
@ -36,7 +36,7 @@
|
|||
* they always have been, and user aborts are now handled by
|
||||
* UserAbortTransactionBlock(). Both of them rely on AbortTransaction()
|
||||
* to do all the real work. The only difference is what state we
|
||||
* enter after AbortTransaction() does it's work:
|
||||
* enter after AbortTransaction() does its work:
|
||||
*
|
||||
* * AbortTransactionBlock() leaves us in TBLOCK_ABORT and
|
||||
* * UserAbortTransactionBlock() leaves us in TBLOCK_ENDABORT
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.45 1999/12/16 22:19:39 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.46 2000/01/05 18:23:45 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* these routines moved here from commands/define.c and somewhat cleaned up.
|
||||
|
@ -406,7 +406,7 @@ OperatorShellMake(char *operatorName,
|
|||
* resultType -- defer this, since it must be determined from
|
||||
* the pg_procedure catalog
|
||||
* commutatorObjectId -- if this is NULL, enter ObjectId=0
|
||||
* else if this already exists, enter it's ObjectId
|
||||
* else if this already exists, enter its ObjectId
|
||||
* else if this does not yet exist, and is not
|
||||
* the same as the main operatorName, then create
|
||||
* a shell and enter the new ObjectId
|
||||
|
|
|
@ -1719,7 +1719,7 @@ DeferredTriggerSaveEvent(Relation rel, int event,
|
|||
|
||||
/* ----------
|
||||
* Look at the previous event to the same tuple if
|
||||
* any of it's triggers has already been executed.
|
||||
* any of its triggers has already been executed.
|
||||
* Such a situation would potentially violate RI
|
||||
* so we abort the transaction.
|
||||
* ----------
|
||||
|
@ -1795,7 +1795,7 @@ DeferredTriggerSaveEvent(Relation rel, int event,
|
|||
|
||||
/* ----------
|
||||
* Look at the previous event to the same tuple if
|
||||
* any of it's triggers has already been executed.
|
||||
* any of its triggers has already been executed.
|
||||
* Such a situation would potentially violate RI
|
||||
* so we abort the transaction.
|
||||
* ----------
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.103 1999/12/16 22:19:44 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.104 2000/01/05 18:23:46 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -1007,7 +1007,7 @@ lnext: ;
|
|||
/*
|
||||
* now that we have a tuple, do the appropriate thing with it..
|
||||
* either return it to the user, add it to a relation someplace,
|
||||
* delete it from a relation, or modify some of it's attributes.
|
||||
* delete it from a relation, or modify some of its attributes.
|
||||
*/
|
||||
|
||||
switch (operation)
|
||||
|
|
|
@ -4,22 +4,22 @@
|
|||
* contains dispatch functions which call the appropriate "initialize",
|
||||
* "get a tuple", and "cleanup" routines for the given node type.
|
||||
* If the node has children, then it will presumably call ExecInitNode,
|
||||
* ExecProcNode, or ExecEndNode on it's subnodes and do the appropriate
|
||||
* ExecProcNode, or ExecEndNode on its subnodes and do the appropriate
|
||||
* processing..
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.16 1999/11/23 20:06:51 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.17 2000/01/05 18:23:46 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
/*
|
||||
* INTERFACE ROUTINES
|
||||
* ExecInitNode - initialize a plan node and it's subplans
|
||||
* ExecInitNode - initialize a plan node and its subplans
|
||||
* ExecProcNode - get a tuple by executing the plan node
|
||||
* ExecEndNode - shut down a plan node and it's subplans
|
||||
* ExecEndNode - shut down a plan node and its subplans
|
||||
*
|
||||
* NOTES
|
||||
* This used to be three files. It is now all combined into
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.27 1999/12/10 03:55:51 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.28 2000/01/05 18:23:46 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -252,7 +252,7 @@ ExecInitMaterial(Material *node, EState *estate, Plan *parent)
|
|||
tupType = ExecGetScanType(&matstate->csstate);
|
||||
|
||||
/* ----------------
|
||||
* ExecCreatR wants it's second argument to be an object id of
|
||||
* ExecCreatR wants its second argument to be an object id of
|
||||
* a relation in the range table or a _NONAME_RELATION_ID
|
||||
* indicating that the relation is not in the range table.
|
||||
*
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.24 1999/07/17 20:17:01 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.25 2000/01/05 18:23:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -290,7 +290,7 @@ strparse(char *s, char **fields, int *offsets, int maxfields)
|
|||
}
|
||||
|
||||
/* ----------------
|
||||
* pqtest_PQfn converts it's string into a PQArgBlock and
|
||||
* pqtest_PQfn converts its string into a PQArgBlock and
|
||||
* calls the specified function, which is assumed to return
|
||||
* an integer value.
|
||||
* ----------------
|
||||
|
@ -376,7 +376,7 @@ pqtest_PQfn(char *q)
|
|||
}
|
||||
|
||||
/* ----------------
|
||||
* pqtest looks at the first character of it's test argument
|
||||
* pqtest looks at the first character of its test argument
|
||||
* and decides which of pqtest_PQexec or pqtest_PQfn to call.
|
||||
* ----------------
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.27 1999/07/17 20:17:04 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.28 2000/01/05 18:23:48 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#define NOROOTEXEC "\
|
||||
\n\"root\" execution of the PostgreSQL backend is not permitted.\n\n\
|
||||
The backend must be started under it's own userid to prevent\n\
|
||||
The backend must be started under its own userid to prevent\n\
|
||||
a possible system security compromise. See the INSTALL file for\n\
|
||||
more information on how to properly start the postmaster.\n\n"
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.63 1999/11/15 02:00:03 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.64 2000/01/05 18:23:48 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -1271,7 +1271,7 @@ fireRules(Query *parsetree,
|
|||
* If there are instead rules with qualifications,
|
||||
* the original query is still performed. But all
|
||||
* the negated rule qualifications of the instead
|
||||
* rules are added so it does it's actions only
|
||||
* rules are added so it does its actions only
|
||||
* in cases where the rule quals of all instead
|
||||
* rules are false. Think of it as the default
|
||||
* action in a case. We save this in *qual_products
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.68 1999/11/22 02:03:21 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.69 2000/01/05 18:23:49 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -242,7 +242,7 @@ ReadBufferWithBufferLock(Relation reln,
|
|||
if (!bufHdr)
|
||||
return InvalidBuffer;
|
||||
|
||||
/* if its already in the buffer pool, we're done */
|
||||
/* if it's already in the buffer pool, we're done */
|
||||
if (found)
|
||||
{
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* 1998 Jan Wieck
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.20 1999/09/29 21:13:25 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.21 2000/01/05 18:23:50 momjian Exp $
|
||||
*
|
||||
* ----------
|
||||
*/
|
||||
|
@ -391,7 +391,7 @@ numeric(Numeric num, int32 typmod)
|
|||
/* ----------
|
||||
* If the number is in bounds and due to the present result scale
|
||||
* no rounding could be necessary, make a copy of the input and
|
||||
* modify it's header fields.
|
||||
* modify its header fields.
|
||||
* ----------
|
||||
*/
|
||||
if (num->n_weight < maxweight && scale >= num->n_rscale)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/**********************************************************************
|
||||
* get_ruledef.c - Function to get a rules definition text
|
||||
* out of it's tuple
|
||||
* out of its tuple
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.36 1999/12/24 06:43:34 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.37 2000/01/05 18:23:50 momjian Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
|
@ -1847,8 +1847,8 @@ get_relation_name(Oid relid)
|
|||
|
||||
|
||||
/* ----------
|
||||
* get_attribute_name - Get an attribute name by it's
|
||||
* relations Oid and it's attnum
|
||||
* get_attribute_name - Get an attribute name by its
|
||||
* relations Oid and its attnum
|
||||
* ----------
|
||||
*/
|
||||
static char *
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.21 1999/08/24 20:11:17 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.22 2000/01/05 18:23:50 momjian Exp $
|
||||
*
|
||||
* NOTE:
|
||||
* This is a new (Feb. 05, 1999) implementation of the allocation set
|
||||
|
@ -232,7 +232,7 @@ AllocSetAlloc(AllocSet set, Size size)
|
|||
|
||||
/*
|
||||
* If one is found, remove it from the free list, make it again a
|
||||
* member of the alloc set and return it's data address.
|
||||
* member of the alloc set and return its data address.
|
||||
*
|
||||
*/
|
||||
if (chunk != NULL)
|
||||
|
|
|
@ -112,7 +112,7 @@ void initialize_readline(PGconn ** conn)
|
|||
|
||||
/* This is a list of all "things" in Pgsql, which can show up after CREATE or
|
||||
DROP; and there is also a query to get a list of them.
|
||||
The %s will be replaced by the text entered so far, the %d by it's length.
|
||||
The %s will be replaced by the text entered so far, the %d by its length.
|
||||
If you change the order here or insert things, make sure to also adjust the
|
||||
referencing macros below.
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* ----------
|
||||
* pg_lzcompress.h -
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/include/utils/pg_lzcompress.h,v 1.3 1999/11/25 01:28:07 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/include/utils/pg_lzcompress.h,v 1.4 2000/01/05 18:23:52 momjian Exp $
|
||||
*
|
||||
* Definitions for the builtin LZ compressor
|
||||
* ----------
|
||||
|
@ -81,7 +81,7 @@ typedef struct PGLZ_Header {
|
|||
*
|
||||
* min_comp_rate Minimum compression rate (0-99%), the output
|
||||
* must be smaller than the input. If that isn't
|
||||
* the case, the compressor will throw away it's
|
||||
* the case, the compressor will throw away its
|
||||
* output and copy the original, uncompressed data
|
||||
* to the output buffer.
|
||||
*
|
||||
|
|
|
@ -347,7 +347,7 @@ char tempBuf[TEXT_FIELD_SIZE+5];
|
|||
|
||||
} else {
|
||||
|
||||
/* for SQL_C_CHAR, its probably ok to leave currency symbols in. But
|
||||
/* for SQL_C_CHAR, it's probably ok to leave currency symbols in. But
|
||||
to convert to numeric types, it is necessary to get rid of those.
|
||||
*/
|
||||
if (field_type == PG_TYPE_MONEY)
|
||||
|
@ -626,7 +626,7 @@ int lobj_fd, retval;
|
|||
memcpy(&new_statement[npos], esc, strlen(esc));
|
||||
npos += strlen(esc);
|
||||
}
|
||||
else { /* its not a valid literal so just copy */
|
||||
else { /* it's not a valid literal so just copy */
|
||||
*end = '}';
|
||||
new_statement[npos++] = old_statement[opos];
|
||||
continue;
|
||||
|
@ -680,7 +680,7 @@ int lobj_fd, retval;
|
|||
continue;
|
||||
}
|
||||
|
||||
/* If no buffer, and its not null, then what the hell is it?
|
||||
/* If no buffer, and it's not null, then what the hell is it?
|
||||
Just leave it alone then.
|
||||
*/
|
||||
if ( ! buffer) {
|
||||
|
|
|
@ -157,7 +157,7 @@ dialog:
|
|||
}
|
||||
|
||||
/* Password is not a required parameter unless authentication asks for it.
|
||||
For now, I think its better to just let the application ask over and over until
|
||||
For now, I think it's better to just let the application ask over and over until
|
||||
a password is entered (the user can always hit Cancel to get out)
|
||||
*/
|
||||
if( ci->username[0] == '\0' ||
|
||||
|
|
|
@ -1373,8 +1373,8 @@ ConnInfo *ci;
|
|||
|
||||
|
||||
/* Only show oid if option AND there are other columns AND
|
||||
its not being called by SQLStatistics .
|
||||
Always show OID if its a system table
|
||||
it's not being called by SQLStatistics .
|
||||
Always show OID if it's a system table
|
||||
*/
|
||||
|
||||
if (result != SQL_ERROR && ! stmt->internal) {
|
||||
|
|
|
@ -447,7 +447,7 @@ RETCODE result;
|
|||
continue;
|
||||
}
|
||||
|
||||
/* otherwise, its probably an expression */
|
||||
/* otherwise, it's probably an expression */
|
||||
in_expr = TRUE;
|
||||
fi[stmt->nfld-1]->expr = TRUE;
|
||||
fi[stmt->nfld-1]->name[0] = '\0';
|
||||
|
@ -523,7 +523,7 @@ RETCODE result;
|
|||
continue;
|
||||
}
|
||||
|
||||
/* its a dot, resolve to table or alias */
|
||||
/* it's a dot, resolve to table or alias */
|
||||
else if (fi[i]->dot[0]) {
|
||||
for (k = 0; k < stmt->ntab; k++) {
|
||||
if ( ! stricmp(ti[k]->name, fi[i]->dot)) {
|
||||
|
|
|
@ -224,7 +224,7 @@ Int2 pgtype_to_sqltype(StatementClass *stmt, Int4 type)
|
|||
default:
|
||||
|
||||
/* first, check to see if 'type' is in list. If not, look up with query.
|
||||
Add oid, name to list. If its already in list, just return.
|
||||
Add oid, name to list. If it's already in list, just return.
|
||||
*/
|
||||
if (type == stmt->hdbc->lobj_type) /* hack until permanent type is available */
|
||||
return SQL_LONGVARBINARY;
|
||||
|
|
|
@ -692,7 +692,7 @@ mylog("SQLGetData: enter, stmt=%u\n", stmt);
|
|||
mylog(" value = '%s'\n", value);
|
||||
}
|
||||
}
|
||||
else { /* its a SOCKET result (backend data) */
|
||||
else { /* it's a SOCKET result (backend data) */
|
||||
if (stmt->currTuple == -1 || ! res || ! res->tupleField) {
|
||||
stmt->errormsg = "Not positioned on a valid row for GetData.";
|
||||
stmt->errornumber = STMT_INVALID_CURSOR_STATE_ERROR;
|
||||
|
|
|
@ -783,7 +783,7 @@ QueryInfo qi;
|
|||
self->status = STMT_EXECUTING;
|
||||
|
||||
|
||||
// If its a SELECT statement, use a cursor.
|
||||
// If it's a SELECT statement, use a cursor.
|
||||
// Note that the declare cursor has already been prepended to the statement
|
||||
// in copy_statement...
|
||||
if (self->statement_type == STMT_TYPE_SELECT) {
|
||||
|
@ -822,7 +822,7 @@ QueryInfo qi;
|
|||
|
||||
}
|
||||
else { // not a SELECT statement so don't use a cursor
|
||||
mylog(" its NOT a select statement: stmt=%u\n", self);
|
||||
mylog(" it's NOT a select statement: stmt=%u\n", self);
|
||||
self->result = CC_send_query(conn, self->stmt_with_params, NULL);
|
||||
|
||||
// If we are in autocommit, we must send the commit.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* procedural language
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.15 1999/11/22 17:56:40 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.16 2000/01/05 18:23:53 momjian Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
|
@ -1911,7 +1911,7 @@ exec_assign_value(PLpgSQL_execstate * estate,
|
|||
* ----------
|
||||
*/
|
||||
if (!HeapTupleIsValid(rec->tup))
|
||||
elog(ERROR, "record %s is unassigned yet - don't know it's tuple structure", rec->refname);
|
||||
elog(ERROR, "record %s is unassigned yet - don't know its tuple structure", rec->refname);
|
||||
|
||||
/* ----------
|
||||
* Get the number of the records field to change and the
|
||||
|
@ -1952,7 +1952,7 @@ exec_assign_value(PLpgSQL_execstate * estate,
|
|||
}
|
||||
|
||||
/* ----------
|
||||
* This is the field to change. Get it's type
|
||||
* This is the field to change. Get its type
|
||||
* and cast the value we insert to that type.
|
||||
* ----------
|
||||
*/
|
||||
|
@ -2045,7 +2045,7 @@ exec_eval_expr(PLpgSQL_execstate * estate,
|
|||
elog(ERROR, "query \"%s\" didn't return a single value", expr->query);
|
||||
|
||||
/* ----------
|
||||
* Return the result and it's type
|
||||
* Return the result and its type
|
||||
* ----------
|
||||
*/
|
||||
*rettype = SPI_gettypeid(SPI_tuptable->tupdesc, 1);
|
||||
|
@ -2299,7 +2299,7 @@ exec_move_row(PLpgSQL_execstate * estate,
|
|||
bool isnull;
|
||||
|
||||
/* ----------
|
||||
* Record is simple - just put the tuple and it's descriptor
|
||||
* Record is simple - just put the tuple and its descriptor
|
||||
* into the record
|
||||
* ----------
|
||||
*/
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* procedural language (PL)
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.15 1999/11/22 17:56:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.16 2000/01/05 18:23:54 momjian Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
|
@ -695,7 +695,7 @@ pltcl_func_handler(FmgrInfo *proinfo,
|
|||
|
||||
/************************************************************
|
||||
* Convert the result value from the safe interpreter
|
||||
* into it's PostgreSQL data format and return it.
|
||||
* into its PostgreSQL data format and return it.
|
||||
* Again, the call to fmgr() could fire an elog and we
|
||||
* have to count for the current interpreter level we are
|
||||
* on. The save_restart from above is still good.
|
||||
|
@ -1792,7 +1792,7 @@ pltcl_SPI_execp(ClientData cdata, Tcl_Interp *interp,
|
|||
}
|
||||
|
||||
/************************************************************
|
||||
* Get the prepared plan descriptor by it's key
|
||||
* Get the prepared plan descriptor by its key
|
||||
************************************************************/
|
||||
hashent = Tcl_FindHashEntry(pltcl_query_hash, argv[i++]);
|
||||
if (hashent == NULL)
|
||||
|
|
Loading…
Reference in New Issue