/*
* Retrieve async notifications for a connection.
*
- * Returns an setof record of notifications, or an empty set if none recieved.
+ * Returns an setof record of notifications, or an empty set if none received.
* Can optionally take a named connection as parameter, but uses the unnamed connection per default.
*
*/
/* These letters are passed through unchanged */
#define NOCHANGE(c) (getcode(c) & 2) /* FJMNR */
-/* These form dipthongs when preceding H */
+/* These form diphthongs when preceding H */
#define AFFECTH(c) (getcode(c) & 4) /* CGPST */
/* These make C and G soft */
* length. Each additional deletion forces another insertion, so
* the best-case total cost increases by ins_c + del_c. If the
* string is shrinking, the minimum theoretical cost assumes no
- * excess deletions; that is, we're starting no futher right than
+ * excess deletions; that is, we're starting no further right than
* column n - m. If we do start further right, the best-case
* total cost increases by ins_c + del_c for each move right.
*/
}
else if (*(state->ptr) == '=' && !ignoreeq)
{
- elog(ERROR, "Syntax error near '%c' at postion %d", *(state->ptr), (int4) (state->ptr - state->begin));
+ elog(ERROR, "Syntax error near '%c' at position %d", *(state->ptr), (int4) (state->ptr - state->begin));
}
else if (*(state->ptr) == '\\')
{
/*
* get_rel_infos()
*
- * gets the relinfos for all the user tables of the database refered
+ * gets the relinfos for all the user tables of the database referred
* by "db".
*
* NOTE: we assume that relations/entities with oids greater than
* oids are the same between old and new clusters. This is important
* because toast oids are stored as toast pointers in user tables.
*
- * FYI, while pg_class.oid and pg_class.relfilenode are intially the same
+ * FYI, while pg_class.oid and pg_class.relfilenode are initially the same
* in a cluster, but they can diverge due to CLUSTER, REINDEX, or VACUUM
* FULL. The new cluster will have matching pg_class.oid and
* pg_class.relfilenode values and be based on the old oid value. This can
PQclear(res);
- /* XXX Mark tables as not accessable somehow */
+ /* XXX Mark tables as not accessible somehow */
PQfinish(conn);
}
* we don't transfer sequence files but instead use the CREATE SEQUENCE
* command from the schema dump, and use setval() to restore the sequence
* value and 'is_called' from the old database. This is safe to run
- * by pg_upgrade because sequence files are not transfered from the old
+ * by pg_upgrade because sequence files are not transferred from the old
* server, even in link mode.
*/
char *
/*
* Double check that we weren't given a short setting. If we were, the
- * above code will probably have created wierd values for count and
+ * above code will probably have created weird values for count and
* salt, but we don't really care. Just make sure the output string
* doesn't have an extra NUL in it.
*/
/* Different signs -- subtract magnitudes, preserve sign of greater */
mp_int x,
y;
- int cmp = s_ucmp(a, b); /* magnitude comparision, sign ignored */
+ int cmp = s_ucmp(a, b); /* magnitude comparison, sign ignored */
/* Set x to max(a, b), y to min(a, b) to simplify later code */
if (cmp >= 0)
px_set_debug_handler(NULL);
/*
- * add successfull decryptions also into RNG
+ * add successful decryptions also into RNG
*/
add_entropy(res, key, keypsw);
* sepgsql_get_client_label
*
* Returns the current security label of the client. All code should use this
- * routine to get the current label, instead of refering to the client_label_*
+ * routine to get the current label, instead of referring to the client_label_*
* variables above.
*/
char *
* current database encoding if possible. Any invalid characters are
* replaced by question marks.
*
- * Parameter: str - OpenSSL ASN1_STRING structure. Memory managment
+ * Parameter: str - OpenSSL ASN1_STRING structure. Memory management
* of this structure is responsibility of caller.
*
* Returns Datum, which can be directly returned from a C language SQL
</para>
<para>
- An explictly casted constant would be shown incorrectly. This could
+ An explicitly casted constant would be shown incorrectly. This could
for example lead to corruption of a view definition during
dump and reload.
</para>
</para>
<para>
- An explictly casted constant would be shown incorrectly. This could
+ An explicitly casted constant would be shown incorrectly. This could
for example lead to corruption of a view definition during
dump and reload.
</para>
</para>
<para>
- An explictly casted constant would be shown incorrectly. This could
+ An explicitly casted constant would be shown incorrectly. This could
for example lead to corruption of a view definition during
dump and reload.
</para>
</para>
<para>
- An explictly casted constant would be shown incorrectly. This could
+ An explicitly casted constant would be shown incorrectly. This could
for example lead to corruption of a view definition during
dump and reload.
</para>
# config.status will not change the timestamp on pg_config.h if it
# doesn't change, so as to avoid recompiling the entire tree
# unnecessarily. Therefore we make config.status update a timestamp file
-# stamp-h everytime it runs, so that we don't trigger this rule everytime.
-# (We do trigger the null rule for stamp-h to pg_config.h everytime; so it's
+# stamp-h every time it runs, so that we don't trigger this rule every time.
+# (We do trigger the null rule for stamp-h to pg_config.h every time; so it's
# important for that rule to be null!)
#
# Of course you need to turn on dependency tracking to get any
}
/*
- * Delete tuple on leaf page if tuples was existed and we
+ * Delete tuple on leaf page if tuples existed and we
* should update it, update old child blkno to new right page
- * if child split is occured
+ * if child split occurred
*/
static BlockNumber
entryPreparePage(GinBtree btree, Page page, OffsetNumber off)
* added to it. If so, process those entries immediately. There
* shouldn't be very many, so we don't worry about the fact that
* we're doing this with exclusive lock. Insertion algorithm
- * gurantees that inserted row(s) will not continue on next page.
+ * guarantees that inserted row(s) will not continue on next page.
* NOTE: intentionally no vacuum_delay_point in this loop.
*/
if (PageGetMaxOffsetNumber(page) != maxoff)
break;
/*
- * When first_call is true (and thus, skip is initally false) we'll
+ * When first_call is true (and thus, skip is initially false) we'll
* return the first tuple we find. But on later passes, heapTuple
* will initially be pointing to the tuple we returned last time.
* Returning it again would be incorrect (and would loop forever),
it is now a candidate to be deleted, but that is a separate action).
An insertion that causes a page split is logged as a single WAL entry for
-the changes occuring on the insertion's level --- including update of the
+the changes occurring on the insertion's level --- including update of the
right sibling's left-link --- followed by a second WAL entry for the
insertion on the parent level (which might itself be a page split, requiring
an additional insertion above that, etc).
* Definitions for the backend-local MultiXactId cache.
*
* We use this cache to store known MultiXacts, so we don't need to go to
- * SLRU areas everytime.
+ * SLRU areas every time.
*
* The cache lasts for the duration of a single transaction, the rationale
* for this being that most entries will contain our own TransactionId and
* CHECKPOINT_END_OF_RECOVERY: checkpoint is for end of WAL recovery.
* CHECKPOINT_IMMEDIATE: finish the checkpoint ASAP,
* ignoring checkpoint_completion_target parameter.
- * CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occured
+ * CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occurred
* since the last one (implied by CHECKPOINT_IS_SHUTDOWN or
* CHECKPOINT_END_OF_RECOVERY).
*
* nnewmembers, newmembers: array of roleids appearing in new ACL
*
* We calculate the differences between the new and old lists of roles,
- * and then insert or delete from pg_shdepend as appropiate.
+ * and then insert or delete from pg_shdepend as appropriate.
*
* Note that we can't just insert all referenced roles blindly during GRANT,
* because we would end up with duplicate registered dependencies. We could
AfterTriggerBeginQuery();
/*
- * Check BEFORE STATEMENT insertion triggers. It's debateable whether we
+ * Check BEFORE STATEMENT insertion triggers. It's debatable whether we
* should do this for COPY, since it's not really an "INSERT" statement as
* such. However, executing these triggers maintains consistency with the
* EACH ROW triggers that we already fire on COPY.
heap_close(refrel, NoLock);
/*
- * Foreign keys do not inherit, so we purposedly ignore the
+ * Foreign keys do not inherit, so we purposely ignore the
* recursion bit here
*/
}
/*
* Confirm column has not been dropped, and is of the expected type.
- * This defends against an ALTER DROP COLUMN occuring just before we
+ * This defends against an ALTER DROP COLUMN occurring just before we
* acquired lock ... but if the whole table were dropped, we'd still
* have a problem.
*/
/*
* EXEC_MJ_ENDOUTER means we have run out of outer tuples, but
* are doing a right/full join and therefore must null-fill
- * any remaing unmatched inner tuples.
+ * any remaining unmatched inner tuples.
*/
case EXEC_MJ_ENDOUTER:
MJ_printf("ExecMergeJoin: EXEC_MJ_ENDOUTER\n");
/*
* EXEC_MJ_ENDINNER means we have run out of inner tuples, but
* are doing a left/full join and therefore must null- fill
- * any remaing unmatched outer tuples.
+ * any remaining unmatched outer tuples.
*/
case EXEC_MJ_ENDINNER:
MJ_printf("ExecMergeJoin: EXEC_MJ_ENDINNER\n");
#include <com_err.h>
#endif
/*
- * Various krb5 state which is not connection specfic, and a flag to
+ * Various krb5 state which is not connection specific, and a flag to
* indicate whether we have initialised it yet.
*/
static int pg_krb5_initialised;
* makes no sense for constructs like CHAR 'hi' and BIT '0101',
* where there is an obvious better choice to make.
* Note that ConstInterval is not included here since it must
- * be pushed up higher in the rules to accomodate the postfix
+ * be pushed up higher in the rules to accommodate the postfix
* options (e.g. INTERVAL '1' YEAR). Likewise, we have to handle
* the generic-type-name case in AExprConst to avoid premature
* reduce/reduce conflicts against function names.
/*
* Collation strength (the SQL standard calls this "derivation"). Order is
* chosen to allow comparisons to work usefully. Note: the standard doesn't
- * seem to distingish between NONE and CONFLICT.
+ * seem to distinguish between NONE and CONFLICT.
*/
typedef enum
{
/*
* Not completed, and not just "would block", so an error
- * occured
+ * occurred
*/
FD_SET(writefds->fd_array[i], &outwritefds);
}
* CHECKPOINT_END_OF_RECOVERY: checkpoint is for end of WAL recovery.
* CHECKPOINT_IMMEDIATE: finish the checkpoint ASAP,
* ignoring checkpoint_completion_target parameter.
- * CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occured
+ * CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occurred
* since the last one (implied by CHECKPOINT_IS_SHUTDOWN or
* CHECKPOINT_END_OF_RECOVERY).
* CHECKPOINT_WAIT: wait for completion before returning (otherwise,
/*
* Basic parsing of putative relation filenames.
*
- * This funtion returns true if the file appears to be in the correct format
+ * This function returns true if the file appears to be in the correct format
* for a non-temporary relation and false otherwise.
*
* NB: If this function returns true, the caller is entitled to assume that
/*
* Keep the procs array sorted by (PGPROC *) so that we can utilize
* locality of references much better. This is useful while traversing the
- * ProcArray because there is a increased likelyhood of finding the next
+ * ProcArray because there is a increased likelihood of finding the next
* PGPROC structure in the cache.
*
- * Since the occurance of adding/removing a proc is much lower than the
+ * Since the occurrence of adding/removing a proc is much lower than the
* access to the ProcArray itself, the overhead should be marginal
*/
for (index = 0; index < arrayP->numProcs; index++)
* that this will prevent resource exhaustion in even the most pessimal
* loads up to max_connections = 200 with all 200 connections pounding the
* database with serializable transactions. Beyond that, there may be
- * occassional transactions canceled when trying to flag conflicts. That's
+ * occasional transactions canceled when trying to flag conflicts. That's
* probably OK.
*/
max_table_size *= 5;
* owner's ordinary privileges are self-granted; this lets him revoke
* them. We implement the owner's grant options without any explicit
* "_SYSTEM"-like ACL entry, by internally special-casing the owner
- * whereever we are testing grant options.
+ * wherever we are testing grant options.
*/
if (owner_default != ACL_NO_RIGHTS)
{
* Don't call this function if the field differs in length from the format
* keyword (as with HH24; the keyword length is 4, but the field length is 2).
* In such cases, call from_char_parse_int_len() instead to specify the
- * required length explictly.
+ * required length explicitly.
*/
static int
from_char_parse_int(int *dest, char **src, FormatNode *node)
/*
* clean tree for ! operator.
- * It's usefull for debug, but in
+ * It's useful for debug, but in
* other case, such view is used with search in index.
* Operator ! always return TRUE
*/
if (ext->p <= ext->q)
{
/*
- * set position for next try to next lexeme after begining of founded
+ * set position for next try to next lexeme after beginning of found
* cover
*/
ext->pos = (ptr - doc) + 1;
*to |= *from++;
len -= 3;
}
- else if (*from == SS3 && len >= 3) /* code set 3 (unsed ?) */
+ else if (*from == SS3 && len >= 3) /* code set 3 (unused ?) */
{
from++;
*to = (SS3 << 16) | (*from++ << 8);
*
* This is a C implementation of the previous shell script written by
* Peter Eisentraut <peter_e@gmx.net>, with adjustments made to
- * accomodate the possibility that the installation has been relocated from
+ * accommodate the possibility that the installation has been relocated from
* the place originally configured.
*
* author of C translation: Andrew Dunstan mailto:andrew@dunslane.net
*
* Optional.
*
- * Needs to match the order defined in _WriteExtraToc, and sould also
+ * Needs to match the order defined in _WriteExtraToc, and should also
* use the Archiver input routines.
*/
static void
PGresult *res;
int numParents;
TableInfo **parents;
- int actual_atts; /* number of attrs in this CREATE statment */
+ int actual_atts; /* number of attrs in this CREATE statement */
const char *reltypename;
char *storage;
char *srvname;
/* src/bin/pgevent/pgmsgevent.h */
/* */
-/* Values are 32 bit values layed out as follows: */
+/* Values are 32 bit values laid out as follows: */
/* */
/* 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 */
/* 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 */
sys = pg_malloc(strlen(shellName) + 16);
#ifndef WIN32
sprintf(sys,
- /* See EDITOR handling comment for an explaination */
+ /* See EDITOR handling comment for an explanation */
"exec %s", shellName);
#else
- /* See EDITOR handling comment for an explaination */
+ /* See EDITOR handling comment for an explanation */
sprintf(sys, SYSTEMQUOTE "\"%s\"" SYSTEMQUOTE, shellName);
#endif
result = system(sys);
ItemPointerData t_tid; /* reference TID to heap tuple */
/* ---------------
- * t_info is layed out in the following fashion:
+ * t_info is laid out in the following fashion:
*
* 15th (high) bit: has nulls
* 14th bit: has var-width attributes
#endif
/*
- * Make sure _WIN32_WINNT has the minumum required value.
+ * Make sure _WIN32_WINNT has the minimum required value.
* Leave a higher value in place.
*/
#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0501
memset(&stmt, 0, sizeof stmt);
stmt.lineno = lineno;
- /* desparate try to guess something sensible */
+ /* desperate try to guess something sensible */
stmt.connection = ecpg_get_connection(NULL);
ecpg_store_result(ECPGresult, index, &stmt, &data_var);
stmt->command = ecpg_strdup(variable, lineno);
stmt->inlist = stmt->outlist = NULL;
- /* if we have C variables in our statment replace them with '?' */
+ /* if we have C variables in our statement replace them with '?' */
replace_variables(&(stmt->command), lineno);
/* add prepared statement to our list */
return (entNo);
}
-/* handle cache and preparation of statments in auto-prepare mode */
+/* handle cache and preparation of statements in auto-prepare mode */
bool
ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, char **name, const char *query)
{
#if 0
phst
#endif
- {"pht", TZ, POS(32)}, /* Phillipine Time */
+ {"pht", TZ, POS(32)}, /* Philippine Time */
{"pkt", TZ, POS(20)}, /* Pakistan Time */
{"pm", AMPM, PM},
{"pmdt", DTZ, NEG(8)}, /* Pierre & Miquelon Daylight Time */
*/
tmask = 0;
- /* No preceeding date? Then quit... */
+ /* No preceding date? Then quit... */
if ((fmask & DTK_DATE_M) != DTK_DATE_M)
return -1;
/*
* Since it's difficult to test for noresult, make sure errno is 0 if no
- * error occured.
+ * error occurred.
*/
errno = 0;
return result;
/*
* dynamic SQL: descriptor based access
- * originall written by Christof Petig <christof.petig@wtal.de>
+ * originally written by Christof Petig <christof.petig@wtal.de>
* and Peter Eisentraut <peter.eisentraut@credativ.de>
*/
/* take care of cpp lines, they may also be continuated */
/* first a general line for all commands not starting with "i" */
/* and then the other commands starting with "i", we have to add these
- * seperately because the cppline production would match on "include" too */
+ * separately because the cppline production would match on "include" too */
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.*{newline}
/*
*
* Set the attributes for a given result. This function fails if there are
* already attributes contained in the provided result. The call is
- * ignored if numAttributes is is zero or attDescs is NULL. If the
+ * ignored if numAttributes is zero or attDescs is NULL. If the
* function fails, it returns zero. If the function succeeds, it
* returns a non-zero value.
*/
*
* Format results of a query for printing.
*
- * PQprintOpt is a typedef (structure) that containes
+ * PQprintOpt is a typedef (structure) that contains
* various flags and options. consult libpq-fe.h for
* details
*
* to find it in the lookup table, and if that fails, tries
* to load any of the winsock dlls to find that message.
* The DLL thing works from Nt4 (spX ?) up, but some special
- * versions of winsock might have this aswell (seen on Win98 SE
+ * versions of winsock might have this as well (seen on Win98 SE
* special install) / Magnus Naeslund (mag@fbab.net)
*
*/
rm messages.po
-# catalog name extentions must match behavior of PG_TEXTDOMAIN() in c.h
+# catalog name extensions must match behavior of PG_TEXTDOMAIN() in c.h
install-po: all-po installdirs-po
ifneq (,$(LANGUAGES))
for lang in $(LANGUAGES); do \
ref2 char(20)
);
--
--- Function to check key existance in T_pkey1
+-- Function to check key existence in T_pkey1
--
create function check_pkey1_exists(int4, bpchar) returns bool as E'
if {![info exists GD]} {
--
--- Function to check key existance in T_pkey1
+-- Function to check key existence in T_pkey1
--
create function check_pkey1_exists(int4, bpchar) returns bool as E'
if {![info exists GD]} {
Tatsuo Ishii
This directory contains a set of tests for multibyte supporting
-extentions for PostgreSQL. To run the test, simply type:
+extensions for PostgreSQL. To run the test, simply type:
% sh mbregress.sh
-- now some ins, upd, del
insert into pktable(base1) values (1);
insert into pktable(base1) values (2);
--- let's insert a non-existant fktable value
+-- let's insert a non-existent fktable value
insert into fktable(ftest1) values (3);
ERROR: insert or update on table "fktable" violates foreign key constraint "fktable_ftest1_fkey"
DETAIL: Key (ftest1)=(3) is not present in table "pktable".
-- now some ins, upd, del
insert into pktable(base1, ptest1) values (1, 1);
insert into pktable(base1, ptest1) values (2, 2);
--- let's insert a non-existant fktable value
+-- let's insert a non-existent fktable value
insert into fktable(ftest1, ftest2) values (3, 1);
ERROR: insert or update on table "fktable" violates foreign key constraint "fktable_ftest1_fkey"
DETAIL: Key (ftest1, ftest2)=(3, 1) is not present in table "pktable".
}
/*
- * Replace all occurances of a string in a string with a different string.
+ * Replace all occurrences of a string in a string with a different string.
* NOTE: Assumes there is enough room in the target buffer!
*/
void
-- now some ins, upd, del
insert into pktable(base1) values (1);
insert into pktable(base1) values (2);
--- let's insert a non-existant fktable value
+-- let's insert a non-existent fktable value
insert into fktable(ftest1) values (3);
-- let's make a valid row for that
insert into pktable(base1) values (3);
-- now some ins, upd, del
insert into pktable(base1, ptest1) values (1, 1);
insert into pktable(base1, ptest1) values (2, 2);
--- let's insert a non-existant fktable value
+-- let's insert a non-existent fktable value
insert into fktable(ftest1, ftest2) values (3, 1);
-- let's make a valid row for that
insert into pktable(base1,ptest1) values (3, 1);
# (Asia/Kamchatka)
PETT 43200 # Petropavlovsk-Kamchatski Time
# (Asia/Kamchatka)
-PHT 28800 # Phillipine Time (not in zic)
+PHT 28800 # Philippine Time (not in zic)
PKT 18000 # Pakistan Time
# (Asia/Karachi)
PKST 21600 D # Pakistan Summer Time
# (Asia/Kamchatka)
PETT 43200 # Petropavlovsk-Kamchatski Time
# (Asia/Kamchatka)
-PHT 28800 # Phillipine Time (not in zic)
+PHT 28800 # Philippine Time (not in zic)
PKT 18000 # Pakistan Time
# (Asia/Karachi)
PKST 21600 D # Pakistan Summer Time
<hr />
<p>Another area of interest is the shared memory area, which
-contains data accessable to all backends. It has recently used
+contains data accessible to all backends. It has recently used
data/index blocks, locks, backend process information, and lookup
tables for these structures:</p>
By typing 'build' the user starts the build.bat wrapper which simply passes
it's arguments to build.pl.
In build.pl the user's buildenv.pl is used to set up the build environment
-(i. e. path to bison and flex). In addtion his config.pl file is merged into
+(i. e. path to bison and flex). In addition his config.pl file is merged into
config_default.pl to create the configuration arguments.
These configuration arguments are passed over to Mkvcbuild::mkvcbuild
(Mkvcbuild.pm) which creates the Visual Studio project and solution files.
if (!defined($nmakeVersion))
{
- # Determine version of nmake command, to set proper verison of visual studio
+ # Determine version of nmake command, to set proper version of visual studio
# we use nmake as it has existed for a long time and still exists in visual studio 2010
open(P,"nmake /? 2>&1 |")
|| croak "Unable to determine Visual Studio version: The nmake command wasn't found.";
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
echo "#include \"postgres.h\"" >/tmp/$$.c
- # supress fcinfo errors
+ # suppress fcinfo errors
echo "struct {Datum arg[1];} *fcinfo;" >>/tmp/$$.c
echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
if [ "$IS_INCLUDE" = "Y" ]
then echo "#include \"postgres.h\"" >/tmp/$$.c
- # supress fcinfo errors
+ # suppress fcinfo errors
echo "struct {Datum arg[1];} *fcinfo;" >>/tmp/$$.c
else >/tmp/$$.c
fi