Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c80b5f66
Commit
c80b5f66
authored
Sep 05, 2015
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix misc typos.
Oskari Saarenmaa. Backpatch to stable branches where applicable.
parent
c39f5674
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
25 additions
and
25 deletions
+25
-25
contrib/btree_gist/btree_ts.c
contrib/btree_gist/btree_ts.c
+1
-1
contrib/btree_gist/btree_utils_var.c
contrib/btree_gist/btree_utils_var.c
+1
-1
contrib/cube/cube.c
contrib/cube/cube.c
+1
-1
doc/src/sgml/ref/alter_role.sgml
doc/src/sgml/ref/alter_role.sgml
+2
-2
doc/src/sgml/release-9.5.sgml
doc/src/sgml/release-9.5.sgml
+2
-2
doc/src/sgml/sources.sgml
doc/src/sgml/sources.sgml
+1
-1
src/backend/access/brin/brin_revmap.c
src/backend/access/brin/brin_revmap.c
+2
-2
src/backend/access/common/heaptuple.c
src/backend/access/common/heaptuple.c
+1
-1
src/backend/access/gin/ginfast.c
src/backend/access/gin/ginfast.c
+2
-2
src/backend/access/gist/gistproc.c
src/backend/access/gist/gistproc.c
+2
-2
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+2
-2
src/backend/access/heap/rewriteheap.c
src/backend/access/heap/rewriteheap.c
+2
-2
src/backend/access/transam/xact.c
src/backend/access/transam/xact.c
+1
-1
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/costsize.c
+1
-1
src/backend/replication/logical/origin.c
src/backend/replication/logical/origin.c
+1
-1
src/backend/utils/adt/regproc.c
src/backend/utils/adt/regproc.c
+1
-1
src/include/storage/lwlock.h
src/include/storage/lwlock.h
+2
-2
No files found.
contrib/btree_gist/btree_ts.c
View file @
c80b5f66
...
@@ -369,7 +369,7 @@ gbt_ts_penalty(PG_FUNCTION_ARGS)
...
@@ -369,7 +369,7 @@ gbt_ts_penalty(PG_FUNCTION_ARGS)
newdbl
[
2
];
newdbl
[
2
];
/*
/*
* We are al
l
ways using "double" timestamps here. Precision should be good
* We are always using "double" timestamps here. Precision should be good
* enough.
* enough.
*/
*/
orgdbl
[
0
]
=
((
double
)
origentry
->
lower
);
orgdbl
[
0
]
=
((
double
)
origentry
->
lower
);
...
...
contrib/btree_gist/btree_utils_var.c
View file @
c80b5f66
...
@@ -52,7 +52,7 @@ gbt_var_decompress(PG_FUNCTION_ARGS)
...
@@ -52,7 +52,7 @@ gbt_var_decompress(PG_FUNCTION_ARGS)
PG_RETURN_POINTER
(
entry
);
PG_RETURN_POINTER
(
entry
);
}
}
/* Returns a better readable representaion of variable key ( sets pointer ) */
/* Returns a better readable representa
t
ion of variable key ( sets pointer ) */
GBT_VARKEY_R
GBT_VARKEY_R
gbt_var_key_readable
(
const
GBT_VARKEY
*
k
)
gbt_var_key_readable
(
const
GBT_VARKEY
*
k
)
{
{
...
...
contrib/cube/cube.c
View file @
c80b5f66
...
@@ -814,7 +814,7 @@ cube_inter(PG_FUNCTION_ARGS)
...
@@ -814,7 +814,7 @@ cube_inter(PG_FUNCTION_ARGS)
Max
(
LL_COORD
(
b
,
i
),
UR_COORD
(
b
,
i
))
Max
(
LL_COORD
(
b
,
i
),
UR_COORD
(
b
,
i
))
);
);
}
}
/* continue on the higher dime
m
sions only present in 'a' */
/* continue on the higher dime
n
sions only present in 'a' */
for
(;
i
<
DIM
(
a
);
i
++
)
for
(;
i
<
DIM
(
a
);
i
++
)
{
{
result
->
x
[
i
]
=
Max
(
0
,
result
->
x
[
i
]
=
Max
(
0
,
...
...
doc/src/sgml/ref/alter_role.sgml
View file @
c80b5f66
...
@@ -138,7 +138,7 @@ ALTER ROLE { <replaceable class="PARAMETER">role_specification</replaceable> | A
...
@@ -138,7 +138,7 @@ ALTER ROLE { <replaceable class="PARAMETER">role_specification</replaceable> | A
<term>CURRENT_USER</term>
<term>CURRENT_USER</term>
<listitem>
<listitem>
<para>
<para>
Alter the current user instead of an explicit
e
ly identified role.
Alter the current user instead of an explicitly identified role.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -147,7 +147,7 @@ ALTER ROLE { <replaceable class="PARAMETER">role_specification</replaceable> | A
...
@@ -147,7 +147,7 @@ ALTER ROLE { <replaceable class="PARAMETER">role_specification</replaceable> | A
<term>SESSION_USER</term>
<term>SESSION_USER</term>
<listitem>
<listitem>
<para>
<para>
Alter the current session user instead of an explicit
e
ly identified
Alter the current session user instead of an explicitly identified
role.
role.
</para>
</para>
</listitem>
</listitem>
...
...
doc/src/sgml/release-9.5.sgml
View file @
c80b5f66
...
@@ -460,7 +460,7 @@ FIXME: Add Andres
...
@@ -460,7 +460,7 @@ FIXME: Add Andres
<!--
<!--
2014-07-01 [9f03ca9] Robert..: Avoid copying index tuples when building an ind..
2014-07-01 [9f03ca9] Robert..: Avoid copying index tuples when building an ind..
-->
-->
Speed up CREATE INDEX by avoiding unnec
c
essary memory copies (Robert Haas)
Speed up CREATE INDEX by avoiding unnecessary memory copies (Robert Haas)
</para>
</para>
</listitem>
</listitem>
...
@@ -1111,7 +1111,7 @@ FIXME: Correct description
...
@@ -1111,7 +1111,7 @@ FIXME: Correct description
-->
-->
<para>
<para>
Allow changing of the <acronym>WAL</acronym>
Allow changing of the <acronym>WAL</acronym>
logging status of a table ater creation with <link
logging status of a table a
f
ter creation with <link
linkend="SQL-ALTERTABLE"><command>ALTER TABLE .. SET LOGGED /
linkend="SQL-ALTERTABLE"><command>ALTER TABLE .. SET LOGGED /
UNLOGGED</></> (Fabrízio de Royes Mello)
UNLOGGED</></> (Fabrízio de Royes Mello)
</para>
</para>
...
...
doc/src/sgml/sources.sgml
View file @
c80b5f66
...
@@ -251,7 +251,7 @@ ereport(ERROR,
...
@@ -251,7 +251,7 @@ ereport(ERROR,
</listitem>
</listitem>
<listitem>
<listitem>
<para>
<para>
<function>errdetail_log_plural(const char *fmt_singuar, const char
<function>errdetail_log_plural(const char *fmt_singu
l
ar, const char
*fmt_plural, unsigned long n, ...)</function> is like
*fmt_plural, unsigned long n, ...)</function> is like
<function>errdetail_log</>, but with support for various plural forms of
<function>errdetail_log</>, but with support for various plural forms of
the message.
the message.
...
...
src/backend/access/brin/brin_revmap.c
View file @
c80b5f66
...
@@ -127,7 +127,7 @@ brinRevmapExtend(BrinRevmap *revmap, BlockNumber heapBlk)
...
@@ -127,7 +127,7 @@ brinRevmapExtend(BrinRevmap *revmap, BlockNumber heapBlk)
* it's not long enough.
* it's not long enough.
*
*
* The returned buffer is also recorded in the revmap struct; finishing that
* The returned buffer is also recorded in the revmap struct; finishing that
* releases the buffer, therefore the caller needn't do it explicit
e
ly.
* releases the buffer, therefore the caller needn't do it explicitly.
*/
*/
Buffer
Buffer
brinLockRevmapPageForUpdate
(
BrinRevmap
*
revmap
,
BlockNumber
heapBlk
)
brinLockRevmapPageForUpdate
(
BrinRevmap
*
revmap
,
BlockNumber
heapBlk
)
...
@@ -314,7 +314,7 @@ revmap_get_blkno(BrinRevmap *revmap, BlockNumber heapBlk)
...
@@ -314,7 +314,7 @@ revmap_get_blkno(BrinRevmap *revmap, BlockNumber heapBlk)
* Obtain and return a buffer containing the revmap page for the given heap
* Obtain and return a buffer containing the revmap page for the given heap
* page. The revmap must have been previously extended to cover that page.
* page. The revmap must have been previously extended to cover that page.
* The returned buffer is also recorded in the revmap struct; finishing that
* The returned buffer is also recorded in the revmap struct; finishing that
* releases the buffer, therefore the caller needn't do it explicit
e
ly.
* releases the buffer, therefore the caller needn't do it explicitly.
*/
*/
static
Buffer
static
Buffer
revmap_get_buffer
(
BrinRevmap
*
revmap
,
BlockNumber
heapBlk
)
revmap_get_buffer
(
BrinRevmap
*
revmap
,
BlockNumber
heapBlk
)
...
...
src/backend/access/common/heaptuple.c
View file @
c80b5f66
...
@@ -805,7 +805,7 @@ heap_modify_tuple(HeapTuple tuple,
...
@@ -805,7 +805,7 @@ heap_modify_tuple(HeapTuple tuple,
* repl information, as appropriate.
* repl information, as appropriate.
*
*
* NOTE: it's debatable whether to use heap_deform_tuple() here or just
* NOTE: it's debatable whether to use heap_deform_tuple() here or just
* heap_getattr() only the non-replaced colums. The latter could win if
* heap_getattr() only the non-replaced colum
n
s. The latter could win if
* there are many replaced columns and few non-replaced ones. However,
* there are many replaced columns and few non-replaced ones. However,
* heap_deform_tuple costs only O(N) while the heap_getattr way would cost
* heap_deform_tuple costs only O(N) while the heap_getattr way would cost
* O(N^2) if there are many non-replaced columns, so it seems better to
* O(N^2) if there are many non-replaced columns, so it seems better to
...
...
src/backend/access/gin/ginfast.c
View file @
c80b5f66
...
@@ -888,8 +888,8 @@ ginInsertCleanup(GinState *ginstate,
...
@@ -888,8 +888,8 @@ ginInsertCleanup(GinState *ginstate,
* locking */
* locking */
/*
/*
* remove read
ed
pages from pending list, at this point all
* remove read pages from pending list, at this point all
* content of read
ed
pages is in regular structure
* content of read pages is in regular structure
*/
*/
if
(
shiftList
(
index
,
metabuffer
,
blkno
,
stats
))
if
(
shiftList
(
index
,
metabuffer
,
blkno
,
stats
))
{
{
...
...
src/backend/access/gist/gistproc.c
View file @
c80b5f66
...
@@ -588,7 +588,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
...
@@ -588,7 +588,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
* We first consider splits where b is the lower bound of an entry.
* We first consider splits where b is the lower bound of an entry.
* We iterate through all entries, and for each b, calculate the
* We iterate through all entries, and for each b, calculate the
* smallest possible a. Then we consider splits where a is the
* smallest possible a. Then we consider splits where a is the
* upp
p
er bound of an entry, and for each a, calculate the greatest
* upper bound of an entry, and for each a, calculate the greatest
* possible b.
* possible b.
*
*
* In the above example, the first loop would consider splits:
* In the above example, the first loop would consider splits:
...
@@ -638,7 +638,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
...
@@ -638,7 +638,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
}
}
/*
/*
* Iterate over upper bound of left group finding greates possible
* Iterate over upper bound of left group finding greates
t
possible
* lower bound of right group.
* lower bound of right group.
*/
*/
i1
=
nentries
-
1
;
i1
=
nentries
-
1
;
...
...
src/backend/access/heap/heapam.c
View file @
c80b5f66
...
@@ -5473,7 +5473,7 @@ l4:
...
@@ -5473,7 +5473,7 @@ l4:
*
*
* The initial tuple is assumed to be already locked.
* The initial tuple is assumed to be already locked.
*
*
* This function doesn't check visibility, it just
i
nconditionally marks the
* This function doesn't check visibility, it just
u
nconditionally marks the
* tuple(s) as locked. If any tuple in the updated chain is being deleted
* tuple(s) as locked. If any tuple in the updated chain is being deleted
* concurrently (or updated with the key being modified), sleep until the
* concurrently (or updated with the key being modified), sleep until the
* transaction doing it is finished.
* transaction doing it is finished.
...
@@ -6187,7 +6187,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
...
@@ -6187,7 +6187,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
/*
/*
* NB -- some of these transformations are only valid because we
* NB -- some of these transformations are only valid because we
* know the return Xid is a tuple updater (i.e. not merely a
* know the return Xid is a tuple updater (i.e. not merely a
* locker.) Also note that the only reason we don't explicit
e
ly
* locker.) Also note that the only reason we don't explicitly
* worry about HEAP_KEYS_UPDATED is because it lives in
* worry about HEAP_KEYS_UPDATED is because it lives in
* t_infomask2 rather than t_infomask.
* t_infomask2 rather than t_infomask.
*/
*/
...
...
src/backend/access/heap/rewriteheap.c
View file @
c80b5f66
...
@@ -763,9 +763,9 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
...
@@ -763,9 +763,9 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
*
*
* Crash-Safety: This module diverts from the usual patterns of doing WAL
* Crash-Safety: This module diverts from the usual patterns of doing WAL
* since it cannot rely on checkpoint flushing out all buffers and thus
* since it cannot rely on checkpoint flushing out all buffers and thus
* waiting for exlusive locks on buffers. Usually the XLogInsert() covering
* waiting for ex
c
lusive locks on buffers. Usually the XLogInsert() covering
* buffer modifications is performed while the buffer(s) that are being
* buffer modifications is performed while the buffer(s) that are being
* modified are exlusively locked guaranteeing that both the WAL record and
* modified are ex
c
lusively locked guaranteeing that both the WAL record and
* the modified heap are on either side of the checkpoint. But since the
* the modified heap are on either side of the checkpoint. But since the
* mapping files we log aren't in shared_buffers that interlock doesn't work.
* mapping files we log aren't in shared_buffers that interlock doesn't work.
*
*
...
...
src/backend/access/transam/xact.c
View file @
c80b5f66
...
@@ -83,7 +83,7 @@ int synchronous_commit = SYNCHRONOUS_COMMIT_ON;
...
@@ -83,7 +83,7 @@ int synchronous_commit = SYNCHRONOUS_COMMIT_ON;
* When running as a parallel worker, we place only a single
* When running as a parallel worker, we place only a single
* TransactionStateData on the parallel worker's state stack, and the XID
* TransactionStateData on the parallel worker's state stack, and the XID
* reflected there will be that of the *innermost* currently-active
* reflected there will be that of the *innermost* currently-active
* subtransaction in the backend that initiated parall
l
elism. However,
* subtransaction in the backend that initiated parallelism. However,
* GetTopTransactionId() and TransactionIdIsCurrentTransactionId()
* GetTopTransactionId() and TransactionIdIsCurrentTransactionId()
* need to return the same answers in the parallel worker as they would have
* need to return the same answers in the parallel worker as they would have
* in the user backend, so we need some additional bookkeeping.
* in the user backend, so we need some additional bookkeeping.
...
...
src/backend/optimizer/path/costsize.c
View file @
c80b5f66
...
@@ -1039,7 +1039,7 @@ cost_tidscan(Path *path, PlannerInfo *root,
...
@@ -1039,7 +1039,7 @@ cost_tidscan(Path *path, PlannerInfo *root,
/*
/*
* The TID qual expressions will be computed once, any other baserestrict
* The TID qual expressions will be computed once, any other baserestrict
* quals once per retrived tuple.
* quals once per retri
e
ved tuple.
*/
*/
cost_qual_eval
(
&
tid_qual_cost
,
tidquals
,
root
);
cost_qual_eval
(
&
tid_qual_cost
,
tidquals
,
root
);
...
...
src/backend/replication/logical/origin.c
View file @
c80b5f66
...
@@ -1049,7 +1049,7 @@ replorigin_session_setup(RepOriginId node)
...
@@ -1049,7 +1049,7 @@ replorigin_session_setup(RepOriginId node)
{
{
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OBJECT_IN_USE
),
(
errcode
(
ERRCODE_OBJECT_IN_USE
),
errmsg
(
"replication identi
ef
er %d is already active for pid %d"
,
errmsg
(
"replication identi
fi
er %d is already active for pid %d"
,
curstate
->
roident
,
curstate
->
acquired_by
)));
curstate
->
roident
,
curstate
->
acquired_by
)));
}
}
...
...
src/backend/utils/adt/regproc.c
View file @
c80b5f66
...
@@ -855,7 +855,7 @@ format_operator_internal(Oid operator_oid, bool force_qualify)
...
@@ -855,7 +855,7 @@ format_operator_internal(Oid operator_oid, bool force_qualify)
/*
/*
* Would this oper be found (given the right args) by regoperatorin?
* Would this oper be found (given the right args) by regoperatorin?
* If not, or if caller explicit
e
ly requests it, we need to qualify
* If not, or if caller explicitly requests it, we need to qualify
* it.
* it.
*/
*/
if
(
force_qualify
||
!
OperatorIsVisible
(
operator_oid
))
if
(
force_qualify
||
!
OperatorIsVisible
(
operator_oid
))
...
...
src/include/storage/lwlock.h
View file @
c80b5f66
...
@@ -54,13 +54,13 @@ typedef struct LWLock
...
@@ -54,13 +54,13 @@ typedef struct LWLock
slock_t
mutex
;
/* Protects LWLock and queue of PGPROCs */
slock_t
mutex
;
/* Protects LWLock and queue of PGPROCs */
uint16
tranche
;
/* tranche ID */
uint16
tranche
;
/* tranche ID */
pg_atomic_uint32
state
;
/* state of exlusive/nonexclusive lockers */
pg_atomic_uint32
state
;
/* state of ex
c
lusive/nonexclusive lockers */
#ifdef LOCK_DEBUG
#ifdef LOCK_DEBUG
pg_atomic_uint32
nwaiters
;
/* number of waiters */
pg_atomic_uint32
nwaiters
;
/* number of waiters */
#endif
#endif
dlist_head
waiters
;
/* list of waiting PGPROCs */
dlist_head
waiters
;
/* list of waiting PGPROCs */
#ifdef LOCK_DEBUG
#ifdef LOCK_DEBUG
struct
PGPROC
*
owner
;
/* last exlusive owner of the lock */
struct
PGPROC
*
owner
;
/* last ex
c
lusive owner of the lock */
#endif
#endif
}
LWLock
;
}
LWLock
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment