Fix various typos
authorDavid Rowley <[email protected]>
Tue, 18 Apr 2023 01:23:23 +0000 (13:23 +1200)
committerDavid Rowley <[email protected]>
Tue, 18 Apr 2023 01:23:23 +0000 (13:23 +1200)
This fixes many spelling mistakes in comments, but a few references to
invalid parameter names, function names and option names too in comments
and also some in string constants

Also, fix an #undef that was undefining the incorrect definition

Author: Alexander Lakhin
Reviewed-by: Justin Pryzby
Discussion: https://postgr.es/m/d5f68d19-c0fc-91a9-118d-7c6a5a3f5fad@gmail.com

35 files changed:
contrib/amcheck/verify_heapam.c
contrib/pg_walinspect/pg_walinspect.c
contrib/postgres_fdw/connection.c
contrib/postgres_fdw/postgres_fdw.c
meson.build
src/backend/backup/basebackup.c
src/backend/executor/execUtils.c
src/backend/executor/nodeModifyTable.c
src/backend/rewrite/rewriteManip.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/predicate.c
src/backend/storage/smgr/md.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/array_userfuncs.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/ps_status.c
src/backend/utils/mmgr/mcxt.c
src/backend/utils/resowner/resowner.c
src/bin/pg_dump/compress_lz4.c
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_dump/pg_dumpall.c
src/bin/scripts/t/100_vacuumdb.pl
src/include/access/rmgrdesc_utils.h
src/include/port/pg_iovec.h
src/include/regex/regcustom.h
src/include/utils/memutils_memorychunk.h
src/include/utils/tuplesort.h
src/interfaces/libpq/fe-secure-gssapi.c
src/interfaces/libpq/t/004_load_balance_dns.pl
src/port/dirmod.c
src/test/kerberos/t/001_auth.pl
src/test/ldap/LdapServer.pm
src/test/modules/ldap_password_func/meson.build
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
src/test/regress/pg_regress.c

index f50ee9d29f725e10526a09fd401f63090457b2a9..34d73ad442fb75405a84c6c845634b64971c4c37 100644 (file)
@@ -1009,7 +1009,7 @@ check_tuple_header(HeapCheckContext *ctx)
  * TOAST tuples -- are eligible for pruning.
  *
  * Sets *xmin_commit_status_ok to true if the commit status of xmin is known
- * and false otherwise. If it's set to true, then also set *xid_commit_status
+ * and false otherwise. If it's set to true, then also set *xmin_commit_status
  * to the actual commit status.
  */
 static bool
index e4dbf15e05d318ae7747ffb1f96323be3872eb68..e6f18e1c644eb00a7cf8df733e98047720e5fda9 100644 (file)
@@ -401,7 +401,7 @@ GetWALBlockInfo(FunctionCallInfo fcinfo, XLogReaderState *record,
                                                         values, nulls);
        }
 
-#undef PG_GET_WAL_FPI_BLOCK_COLS
+#undef PG_GET_WAL_BLOCK_INFO_COLS
 }
 
 /*
index 75d93d6eadf2833f8ac980e959acd791ae037442..da32d503bc5a31f63c15216f53ad0d92be04c7dc 100644 (file)
@@ -1686,7 +1686,7 @@ pgfdw_abort_cleanup(ConnCacheEntry *entry, bool toplevel)
  *
  * Returns true if the abort command or cancel request is successfully issued,
  * false otherwise.  If the abort command is successfully issued, the given
- * connection cache entry is appended to *pending_entries.  Othewise, if the
+ * connection cache entry is appended to *pending_entries.  Otherwise, if the
  * cancel request is successfully issued, it is appended to *cancel_requested.
  */
 static bool
index d728bd70b31c2bf55b8848831e1cdf4da9c62235..95dbe8b06cc558349f2ce14929f0c9a868998a9b 100644 (file)
@@ -5016,7 +5016,7 @@ postgresGetAnalyzeInfoForForeignTable(Relation relation, bool *can_tablesample)
                        pgfdw_report_error(ERROR, res, conn, false, sql.data);
 
                if (PQntuples(res) != 1 || PQnfields(res) != 2)
-                       elog(ERROR, "unexpected result from deparseAnalyzeTuplesSql query");
+                       elog(ERROR, "unexpected result from deparseAnalyzeInfoSql query");
                reltuples = strtod(PQgetvalue(res, 0, 0), NULL);
                relkind = *(PQgetvalue(res, 0, 1));
        }
index f1db5455b053dc7431c10a938d0fb48c89a3a9a3..096044628c5dacf3c8263611fb8e2dd41ee89eea 100644 (file)
@@ -2963,7 +2963,7 @@ endif
 # generation happens during install, so that's not a real issue.
 nls_mo_targets = []
 if libintl.found() and meson.version().version_compare('>=0.60')
-  # use range() to avoid the flattening of the list that forech() would do
+  # use range() to avoid the flattening of the list that foreach() would do
   foreach off : range(0, nls_targets.length())
     # i18n.gettext() list containing 1) list of built .mo files 2) maintainer
     # -pot target 3) maintainer -pot target
index 6efdefb591776d6d707f4bc86dd13dfc93325482..5baea7535b7865deba8bfc62a611a467461de3f0 100644 (file)
@@ -254,7 +254,7 @@ perform_base_backup(basebackup_options *opt, bbsink *sink)
 
        total_checksum_failures = 0;
 
-       /* Allocate backup related varilables. */
+       /* Allocate backup related variables. */
        backup_state = (BackupState *) palloc0(sizeof(BackupState));
        tablespace_map = makeStringInfo();
 
index 5ce8a0831b1992d12f2b0834b6ef42c141ff9884..872cbd454dffcc37c617e7e322cc659bc71d66ff 100644 (file)
@@ -1403,7 +1403,7 @@ GetResultRTEPermissionInfo(ResultRelInfo *relinfo, EState *estate)
 }
 
 /*
- * GetResultRelCheckAsUser
+ * ExecGetResultRelCheckAsUser
  *             Returns the user to modify passed-in result relation as
  *
  * The user is chosen by looking up the relation's or, if a child table, its
index 3a673895082a170914bcadd6da479bb1afc349b5..5b596f1e7a9f7e66822ba1622aeb83b842563daa 100644 (file)
@@ -904,7 +904,7 @@ ExecInsert(ModifyTableContext *context,
                         * If these are the first tuples stored in the buffers, add the
                         * target rel and the mtstate to the
                         * es_insert_pending_result_relations and
-                        * es_insert_pending_modifytables lists respectively, execpt in
+                        * es_insert_pending_modifytables lists respectively, except in
                         * the case where flushing was done above, in which case they
                         * would already have been added to the lists, so no need to do
                         * this.
index d28d0da62140ed56c3ad7dd78a6c51978f8a513e..52b3f77078d1f98933fe2f92d085d4518e5a143e 100644 (file)
@@ -343,7 +343,7 @@ contains_multiexpr_param(Node *node, void *context)
  * the RTEs in 'src_rtable' to now point to the perminfos' indexes in
  * *dst_perminfos.
  *
- * Note that this changes both 'dst_rtable' and 'dst_perminfo' destructively,
+ * Note that this changes both 'dst_rtable' and 'dst_perminfos' destructively,
  * so the caller should have better passed safe-to-modify copies.
  */
 void
index ee6244f9bc74bedb56a0c9d67fe6600296cf8b34..1fa689052e9da6bdbef1f7c11b3be83bf2a8312b 100644 (file)
@@ -2046,7 +2046,7 @@ ExtendBufferedRelShared(ExtendBufferedWhat eb,
        io_start = pgstat_prepare_io_time();
 
        /*
-        * Note: if smgzerorextend fails, we will end up with buffers that are
+        * Note: if smgrzeroextend fails, we will end up with buffers that are
         * allocated but not marked BM_VALID.  The next relation extension will
         * still select the same block number (because the relation didn't get any
         * longer on disk) and so future attempts to extend the relation will find
index 23461b46f6ed112a6ac9e82e5408af1be03422ff..203b189559d48df1c299efbacc2e5a5814d53ad2 100644 (file)
  *             PredicateLockPage(Relation relation, BlockNumber blkno,
  *                                             Snapshot snapshot)
  *             PredicateLockTID(Relation relation, ItemPointer tid, Snapshot snapshot,
- *                                              TransactionId insert_xid)
+ *                                              TransactionId tuple_xid)
  *             PredicateLockPageSplit(Relation relation, BlockNumber oldblkno,
  *                                                        BlockNumber newblkno)
  *             PredicateLockPageCombine(Relation relation, BlockNumber oldblkno,
index f1316eb4ce3b4af5ee59d70e2bdcb1c33795fa62..e982a8dd7f785ca95fac9d64145333a5fd14d670 100644 (file)
@@ -597,7 +597,7 @@ mdzeroextend(SMgrRelation reln, ForkNumber forknum,
                        /*
                         * Even if we don't want to use fallocate, we can still extend a
                         * bit more efficiently than writing each 8kB block individually.
-                        * pg_pwrite_zeroes() (via FileZero()) uses
+                        * pg_pwrite_zeros() (via FileZero()) uses
                         * pg_pwritev_with_retry() to avoid multiple writes or needing a
                         * zeroed buffer for the whole length of the extension.
                         */
index 8f7522d10331ce40708b19f734a7f2df78aefb03..c5a6babccc260d32d96992dfe7b1c21d74fd3e45 100644 (file)
@@ -4825,7 +4825,7 @@ RoleMembershipCacheCallback(Datum arg, int cacheid, uint32 hashvalue)
  * Get a list of roles that the specified roleid is a member of
  *
  * Type ROLERECURSE_MEMBERS recurses through all grants; ROLERECURSE_PRIVS
- * recurses only through inheritable grants; and ROLERECURSE_SETROLe recurses
+ * recurses only through inheritable grants; and ROLERECURSE_SETROLE recurses
  * only through grants with set_option.
  *
  * Since indirect membership testing is relatively expensive, we cache
@@ -5020,7 +5020,7 @@ member_can_set_role(Oid member, Oid role)
 }
 
 /*
- * Permission violation eror unless able to SET ROLE to target role.
+ * Permission violation error unless able to SET ROLE to target role.
  */
 void
 check_can_set_role(Oid member, Oid role)
index 33e2b98307d1ba03a907c8fe9287fb79a80a723b..171fdc67bb271cf0585c520d26816b83e59a2a6b 100644 (file)
@@ -1043,7 +1043,7 @@ array_agg_array_combine(PG_FUNCTION_ARGS)
                state1->nitems += state2->nitems;
 
                state1->dims[0] += state2->dims[0];
-               /* remaing dims already match, per test above */
+               /* remaining dims already match, per test above */
 
                Assert(state1->array_type == state2->array_type);
                Assert(state1->element_type == state2->element_type);
index 7d3b20168a0b5ae8ca0ee84636f4a8b08698c3f0..9dd624b3ae0f81989ffc39484935a536777c3f3f 100644 (file)
@@ -1387,7 +1387,7 @@ check_GUC_name_for_parameter_acl(const char *name)
  *
  * This performs two sanity checks.  First, it checks that the initial
  * value of a GUC is the same when declared and when loaded to prevent
- * anybody looking at the C declarations of these GUCS from being fooled by
+ * anybody looking at the C declarations of these GUCs from being fooled by
  * mismatched values.  Second, it checks for incorrect flag combinations.
  *
  * The following validation rules apply for the values:
@@ -6272,7 +6272,7 @@ ProcessGUCArray(ArrayType *array, ArrayType *usersetArray,
                        userSetDatum = BoolGetDatum(false);
 
                /*
-                * USER SET values are appliciable only for PGC_USERSET parameters. We
+                * USER SET values are applicable only for PGC_USERSET parameters. We
                 * use InvalidOid as role in order to evade possible privileges of the
                 * current user.
                 */
@@ -6365,8 +6365,8 @@ GUCArrayAdd(ArrayType *array, ArrayType **usersetArray,
                                }
 
                                /*
-                                * Recheck permissons if we found an option without USER SET
-                                * flag while we're setting an optionn with USER SET flag.
+                                * Recheck permissions if we found an option without USER SET
+                                * flag while we're setting an option with USER SET flag.
                                 */
                                if (!currentUserSet && user_set)
                                        (void) validate_option_array_item(name, value,
index 3894a017f3dc78bcb049551e82677609119e1092..104c01d96668a455935890c3b856aeec844dec0a 100644 (file)
@@ -87,7 +87,7 @@ static size_t ps_buffer_cur_len;      /* nominal strlen(ps_buffer) */
 static size_t ps_buffer_fixed_size; /* size of the constant prefix */
 
 /*
- * Length of ps_buffer before the suffix was appeneded to the end, or 0 if we
+ * Length of ps_buffer before the suffix was appended to the end, or 0 if we
  * didn't set a suffix.
  */
 static size_t ps_buffer_nosuffix_len;
index 88f97ea24647592968f09942b4e81ba7f660c4cb..42b90e4d4fae81fcbb018794f2eff0ca2d51dc28 100644 (file)
@@ -1382,7 +1382,7 @@ MemoryContextAllocAligned(MemoryContext context,
        alloc_size = size + PallocAlignedExtraBytes(alignto);
 
 #ifdef MEMORY_CONTEXT_CHECKING
-       /* ensure there's space for a sentinal byte */
+       /* ensure there's space for a sentinel byte */
        alloc_size += 1;
 #endif
 
index 4357dd0870458383daff9ae1a8f800be2d062930..7dec652106ff90916804a3d2da43256833d9d403 100644 (file)
@@ -521,7 +521,7 @@ ResourceOwnerReleaseInternal(ResourceOwner owner,
        {
                /*
                 * Abort failed buffer IO. AbortBufferIO()->TerminateBufferIO() calls
-                * ResourceOwnerForgetBufferIOs(), so we just have to iterate till
+                * ResourceOwnerForgetBufferIO(), so we just have to iterate till
                 * there are none.
                 *
                 * Needs to be before we release buffer pins.
index 5aca9c1f0619d6c38a6413ff5b61c6ae9f709a47..423e1b7976f033282be47b81d75a0c3bc7f4ee6a 100644 (file)
@@ -342,7 +342,7 @@ LZ4Stream_get_error(CompressFileHandle *CFH)
 /*
  * Initialize an already alloc'ed LZ4State struct for subsequent calls.
  *
- * Creates the necessary contexts for either compresion or decompression. When
+ * Creates the necessary contexts for either compression or decompression. When
  * compressing data (indicated by compressing=true), it additionally writes the
  * LZ4 header in the output stream.
  *
index 8266c117a3ef963376f90fc0aa2c3d25a1ffb37a..745578d85503c84b105544b47e29a2e0dbf437eb 100644 (file)
@@ -137,7 +137,7 @@ static const int dbObjectTypePriority[] =
        PRIO_DEFAULT_ACL,                       /* DO_DEFAULT_ACL */
        PRIO_TRANSFORM,                         /* DO_TRANSFORM */
        PRIO_LARGE_OBJECT,                      /* DO_LARGE_OBJECT */
-       PRIO_LARGE_OBJECT_DATA,         /* DO_LARGE_OJECT_DATA */
+       PRIO_LARGE_OBJECT_DATA,         /* DO_LARGE_OBJECT_DATA */
        PRIO_PRE_DATA_BOUNDARY,         /* DO_PRE_DATA_BOUNDARY */
        PRIO_POST_DATA_BOUNDARY,        /* DO_POST_DATA_BOUNDARY */
        PRIO_EVENT_TRIGGER,                     /* DO_EVENT_TRIGGER */
index cd421c5944385460aed1c0eda8b9100c130c5c45..7b7acc804486c9df1c5b69a0516be535adebf969 100644 (file)
@@ -1923,7 +1923,7 @@ dumpTimestamp(const char *msg)
 }
 
 /*
- * Helper function for rolenamehash hash table.
+ * Helper function for rolename_hash hash table.
  */
 static uint32
 hash_string_pointer(char *s)
index 46101899ae7d786c3a1a705445009716f3f8b339..4788c313a7f75a4d949f16a01ef45efe069440a7 100644 (file)
@@ -71,7 +71,7 @@ $node->issues_sql_like(
        'vacuumdb --no-process-main');
 $node->command_fails(
        [ 'vacuumdb', '--analyze-only', '--no-process-main', 'postgres' ],
-       '--analyze-only and --no-process_main specified together');
+       '--analyze-only and --no-process-main specified together');
 $node->issues_sql_like(
        [ 'vacuumdb', '--no-process-toast', 'postgres' ],
        qr/statement: VACUUM \(PROCESS_TOAST FALSE, SKIP_DATABASE_STATS\).*;/,
index e09b1126740327462792f52e7b3713fd7d66d987..bd414699f21cb03afa96f5f09bea83a348117275 100644 (file)
@@ -63,4 +63,4 @@ extern void offset_elem_desc(StringInfo buf, void *offset, void *data);
 extern void redirect_elem_desc(StringInfo buf, void *offset, void *data);
 extern void oid_elem_desc(StringInfo buf, void *relid, void *data);
 
-#endif                                                 /* RMGRDESC_UTILS_H */
+#endif                                                 /* RMGRDESC_UTILS_H_ */
index 2a0e2c0123926f5643ca4178e5aae927ccd43c0f..689799c42580150eeb85bc7a5130d85768f89bc2 100644 (file)
@@ -36,7 +36,7 @@ struct iovec
 #define PG_IOV_MAX Min(IOV_MAX, 32)
 
 /*
- * Note that pg_preadv and pg_writev have a pg_ prefix as a warning that the
+ * Note that pg_preadv and pg_pwritev have a pg_ prefix as a warning that the
  * Windows implementations have the side-effect of changing the file position.
  */
 
index bedee1e9cacaf1f1498a147b5164b8a6c4e4bbde..af0fe97c796d2a5f3c47cb174a5c567299b901ad 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "mb/pg_wchar.h"
 
-#include "miscadmin.h"                 /* needed by stacktoodeep */
+#include "miscadmin.h"                 /* needed by rstacktoodeep */
 
 
 /* overrides for regguts.h definitions, if any */
index 2439ba4e9616f0e83cfe079f6f425ce569d2ad02..ffa91131c88e2e3aad6fd531b187e938b7cf519a 100644 (file)
@@ -37,8 +37,8 @@
  * In some cases, for example when memory allocations become large, it's
  * possible fields 3 and 4 above are not large enough to store the values
  * required for the chunk.  In this case, the MemoryContext can choose to mark
- * the chunk as "external" by calling the MemoryChunkSetExternal() function.
- * When this is done, fields 3 and 4 are unavailable for use by the
+ * the chunk as "external" by calling the MemoryChunkSetHdrMaskExternal()
+ * function.  When this is done, fields 3 and 4 are unavailable for use by the
  * MemoryContext and it's up to the MemoryContext itself to devise its own
  * method for getting the reference to the block.
  *
index 395abfe596d7d3f25db16c67b4328970bc13688b..656a2e98976223039666aaeee9cc6abb5ea742c6 100644 (file)
@@ -146,7 +146,7 @@ typedef int (*SortTupleComparator) (const SortTuple *a, const SortTuple *b,
 
 /*
  * The public part of a Tuple sort operation state.  This data structure
- * containsthe  definition of sort-variant-specific interface methods and
+ * contains the definition of sort-variant-specific interface methods and
  * the part of Tuple sort operation state required by their implementations.
  */
 typedef struct
@@ -189,7 +189,7 @@ typedef struct
         * Function to do some specific release of resources for the sort variant.
         * In particular, this function should free everything stored in the "arg"
         * field, which wouldn't be cleared on reset of the Tuple sort memory
-        * contextes.  This can be NULL if nothing specific needs to be done.
+        * contexts.  This can be NULL if nothing specific needs to be done.
         */
        void            (*freestate) (Tuplesortstate *state);
 
index bf87ae3fd1a3f9f8557febbe63b0f1b3e2ec0174..95ded9eeaa00b44ae5097e557160fc754935a56d 100644 (file)
@@ -624,7 +624,7 @@ pqsecure_open_gss(PGconn *conn)
 
        if (conn->gssdeleg && pg_strcasecmp(conn->gssdeleg, "enable") == 0)
        {
-               /* Acquire credentials if possbile */
+               /* Acquire credentials if possible */
                if (conn->gcred == GSS_C_NO_CREDENTIAL)
                        (void) pg_GSS_have_cred_cache(&conn->gcred);
 
index f914916dd24a8938897e14a7c5f2d4b5b0656200..d9b382dba978a390db1fbe40928412315cc65dfa 100644 (file)
@@ -14,17 +14,17 @@ if ($ENV{PG_TEST_EXTRA} !~ /\bload_balance\b/)
 
 # This tests loadbalancing based on a DNS entry that contains multiple records
 # for different IPs. Since setting up a DNS server is more effort than we
-# consider reasonable to run this test, this situation is instead immitated by
+# consider reasonable to run this test, this situation is instead imitated by
 # using a hosts file where a single hostname maps to multiple different IP
-# addresses. This test requires the adminstrator to add the following lines to
-# the hosts file (if we detect that this hasn't happend we skip the test):
+# addresses. This test requires the administrator to add the following lines to
+# the hosts file (if we detect that this hasn't happened we skip the test):
 #
 # 127.0.0.1 pg-loadbalancetest
 # 127.0.0.2 pg-loadbalancetest
 # 127.0.0.3 pg-loadbalancetest
 #
 # Windows or Linux are required to run this test because these OSes allow
-# binding to 127.0.0.2 and 127.0.0.3 addresess by default, but other OSes
+# binding to 127.0.0.2 and 127.0.0.3 addresses by default, but other OSes
 # don't. We need to bind to different IP addresses, so that we can use these
 # different IP addresses in the hosts file.
 #
index bf7f06885eef404e9c5446a65f9ebe42dddc3344..6557cf878505f25da50c623302cdf394e97bce14 100644 (file)
@@ -400,7 +400,7 @@ pgreadlink(const char *path, char *buf, size_t size)
         * If the path starts with "\??\" followed by a "drive absolute" path
         * (known to Windows APIs as RtlPathTypeDriveAbsolute), then strip that
         * prefix.  This undoes some of the transformation performed by
-        * pqsymlink(), to get back to a format that users are used to seeing.  We
+        * pgsymlink(), to get back to a format that users are used to seeing.  We
         * don't know how to transform other path types that might be encountered
         * outside PGDATA, so we just return them directly.
         */
index bf12752529aa9d048fac69b6c308d04d76f40f8b..a5b79a1982ec5e958020a814e4200c7d80a92d23 100644 (file)
@@ -413,7 +413,7 @@ test_query(
 $node->connect_ok(
        $node->connstr('postgres')
          . " user=test1 host=$host hostaddr=$hostaddr gssencmode=disable require_auth=gss",
-       "GSS authentication requested, works with non-encyrpted GSS");
+       "GSS authentication requested, works with non-encrypted GSS");
 $node->connect_ok(
        $node->connstr('postgres')
          . " user=test1 host=$host hostaddr=$hostaddr gssencmode=require require_auth=gss",
index 8c69f660f5cfce8ca3b0f86d91b6d05281a89faf..3cc05b825501f7a883b98200606b3c1d93f3e7e2 100644 (file)
@@ -19,7 +19,7 @@ LdapServer - class for an LDAP server for testing pg_hba.conf authentication
 
   use LdapServer;
 
-  # have we found openldap binaies suitable for setting up a server?
+  # have we found openldap binaries suitable for setting up a server?
   my $ldap_binaries_found = $LdapServer::setup;
 
   # create a server with the given root password and auth type
@@ -254,7 +254,7 @@ sub _ldapenv
 
 =over
 
-=item ldap_add(filename)
+=item ldapadd_file(filename)
 
 filename is the path to a file containing LDIF data which is added to the LDAP
 server.
index 653a5e94792bf4913a69f3fd9d27542fb615be95..63dc852bf3c013d72c4089a86c3ade070084acca 100644 (file)
@@ -9,7 +9,7 @@ ldap_password_func_sources = files(
 if host_system == 'windows'
   ldap_password_func_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
     '--NAME', 'ldap_password_func',
-    '--FILEDESC', 'set hook to mutate ldapbindpassw',])
+    '--FILEDESC', 'set hook to mutate ldapbindpasswd',])
 endif
 
 ldap_password_func = shared_module('ldap_password_func',
index d767e284a29ea65de2ef1e908d620995c5b7e2f4..a9c102949f82c1d7da23c0edb20784035ecd19b5 100644 (file)
@@ -68,7 +68,7 @@ use Test::More;
 
 =over
 
-=item PostgreSQL::Test::BackroundPsql->new(interactive, @params)
+=item PostgreSQL::Test::BackgroundPsql->new(interactive, @params)
 
 Builds a new object of class C<PostgreSQL::Test::BackgroundPsql> for either
 an interactive or background session and starts it. If C<interactive> is
@@ -201,7 +201,7 @@ sub query
        $self->{timeout}->start() if (defined($self->{query_timer_restart}));
 
        # Feed the query to psql's stdin, followed by \n (so psql processes the
-       # line), by a ; (so that psql issues the query, if it doesnt't include a ;
+       # line), by a ; (so that psql issues the query, if it doesn't include a ;
        # itself), and a separator echoed with \echo, that we can wait on.
        my $banner = "background_psql: QUERY_SEPARATOR";
        $self->{stdin} .= "$query\n;\n\\echo $banner\n";
index f7bcb30ca4fff159f4773b24ab0bfa3926f5c035..48008fa8c3f6a7230b7a6829dc0c0b3cc11160b2 100644 (file)
@@ -276,7 +276,7 @@ test_status_print(bool ok, const char *testname, double runtime, bool parallel)
         * Testnumbers are padded to 5 characters to ensure that testnames align
         * vertically (assuming at most 9999 tests).  Testnames are prefixed with
         * a leading character to indicate being run in parallel or not. A leading
-        * '+' indicates a parellel test, '-' indicates a single test.
+        * '+' indicates a parallel test, '-' indicates a single test.
         */
        emit_tap_output(TEST_STATUS, "%sok %-5i%*s %c %-*s %8.0f ms",
                                        (ok ? "" : "not "),