mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Fix misc spelling mistakes in comments, docs and tests
This commit is contained in:
@@ -50,9 +50,10 @@ step "s1_store_lsn" {
|
||||
}
|
||||
step "s1_reset" { SELECT pg_replication_origin_session_reset(); }
|
||||
|
||||
# Firstly s0 attaches to a origin and s1 attaches to the same. Both sessions
|
||||
# commits a transaction and store the local_lsn of the replication origin.
|
||||
# Compare LSNs and expect latter transaction (done by s1) has larger local_lsn.
|
||||
# First s0 and s1 attach to the same origin. Then both sessions
|
||||
# commit a transaction and store the local_lsn of the replication
|
||||
# origin. Compare LSNs and expect that the latter transaction (done
|
||||
# by s1) has a larger local_lsn.
|
||||
permutation "s0_setup" "s0_is_setup" "s1_setup" "s1_is_setup" "s0_add_message" "s0_store_lsn" "s1_add_message" "s1_store_lsn" "s0_compare" "s1_reset" "s0_reset"
|
||||
|
||||
# Test that the origin cannot be released if another session is actively using
|
||||
|
||||
@@ -944,7 +944,7 @@ my_fetch(PG_FUNCTION_ARGS)
|
||||
fetched_data = palloc_object(fetched_data_type);
|
||||
|
||||
/*
|
||||
* Convert 'fetched_data' into the a Datum of the original datatype.
|
||||
* Convert 'fetched_data' into a Datum of the original datatype.
|
||||
*/
|
||||
|
||||
/* fill *retval from fetched_data. */
|
||||
|
||||
@@ -8785,10 +8785,10 @@ UpdateFullPageWrites(void)
|
||||
|
||||
/*
|
||||
* It's always safe to take full page images, even when not strictly
|
||||
* required, but not the other round. So if we're setting full_page_writes
|
||||
* to true, first set it true and then write the WAL record. If we're
|
||||
* setting it to false, first write the WAL record and then set the global
|
||||
* flag.
|
||||
* required, but not the other way round. So if we're setting
|
||||
* full_page_writes to true, first set it true and then write the WAL
|
||||
* record. If we're setting it to false, first write the WAL record and
|
||||
* then set the global flag.
|
||||
*/
|
||||
if (fullPageWrites)
|
||||
{
|
||||
|
||||
2
src/backend/utils/cache/inval.c
vendored
2
src/backend/utils/cache/inval.c
vendored
@@ -1911,7 +1911,7 @@ CallSyscacheCallbacks(SysCacheIdentifier cacheid, uint32 hashvalue)
|
||||
}
|
||||
|
||||
/*
|
||||
* CallSyscacheCallbacks
|
||||
* CallRelSyncCallbacks
|
||||
*/
|
||||
void
|
||||
CallRelSyncCallbacks(Oid relid)
|
||||
|
||||
@@ -76,7 +76,7 @@ $node2->stop();
|
||||
# working one.
|
||||
$node3->connect_ok(
|
||||
"host=$hostlist port=$portlist load_balance_hosts=disable",
|
||||
"load_balance_hosts=disable continues until it connects to the a working node",
|
||||
"load_balance_hosts=disable continues until it connects to a working node",
|
||||
sql => "SELECT 'connect3'",
|
||||
log_like => [qr/statement: SELECT 'connect3'/]);
|
||||
|
||||
@@ -86,7 +86,7 @@ foreach my $i (1 .. 5)
|
||||
{
|
||||
$node3->connect_ok(
|
||||
"host=$hostlist port=$portlist load_balance_hosts=random",
|
||||
"load_balance_hosts=random continues until it connects to the a working node",
|
||||
"load_balance_hosts=random continues until it connects to a working node",
|
||||
sql => "SELECT 'connect4'",
|
||||
log_like => [qr/statement: SELECT 'connect4'/]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user