Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run through spell checker. Adjusted only code comments, though. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compress_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ DeflateCompressorZlib(ArchiveHandle *AH, CompressorState *cs, bool flush)
if (zp->avail_out < cs->zlibOutSize)
{
/*
* Any write function shoud do its own error checking but to
* Any write function should do its own error checking but to
* make sure we do a check here as well...
*/
size_t len = cs->zlibOutSize - zp->avail_out;
Expand Down
12 changes: 6 additions & 6 deletions dumputils.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fmtQualifiedId(int remoteVersion, const char *schema, const char *id)
* returned by PQserverVersion()) as a string. This exists mainly to
* encapsulate knowledge about two-part vs. three-part version numbers.
*
* For re-entrancy, caller must supply the buffer the string is put in.
* For reentrancy, caller must supply the buffer the string is put in.
* Recommended size of the buffer is 32 bytes.
*
* Returns address of 'buf', as a notational convenience.
Expand Down Expand Up @@ -310,7 +310,7 @@ appendStringLiteralConn(PQExpBuffer buf, const char *str, PGconn *conn)
size_t length = strlen(str);

/*
* XXX This is a kluge to silence escape_string_warning in our utility
* XXX This is a kludge to silence escape_string_warning in our utility
* programs. It should go away someday.
*/
if (strchr(str, '\\') != NULL && PQserverVersion(conn) >= 80100)
Expand All @@ -322,7 +322,7 @@ appendStringLiteralConn(PQExpBuffer buf, const char *str, PGconn *conn)
appendStringLiteral(buf, str, PQclientEncoding(conn), false);
return;
}
/* XXX end kluge */
/* XXX end kludge */

if (!enlargePQExpBuffer(buf, 2 * length + 2))
return;
Expand Down Expand Up @@ -1003,9 +1003,9 @@ buildDefaultACLCommands(const char *type, const char *nspname,
* group groupname=privilegecodes/grantor
* (the /grantor part will not be present if pre-7.4 database).
*
* The returned grantee string will be the dequoted username or groupname
* The returned grantee string will be the unquoted username or groupname
* (preceded with "group " in the latter case). The returned grantor is
* the dequoted grantor name or empty. Privilege characters are decoded
* the unquoted grantor name or empty. Privilege characters are decoded
* and split between privileges with grant option (privswgo) and without
* (privs).
*
Expand Down Expand Up @@ -1171,7 +1171,7 @@ do { \

/*
* Transfer a user or group name starting at *input into the output buffer,
* dequoting if needed. Returns a pointer to just past the input name.
* unquoting if needed. Returns a pointer to just past the input name.
* The name is taken to end at an unquoted '=' or end of string.
*/
static char *
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_archiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
* one physical output line. This prevents confusion when the
* file is read by "pg_restore -L". Note that we currently don't
* bother to quote names, meaning that the name fields aren't
* automatically parseable. "pg_restore -L" doesn't care because
* automatically parsable. "pg_restore -L" doesn't care because
* it only examines the dumpId field, but someday we might want to
* try harder.
*/
Expand Down
4 changes: 2 additions & 2 deletions pg_backup_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Implements the custom output format.
*
* The comments with the routined in this code are a good place to
* The comments with the routine in this code are a good place to
* understand how to write a new format.
*
* See the headers to pg_restore for more details.
Expand Down Expand Up @@ -687,7 +687,7 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
* the process of saving it to files. No data should be written prior
* to this point, since the user could sort the TOC after creating it.
*
* If an archive is to be written, this toutine must call:
* If an archive is to be written, this routine must call:
* WriteHead to save the archive header
* WriteToc to save the TOC entries
* WriteDataChunks to save all DATA & BLOBs.
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ _PrintTocData(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt)
* If we're writing the special restore.sql script, emit a suitable
* command to include each table's data from the corresponding file.
*
* In the COPY case this is a bit klugy because the regular COPY command
* In the COPY case this is a bit kludgy because the regular COPY command
* was already printed before we get control.
*/
if (ctx->isSpecialScript)
Expand Down
8 changes: 4 additions & 4 deletions pg_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ main(int argc, char **argv)
/*
* In binary-upgrade mode, we do not have to worry about the actual blob
* data or the associated metadata that resides in the pg_largeobject and
* pg_largeobject_metadata tables, respectivly.
* pg_largeobject_metadata tables, respectively.
*
* However, we do need to collect blob information as there may be
* comments or other information on blobs that we do need to dump out.
Expand Down Expand Up @@ -1086,7 +1086,7 @@ setup_connection(Archive *AH, const char *dumpencoding,
* passed a snapshot. As long as the snapshot is acquired in a
* SERIALIZABLE, READ ONLY, DEFERRABLE transaction, its use within a
* REPEATABLE READ transaction provides the appropriate integrity
* guarantees. This is a kluge, but safe for back-patching.
* guarantees. This is a kludge, but safe for back-patching.
*/
if (serializable_deferrable && AH->sync_snapshot_id == NULL)
ExecuteSqlStatement(AH,
Expand Down Expand Up @@ -1608,7 +1608,7 @@ dumpTableData_copy(Archive *fout, void *dcontext)
{
/* Note: this syntax is only supported in 8.2 and up */
appendPQExpBufferStr(q, "COPY (SELECT ");
/* klugery to get rid of parens in column list */
/* kludgery to get rid of parens in column list */
if (strlen(column_list) > 2)
{
appendPQExpBufferStr(q, column_list + 1);
Expand Down Expand Up @@ -1914,7 +1914,7 @@ dumpTableData(Archive *fout, TableDataInfo *tdinfo)
{
/* Dump/restore using COPY */
dumpFn = dumpTableData_copy;
/* must use 2 steps here 'cause fmtId is nonreentrant */
/* must use 2 steps here 'cause fmtId is non-reentrant */
appendPQExpBuffer(copyBuf, "COPY %s ",
fmtQualifiedDumpable(tbinfo));
appendPQExpBuffer(copyBuf, "%s %sFROM stdin;\n",
Expand Down