mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Fix typos in the code
Author: Vignesh C Reviewed-by: Dilip Kumar, Michael Paquier Discussion: https://postgr.es/m/CALDaNm0ni+GAOe4+fbXiOxNrVudajMYmhJFtXGX-zBPoN8ixhw@mail.gmail.com
This commit is contained in:
@ -501,8 +501,8 @@ toast_fetch_datum(struct varlena *attr)
|
||||
* in the toast relation
|
||||
*
|
||||
* Note that this function supports non-compressed external datums
|
||||
* and compressed external datums (in which case the requrested slice
|
||||
* has to be a prefix, i.e. sliceoffset has to be 0).
|
||||
* and compressed external datums (in which case the requested slice
|
||||
* has to be a prefix, i.e. sliceoffset has to be 0).
|
||||
* ----------
|
||||
*/
|
||||
static struct varlena *
|
||||
|
@ -814,7 +814,7 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
|
||||
final->firstoldonright < state->newitemoff + MAX_LEAF_INTERVAL)
|
||||
{
|
||||
/*
|
||||
* Avoid the problem by peforming a 50:50 split when the new item is
|
||||
* Avoid the problem by performing a 50:50 split when the new item is
|
||||
* just to the right of the would-be "many duplicates" split point.
|
||||
*/
|
||||
final = &state->splits[0];
|
||||
|
@ -1052,7 +1052,7 @@ XLogWalRcvFlush(bool dying)
|
||||
* false, this is a no-op.
|
||||
*
|
||||
* If 'requestReply' is true, requests the server to reply immediately upon
|
||||
* receiving this message. This is used for heartbearts, when approaching
|
||||
* receiving this message. This is used for heartbeats, when approaching
|
||||
* wal_receiver_timeout.
|
||||
*/
|
||||
static void
|
||||
|
@ -476,7 +476,7 @@ sort_item_compare(const void *a, const void *b, void *arg)
|
||||
* build_column_frequencies
|
||||
* compute frequencies of values in each column
|
||||
*
|
||||
* This returns an array of SortItems for each attibute the MCV is built
|
||||
* This returns an array of SortItems for each attribute the MCV is built
|
||||
* on, with a frequency (number of occurrences) for each value. This is
|
||||
* then used to compute "base" frequency of MCV items.
|
||||
*
|
||||
|
@ -1208,7 +1208,7 @@ BufferAlloc(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
|
||||
LWLockAcquire(newPartitionLock, LW_EXCLUSIVE);
|
||||
/* remember we have no old-partition lock or tag */
|
||||
oldPartitionLock = NULL;
|
||||
/* this just keeps the compiler quiet about uninit variables */
|
||||
/* keep the compiler quiet about uninitialized variables */
|
||||
oldHash = 0;
|
||||
}
|
||||
|
||||
|
@ -636,7 +636,7 @@ PublishStartupProcessInformation(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Used from bufgr to share the value of the buffer that Startup waits on,
|
||||
* Used from bufmgr to share the value of the buffer that Startup waits on,
|
||||
* or to reset the value to "not waiting" (-1). This allows processing
|
||||
* of recovery conflicts for buffer pins. Set is made before backends look
|
||||
* at this value, so locking not required, especially since the set is
|
||||
|
@ -205,7 +205,7 @@ struct ColumnIOData
|
||||
Oid typid; /* column type id */
|
||||
int32 typmod; /* column type modifier */
|
||||
TypeCat typcat; /* column type category */
|
||||
ScalarIOData scalar_io; /* metadata cache for directi conversion
|
||||
ScalarIOData scalar_io; /* metadata cache for direct conversion
|
||||
* through input function */
|
||||
union
|
||||
{
|
||||
|
@ -1692,7 +1692,7 @@ FreePageManagerPutInternal(FreePageManager *fpm, Size first_page, Size npages,
|
||||
|
||||
/*
|
||||
* The act of allocating pages to recycle may have invalidated the
|
||||
* results of our previous btree reserch, so repeat it. (We could
|
||||
* results of our previous btree research, so repeat it. (We could
|
||||
* recheck whether any of our split-avoidance strategies that were
|
||||
* not viable before now are, but it hardly seems worthwhile, so
|
||||
* we don't bother. Consolidation can't be possible now if it
|
||||
|
@ -333,7 +333,7 @@ reap_child(bool wait_for_child)
|
||||
thread_handles[thread_num] = thread_handles[parallel_jobs - 1];
|
||||
|
||||
/*
|
||||
* Move last active thead arg struct into the now-dead slot, and the
|
||||
* Move last active thread arg struct into the now-dead slot, and the
|
||||
* now-dead slot to the end for reuse by the next thread. Though the
|
||||
* thread struct is in use by another thread, we can safely swap the
|
||||
* struct pointers within the array.
|
||||
|
@ -1490,7 +1490,7 @@ psql_completion(const char *text, int start, int end)
|
||||
else if (TailMatches("CREATE"))
|
||||
matches = completion_matches(text, create_command_generator);
|
||||
|
||||
/* complete with somthing you can create or replace */
|
||||
/* complete with something you can create or replace */
|
||||
else if (TailMatches("CREATE", "OR", "REPLACE"))
|
||||
COMPLETE_WITH("FUNCTION", "PROCEDURE", "LANGUAGE", "RULE", "VIEW",
|
||||
"AGGREGATE", "TRANSFORM");
|
||||
|
@ -819,7 +819,7 @@ rfmtlong(long lng_val, const char *fmt, char *outbuf)
|
||||
sign = 1;
|
||||
if (leftalign)
|
||||
{
|
||||
/* can't use strncat(,,0) here, Solaris would freek out */
|
||||
/* can't use strncat(,,0) here, Solaris would freak out */
|
||||
if (sign)
|
||||
if (signdone)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "pgtypeslib_extern.h"
|
||||
|
||||
/* copy&pasted from .../src/backend/utils/adt/datetime.c
|
||||
* and changesd struct pg_tm to struct tm
|
||||
* and changed struct pg_tm to struct tm
|
||||
*/
|
||||
static void
|
||||
AdjustFractSeconds(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale)
|
||||
@ -35,7 +35,7 @@ AdjustFractSeconds(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale
|
||||
|
||||
|
||||
/* copy&pasted from .../src/backend/utils/adt/datetime.c
|
||||
* and changesd struct pg_tm to struct tm
|
||||
* and changed struct pg_tm to struct tm
|
||||
*/
|
||||
static void
|
||||
AdjustFractDays(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale)
|
||||
@ -88,7 +88,7 @@ ISO8601IntegerWidth(const char *fieldstart)
|
||||
|
||||
|
||||
/* copy&pasted from .../src/backend/utils/adt/datetime.c
|
||||
* and changesd struct pg_tm to struct tm
|
||||
* and changed struct pg_tm to struct tm
|
||||
*/
|
||||
static inline void
|
||||
ClearPgTm(struct /* pg_ */ tm *tm, fsec_t *fsec)
|
||||
@ -104,7 +104,7 @@ ClearPgTm(struct /* pg_ */ tm *tm, fsec_t *fsec)
|
||||
|
||||
/* copy&pasted from .../src/backend/utils/adt/datetime.c
|
||||
*
|
||||
* * changesd struct pg_tm to struct tm
|
||||
* * changed struct pg_tm to struct tm
|
||||
*
|
||||
* * Made the function static
|
||||
*/
|
||||
@ -311,7 +311,7 @@ DecodeISO8601Interval(char *str,
|
||||
/* copy&pasted from .../src/backend/utils/adt/datetime.c
|
||||
* with 3 exceptions
|
||||
*
|
||||
* * changesd struct pg_tm to struct tm
|
||||
* * changed struct pg_tm to struct tm
|
||||
*
|
||||
* * ECPG code called this without a 'range' parameter
|
||||
* removed 'int range' from the argument list and
|
||||
|
Reference in New Issue
Block a user