Commit 20b4323b authored by Bruce Momjian's avatar Bruce Momjian

C comments: "a" <--> "an" corrections

Reported-by: Michael Paquier, Abhijit Menon-Sen

Discussion: https://postgr.es/m/20180305045854.GB2266@paquier.xyz

Author: Michael Paquier, Abhijit Menon-Sen, me
parent 3282c4c1
...@@ -177,7 +177,7 @@ AC_DEFUN([PGAC_STRUCT_ADDRINFO], ...@@ -177,7 +177,7 @@ AC_DEFUN([PGAC_STRUCT_ADDRINFO],
# handle ll, q, and I64. The result is in shell variable # handle ll, q, and I64. The result is in shell variable
# LONG_LONG_INT_MODIFIER. # LONG_LONG_INT_MODIFIER.
# #
# MinGW uses '%I64d', though gcc throws an warning with -Wall, # MinGW uses '%I64d', though gcc throws a warning with -Wall,
# while '%lld' doesn't generate a warning, but doesn't work. # while '%lld' doesn't generate a warning, but doesn't work.
# #
AC_DEFUN([PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER], AC_DEFUN([PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER],
......
...@@ -381,7 +381,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot) ...@@ -381,7 +381,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot)
/* /*
* All subtree is empty - just return true to indicate that parent * All subtree is empty - just return true to indicate that parent
* must do a cleanup. Unless we are ROOT an there is way to go upper. * must do a cleanup, unless we are ROOT and there is way to go upper.
*/ */
if (hasEmptyChild && !hasNonEmptyChild && !isRoot) if (hasEmptyChild && !hasNonEmptyChild && !isRoot)
......
...@@ -5280,7 +5280,7 @@ pg_extension_ownercheck(Oid ext_oid, Oid roleid) ...@@ -5280,7 +5280,7 @@ pg_extension_ownercheck(Oid ext_oid, Oid roleid)
} }
/* /*
* Ownership check for an publication (specified by OID). * Ownership check for a publication (specified by OID).
*/ */
bool bool
pg_publication_ownercheck(Oid pub_oid, Oid roleid) pg_publication_ownercheck(Oid pub_oid, Oid roleid)
......
...@@ -1539,7 +1539,7 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap, ...@@ -1539,7 +1539,7 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
frozenXid, cutoffMulti, mapped_tables); frozenXid, cutoffMulti, mapped_tables);
/* /*
* If it's a system catalog, queue an sinval message to flush all * If it's a system catalog, queue a sinval message to flush all
* catcaches on the catalog when we reach CommandCounterIncrement. * catcaches on the catalog when we reach CommandCounterIncrement.
*/ */
if (is_system_catalog) if (is_system_catalog)
......
...@@ -49,7 +49,7 @@ InstrAlloc(int n, int instrument_options) ...@@ -49,7 +49,7 @@ InstrAlloc(int n, int instrument_options)
return instr; return instr;
} }
/* Initialize an pre-allocated instrumentation structure. */ /* Initialize a pre-allocated instrumentation structure. */
void void
InstrInit(Instrumentation *instr, int instrument_options) InstrInit(Instrumentation *instr, int instrument_options)
{ {
......
...@@ -100,7 +100,7 @@ pq_beginmessage(StringInfo buf, char msgtype) ...@@ -100,7 +100,7 @@ pq_beginmessage(StringInfo buf, char msgtype)
* pq_beginmessage_reuse - initialize for sending a message, reuse buffer * pq_beginmessage_reuse - initialize for sending a message, reuse buffer
* *
* This requires the buffer to be allocated in an sufficiently long-lived * This requires the buffer to be allocated in a sufficiently long-lived
* memory context. * memory context.
* -------------------------------- * --------------------------------
*/ */
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
token = pg_strtok(&length); /* get field value */ \ token = pg_strtok(&length); /* get field value */ \
local_node->fldname = pg_strtouint64(token, NULL, 10) local_node->fldname = pg_strtouint64(token, NULL, 10)
/* Read an long integer field (anything written as ":fldname %ld") */ /* Read a long integer field (anything written as ":fldname %ld") */
#define READ_LONG_FIELD(fldname) \ #define READ_LONG_FIELD(fldname) \
token = pg_strtok(&length); /* skip :fldname */ \ token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \ token = pg_strtok(&length); /* get field value */ \
......
...@@ -694,7 +694,7 @@ reltime2tm(RelativeTime time, struct pg_tm *tm) ...@@ -694,7 +694,7 @@ reltime2tm(RelativeTime time, struct pg_tm *tm)
/* /*
* tintervalin - converts an tinterval string to internal format * tintervalin - converts a tinterval string to internal format
*/ */
Datum Datum
tintervalin(PG_FUNCTION_ARGS) tintervalin(PG_FUNCTION_ARGS)
......
...@@ -2420,7 +2420,7 @@ RelationDestroyRelation(Relation relation, bool remember_tupdesc) ...@@ -2420,7 +2420,7 @@ RelationDestroyRelation(Relation relation, bool remember_tupdesc)
* NB: when rebuilding, we'd better hold some lock on the relation, * NB: when rebuilding, we'd better hold some lock on the relation,
* else the catalog data we need to read could be changing under us. * else the catalog data we need to read could be changing under us.
* Also, a rel to be rebuilt had better have refcnt > 0. This is because * Also, a rel to be rebuilt had better have refcnt > 0. This is because
* an sinval reset could happen while we're accessing the catalogs, and * a sinval reset could happen while we're accessing the catalogs, and
* the rel would get blown away underneath us by RelationCacheInvalidate * the rel would get blown away underneath us by RelationCacheInvalidate
* if it has zero refcnt. * if it has zero refcnt.
* *
......
...@@ -583,7 +583,7 @@ SELECT LEAST(:i, :i, :i, :i, :i, :i, :i, :i, :i, :i, :i); ...@@ -583,7 +583,7 @@ SELECT LEAST(:i, :i, :i, :i, :i, :i, :i, :i, :i, :i, :i);
0, 0,
[ qr{cannot coerce boolean to int} ], [ qr{cannot coerce boolean to int} ],
q{\set i TRUE + 2} ], q{\set i TRUE + 2} ],
[ 'set not an double', [ 'set not a double',
0, 0,
[ qr{cannot coerce boolean to double} ], [ qr{cannot coerce boolean to double} ],
q{\set d ln(TRUE)} ], q{\set d ln(TRUE)} ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment