Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8a8fbe7

Browse files
committed
Capitalization fixes
1 parent 223d14a commit 8a8fbe7

File tree

18 files changed

+26
-26
lines changed

18 files changed

+26
-26
lines changed

doc/src/sgml/config.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ SET ENABLE_SEQSCAN TO OFF;
259259
</indexterm>
260260
<listitem>
261261
<para>
262-
Specifies the name of an additional process-id (PID) file that the
262+
Specifies the name of an additional process-ID (PID) file that the
263263
server should create for use by server administration programs.
264264
This parameter can only be set at server start.
265265
</para>

doc/src/sgml/libpq.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6116,7 +6116,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
61166116
break;
61176117
}
61186118

6119-
/* unknown event id, just return TRUE. */
6119+
/* unknown event ID, just return TRUE. */
61206120
default:
61216121
break;
61226122
}
@@ -7553,7 +7553,7 @@ main(int argc, char **argv)
75537553
while ((notify = PQnotifies(conn)) != NULL)
75547554
{
75557555
fprintf(stderr,
7556-
"ASYNC NOTIFY of '%s' received from backend pid %d\n",
7556+
"ASYNC NOTIFY of '%s' received from backend PID %d\n",
75577557
notify->relname, notify->be_pid);
75587558
PQfreemem(notify);
75597559
nnotifies++;

doc/src/sgml/plpgsql.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3174,7 +3174,7 @@ RAISE NOTICE 'Calling cs_create_job(%)', v_job_id;
31743174
and hint:
31753175
<programlisting>
31763176
RAISE EXCEPTION 'Nonexistent ID --> %', user_id
3177-
USING HINT = 'Please check your user id';
3177+
USING HINT = 'Please check your user ID';
31783178
</programlisting>
31793179
</para>
31803180

doc/src/sgml/spi.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ Oid SPI_getargtypeid(SPIPlanPtr <parameter>plan</parameter>, int <parameter>argI
12311231

12321232
<para>
12331233
<function>SPI_getargtypeid</function> returns the OID representing the type
1234-
id for the <parameter>argIndex</parameter>'th argument of a plan prepared by
1234+
for the <parameter>argIndex</parameter>'th argument of a plan prepared by
12351235
<function>SPI_prepare</function>. First argument is at index zero.
12361236
</para>
12371237
</refsect1>
@@ -1263,7 +1263,7 @@ Oid SPI_getargtypeid(SPIPlanPtr <parameter>plan</parameter>, int <parameter>argI
12631263
<refsect1>
12641264
<title>Return Value</title>
12651265
<para>
1266-
The type id of the argument at the given index.
1266+
The type OID of the argument at the given index.
12671267
If the <parameter>plan</parameter> is <symbol>NULL</symbol> or invalid,
12681268
or <parameter>argIndex</parameter> is less than 0 or
12691269
not less than the number of arguments declared for the

doc/src/sgml/storage.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ last started with</entry>
121121

122122
<row>
123123
<entry><filename>postmaster.pid</></entry>
124-
<entry>A lock file recording the current postmaster process id (PID),
124+
<entry>A lock file recording the current postmaster process ID (PID),
125125
cluster data directory path,
126126
postmaster start timestamp,
127127
port number,

src/backend/bootstrap/bootparse.y

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Boot_CreateStmt:
248248
(Datum) 0,
249249
false,
250250
true);
251-
elog(DEBUG4, "relation created with oid %u", id);
251+
elog(DEBUG4, "relation created with OID %u", id);
252252
}
253253
do_end();
254254
}

src/backend/port/ipc_test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ main(int argc, char **argv)
303303
proc_exit(1);
304304
}
305305

306-
printf("forked child pid %d OK\n", cpid);
306+
printf("forked child PID %d OK\n", cpid);
307307

308308
if (storage->flag != 1234)
309309
printf("Wrong value found in shared memory!\n");

src/backend/port/win32/signal.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pqsignal(int signum, pqsigfunc handler)
171171
return prevfunc;
172172
}
173173

174-
/* Create the signal listener pipe for specified pid */
174+
/* Create the signal listener pipe for specified PID */
175175
HANDLE
176176
pgwin32_create_signal_listener(pid_t pid)
177177
{
@@ -186,7 +186,7 @@ pgwin32_create_signal_listener(pid_t pid)
186186

187187
if (pipe == INVALID_HANDLE_VALUE)
188188
ereport(ERROR,
189-
(errmsg("could not create signal listener pipe for pid %d: error code %d",
189+
(errmsg("could not create signal listener pipe for PID %d: error code %d",
190190
(int) pid, (int) GetLastError())));
191191

192192
return pipe;

src/backend/storage/buffer/bufmgr.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ MarkBufferDirty(Buffer buffer)
952952
volatile BufferDesc *bufHdr;
953953

954954
if (!BufferIsValid(buffer))
955-
elog(ERROR, "bad buffer id: %d", buffer);
955+
elog(ERROR, "bad buffer ID: %d", buffer);
956956

957957
if (BufferIsLocal(buffer))
958958
{
@@ -2198,7 +2198,7 @@ ReleaseBuffer(Buffer buffer)
21982198
volatile BufferDesc *bufHdr;
21992199

22002200
if (!BufferIsValid(buffer))
2201-
elog(ERROR, "bad buffer id: %d", buffer);
2201+
elog(ERROR, "bad buffer ID: %d", buffer);
22022202

22032203
ResourceOwnerForgetBuffer(CurrentResourceOwner, buffer);
22042204

@@ -2270,7 +2270,7 @@ SetBufferCommitInfoNeedsSave(Buffer buffer)
22702270
volatile BufferDesc *bufHdr;
22712271

22722272
if (!BufferIsValid(buffer))
2273-
elog(ERROR, "bad buffer id: %d", buffer);
2273+
elog(ERROR, "bad buffer ID: %d", buffer);
22742274

22752275
if (BufferIsLocal(buffer))
22762276
{

src/backend/storage/ipc/sinvaladt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ SharedInvalBackendInit(bool sendOnly)
323323
/* register exit routine to mark my entry inactive at exit */
324324
on_shmem_exit(CleanupInvalidationState, PointerGetDatum(segP));
325325

326-
elog(DEBUG4, "my backend id is %d", MyBackendId);
326+
elog(DEBUG4, "my backend ID is %d", MyBackendId);
327327
}
328328

329329
/*

src/backend/storage/lmgr/proc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable)
996996
{
997997
int pid = autovac->pid;
998998

999-
elog(DEBUG2, "sending cancel to blocking autovacuum pid = %d",
999+
elog(DEBUG2, "sending cancel to blocking autovacuum PID %d",
10001000
pid);
10011001

10021002
/* don't hold the lock across the kill() syscall */

src/backend/storage/smgr/smgrtype.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ smgrout(PG_FUNCTION_ARGS)
5454
char *s;
5555

5656
if (i >= NStorageManagers || i < 0)
57-
elog(ERROR, "invalid storage manager id: %d", i);
57+
elog(ERROR, "invalid storage manager ID: %d", i);
5858

5959
s = pstrdup(StorageManager[i].smgr_name);
6060
PG_RETURN_CSTRING(s);

src/backend/utils/cache/inval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ LocalExecuteInvalidationMessage(SharedInvalidationMessage *msg)
529529
RelationMapInvalidate(false);
530530
}
531531
else
532-
elog(FATAL, "unrecognized SI message id: %d", msg->id);
532+
elog(FATAL, "unrecognized SI message ID: %d", msg->id);
533533
}
534534

535535
/*

src/backend/utils/cache/syscache.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* These routines allow the parser/planner/executor to perform
1515
* rapid lookups on the contents of the system catalogs.
1616
*
17-
* see utils/syscache.h for a list of the cache id's
17+
* see utils/syscache.h for a list of the cache IDs
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -842,7 +842,7 @@ SearchSysCache(int cacheId,
842842
{
843843
if (cacheId < 0 || cacheId >= SysCacheSize ||
844844
!PointerIsValid(SysCache[cacheId]))
845-
elog(ERROR, "invalid cache id: %d", cacheId);
845+
elog(ERROR, "invalid cache ID: %d", cacheId);
846846

847847
return SearchCatCache(SysCache[cacheId], key1, key2, key3, key4);
848848
}
@@ -1026,7 +1026,7 @@ SysCacheGetAttr(int cacheId, HeapTuple tup,
10261026
*/
10271027
if (cacheId < 0 || cacheId >= SysCacheSize ||
10281028
!PointerIsValid(SysCache[cacheId]))
1029-
elog(ERROR, "invalid cache id: %d", cacheId);
1029+
elog(ERROR, "invalid cache ID: %d", cacheId);
10301030
if (!PointerIsValid(SysCache[cacheId]->cc_tupdesc))
10311031
{
10321032
InitCatCachePhase2(SysCache[cacheId], false);
@@ -1047,7 +1047,7 @@ SearchSysCacheList(int cacheId, int nkeys,
10471047
{
10481048
if (cacheId < 0 || cacheId >= SysCacheSize ||
10491049
!PointerIsValid(SysCache[cacheId]))
1050-
elog(ERROR, "invalid cache id: %d", cacheId);
1050+
elog(ERROR, "invalid cache ID: %d", cacheId);
10511051

10521052
return SearchCatCacheList(SysCache[cacheId], nkeys,
10531053
key1, key2, key3, key4);

src/backend/utils/init/postinit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username,
489489
SharedInvalBackendInit(false);
490490

491491
if (MyBackendId > MaxBackends || MyBackendId <= 0)
492-
elog(FATAL, "bad backend id: %d", MyBackendId);
492+
elog(FATAL, "bad backend ID: %d", MyBackendId);
493493

494494
/* Now that we have a BackendId, we can participate in ProcSignal */
495495
ProcSignalInit(MyBackendId);

src/interfaces/ecpg/ecpglib/execute.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ ecpg_execute(struct statement * stmt)
16981698
notify = PQnotifies(stmt->connection->connection);
16991699
if (notify)
17001700
{
1701-
ecpg_log("ecpg_execute on line %d: asynchronous notification of \"%s\" from backend pid %d received\n",
1701+
ecpg_log("ecpg_execute on line %d: asynchronous notification of \"%s\" from backend PID %d received\n",
17021702
stmt->lineno, notify->relname, notify->be_pid);
17031703
PQfreemem(notify);
17041704
}

src/test/examples/testlibpq2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ main(int argc, char **argv)
121121
while ((notify = PQnotifies(conn)) != NULL)
122122
{
123123
fprintf(stderr,
124-
"ASYNC NOTIFY of '%s' received from backend pid %d\n",
124+
"ASYNC NOTIFY of '%s' received from backend PID %d\n",
125125
notify->relname, notify->be_pid);
126126
PQfreemem(notify);
127127
nnotifies++;

src/test/regress/pg_regress.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
23102310
#else
23112311
#define ULONGPID(x) (unsigned long) (x)
23122312
#endif
2313-
printf(_("running on port %d with pid %lu\n"),
2313+
printf(_("running on port %d with PID %lu\n"),
23142314
port, ULONGPID(postmaster_pid));
23152315
}
23162316
else

0 commit comments

Comments
 (0)