mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Spelling adjustments
This commit is contained in:
@ -4083,7 +4083,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
|
|||||||
This parameter can only be set in the <filename>postgresql.conf</filename>
|
This parameter can only be set in the <filename>postgresql.conf</filename>
|
||||||
file or on the server command line.
|
file or on the server command line.
|
||||||
If this parameter is changed while the WAL receiver process is
|
If this parameter is changed while the WAL receiver process is
|
||||||
running, that process is signalled to shut down and expected to
|
running, that process is signaled to shut down and expected to
|
||||||
restart with the new setting (except if <varname>primary_conninfo</varname>
|
restart with the new setting (except if <varname>primary_conninfo</varname>
|
||||||
is an empty string).
|
is an empty string).
|
||||||
This setting has no effect if the server is not in standby mode.
|
This setting has no effect if the server is not in standby mode.
|
||||||
@ -4105,7 +4105,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
|
|||||||
This parameter can only be set in the <filename>postgresql.conf</filename>
|
This parameter can only be set in the <filename>postgresql.conf</filename>
|
||||||
file or on the server command line.
|
file or on the server command line.
|
||||||
If this parameter is changed while the WAL receiver process is running,
|
If this parameter is changed while the WAL receiver process is running,
|
||||||
that process is signalled to shut down and expected to restart with the
|
that process is signaled to shut down and expected to restart with the
|
||||||
new setting.
|
new setting.
|
||||||
This setting has no effect if <varname>primary_conninfo</varname> is not
|
This setting has no effect if <varname>primary_conninfo</varname> is not
|
||||||
set or the server is not in standby mode.
|
set or the server is not in standby mode.
|
||||||
@ -4227,7 +4227,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
|
|||||||
The default is off. This parameter can only be set in the
|
The default is off. This parameter can only be set in the
|
||||||
<filename>postgresql.conf</filename> file or on the server command line.
|
<filename>postgresql.conf</filename> file or on the server command line.
|
||||||
If this parameter is changed while the WAL receiver process is running,
|
If this parameter is changed while the WAL receiver process is running,
|
||||||
that process is signalled to shut down and expected to restart with
|
that process is signaled to shut down and expected to restart with
|
||||||
the new setting.
|
the new setting.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
@ -8062,7 +8062,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
|||||||
treated the timeout as applying to the whole query string.)
|
treated the timeout as applying to the whole query string.)
|
||||||
In extended query protocol, the timeout starts running when any
|
In extended query protocol, the timeout starts running when any
|
||||||
query-related message (Parse, Bind, Execute, Describe) arrives, and
|
query-related message (Parse, Bind, Execute, Describe) arrives, and
|
||||||
it is cancelled by completion of an Execute or Sync message.
|
it is canceled by completion of an Execute or Sync message.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -1654,7 +1654,7 @@ asyncQueueFillWarning(void)
|
|||||||
* behind. Waken them anyway if they're far enough behind, so that they'll
|
* behind. Waken them anyway if they're far enough behind, so that they'll
|
||||||
* advance their queue position pointers, allowing the global tail to advance.
|
* advance their queue position pointers, allowing the global tail to advance.
|
||||||
*
|
*
|
||||||
* Since we know the BackendId and the Pid the signalling is quite cheap.
|
* Since we know the BackendId and the Pid the signaling is quite cheap.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
SignalBackends(void)
|
SignalBackends(void)
|
||||||
|
@ -1638,7 +1638,7 @@ vac_truncate_clog(TransactionId frozenXID,
|
|||||||
* Update the wrap limit for GetNewTransactionId and creation of new
|
* Update the wrap limit for GetNewTransactionId and creation of new
|
||||||
* MultiXactIds. Note: these functions will also signal the postmaster
|
* MultiXactIds. Note: these functions will also signal the postmaster
|
||||||
* for an(other) autovac cycle if needed. XXX should we avoid possibly
|
* for an(other) autovac cycle if needed. XXX should we avoid possibly
|
||||||
* signalling twice?
|
* signaling twice?
|
||||||
*/
|
*/
|
||||||
SetTransactionIdLimit(frozenXID, oldestxid_datoid);
|
SetTransactionIdLimit(frozenXID, oldestxid_datoid);
|
||||||
SetMultiXactIdLimit(minMulti, minmulti_datoid, false);
|
SetMultiXactIdLimit(minMulti, minmulti_datoid, false);
|
||||||
|
@ -2448,7 +2448,7 @@ BuildV1Call(LLVMJitContext *context, LLVMBuilderRef b,
|
|||||||
*v_fcinfo_isnull = LLVMBuildLoad(b, v_fcinfo_isnullp, "");
|
*v_fcinfo_isnull = LLVMBuildLoad(b, v_fcinfo_isnullp, "");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add lifetime-end annotation, signalling that writes to memory don't
|
* Add lifetime-end annotation, signaling that writes to memory don't
|
||||||
* have to be retained (important for inlining potential).
|
* have to be retained (important for inlining potential).
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
@ -618,7 +618,7 @@ pgwin32_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, c
|
|||||||
if (r != WAIT_TIMEOUT && r != WAIT_IO_COMPLETION && r != (WAIT_OBJECT_0 + numevents))
|
if (r != WAIT_TIMEOUT && r != WAIT_IO_COMPLETION && r != (WAIT_OBJECT_0 + numevents))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We scan all events, even those not signalled, in case more than one
|
* We scan all events, even those not signaled, in case more than one
|
||||||
* event has been tagged but Wait.. can only return one.
|
* event has been tagged but Wait.. can only return one.
|
||||||
*/
|
*/
|
||||||
WSANETWORKEVENTS resEvents;
|
WSANETWORKEVENTS resEvents;
|
||||||
|
@ -48,7 +48,7 @@ pg_timer_thread(LPVOID param)
|
|||||||
r = WaitForSingleObjectEx(timerCommArea.event, waittime, FALSE);
|
r = WaitForSingleObjectEx(timerCommArea.event, waittime, FALSE);
|
||||||
if (r == WAIT_OBJECT_0)
|
if (r == WAIT_OBJECT_0)
|
||||||
{
|
{
|
||||||
/* Event signalled from main thread, change the timer */
|
/* Event signaled from main thread, change the timer */
|
||||||
EnterCriticalSection(&timerCommArea.crit_sec);
|
EnterCriticalSection(&timerCommArea.crit_sec);
|
||||||
if (timerCommArea.value.it_value.tv_sec == 0 &&
|
if (timerCommArea.value.it_value.tv_sec == 0 &&
|
||||||
timerCommArea.value.it_value.tv_usec == 0)
|
timerCommArea.value.it_value.tv_usec == 0)
|
||||||
|
@ -653,7 +653,7 @@ AutoVacLauncherMain(int argc, char *argv[])
|
|||||||
HandleAutoVacLauncherInterrupts();
|
HandleAutoVacLauncherInterrupts();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* a worker finished, or postmaster signalled failure to start a
|
* a worker finished, or postmaster signaled failure to start a
|
||||||
* worker
|
* worker
|
||||||
*/
|
*/
|
||||||
if (got_SIGUSR2)
|
if (got_SIGUSR2)
|
||||||
|
@ -819,7 +819,7 @@ ReqCheckpointHandler(SIGNAL_ARGS)
|
|||||||
int save_errno = errno;
|
int save_errno = errno;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The signalling process should have set ckpt_flags nonzero, so all we
|
* The signaling process should have set ckpt_flags nonzero, so all we
|
||||||
* need do is ensure that our main loop gets kicked out of any wait.
|
* need do is ensure that our main loop gets kicked out of any wait.
|
||||||
*/
|
*/
|
||||||
SetLatch(MyLatch);
|
SetLatch(MyLatch);
|
||||||
|
@ -6251,7 +6251,7 @@ pgstat_recv_resetslrucounter(PgStat_MsgResetslrucounter *msg, int len)
|
|||||||
/* ----------
|
/* ----------
|
||||||
* pgstat_recv_autovac() -
|
* pgstat_recv_autovac() -
|
||||||
*
|
*
|
||||||
* Process an autovacuum signalling message.
|
* Process an autovacuum signaling message.
|
||||||
* ----------
|
* ----------
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
|
@ -357,7 +357,7 @@ bool redirection_done = false; /* stderr redirected for syslogger? */
|
|||||||
/* received START_AUTOVAC_LAUNCHER signal */
|
/* received START_AUTOVAC_LAUNCHER signal */
|
||||||
static volatile sig_atomic_t start_autovac_launcher = false;
|
static volatile sig_atomic_t start_autovac_launcher = false;
|
||||||
|
|
||||||
/* the launcher needs to be signalled to communicate some condition */
|
/* the launcher needs to be signaled to communicate some condition */
|
||||||
static volatile bool avlauncher_needs_signal = false;
|
static volatile bool avlauncher_needs_signal = false;
|
||||||
|
|
||||||
/* received START_WALRECEIVER signal */
|
/* received START_WALRECEIVER signal */
|
||||||
@ -3481,7 +3481,7 @@ HandleChildCrash(int pid, int exitstatus, const char *procname)
|
|||||||
* We only log messages and send signals if this is the first process
|
* We only log messages and send signals if this is the first process
|
||||||
* crash and we're not doing an immediate shutdown; otherwise, we're only
|
* crash and we're not doing an immediate shutdown; otherwise, we're only
|
||||||
* here to update postmaster's idea of live processes. If we have already
|
* here to update postmaster's idea of live processes. If we have already
|
||||||
* signalled children, nonzero exit status is to be expected, so don't
|
* signaled children, nonzero exit status is to be expected, so don't
|
||||||
* clutter log.
|
* clutter log.
|
||||||
*/
|
*/
|
||||||
take_action = !FatalError && Shutdown != ImmediateShutdown;
|
take_action = !FatalError && Shutdown != ImmediateShutdown;
|
||||||
@ -5615,7 +5615,7 @@ StartAutovacuumWorker(void)
|
|||||||
* might not even be connected to shared memory, so don't try to call
|
* might not even be connected to shared memory, so don't try to call
|
||||||
* AutoVacWorkerFailed.) Note that we also need to signal it so that it
|
* AutoVacWorkerFailed.) Note that we also need to signal it so that it
|
||||||
* responds to the condition, but we don't do that here, instead waiting
|
* responds to the condition, but we don't do that here, instead waiting
|
||||||
* for ServerLoop to do it. This way we avoid a ping-pong signalling in
|
* for ServerLoop to do it. This way we avoid a ping-pong signaling in
|
||||||
* quick succession between the autovac launcher and postmaster in case
|
* quick succession between the autovac launcher and postmaster in case
|
||||||
* things get ugly.
|
* things get ugly.
|
||||||
*/
|
*/
|
||||||
|
@ -122,7 +122,7 @@ typedef struct ReplicationState
|
|||||||
int acquired_by;
|
int acquired_by;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Condition variable that's signalled when acquired_by changes.
|
* Condition variable that's signaled when acquired_by changes.
|
||||||
*/
|
*/
|
||||||
ConditionVariable origin_cv;
|
ConditionVariable origin_cv;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* This module gets handed individual pieces of transactions in the order
|
* This module gets handed individual pieces of transactions in the order
|
||||||
* they are written to the WAL and is responsible to reassemble them into
|
* they are written to the WAL and is responsible to reassemble them into
|
||||||
* toplevel transaction sized pieces. When a transaction is completely
|
* toplevel transaction sized pieces. When a transaction is completely
|
||||||
* reassembled - signalled by reading the transaction commit record - it
|
* reassembled - signaled by reading the transaction commit record - it
|
||||||
* will then call the output plugin (cf. ReorderBufferCommit()) with the
|
* will then call the output plugin (cf. ReorderBufferCommit()) with the
|
||||||
* individual changes. The output plugins rely on snapshots built by
|
* individual changes. The output plugins rely on snapshots built by
|
||||||
* snapbuild.c which hands them to us.
|
* snapbuild.c which hands them to us.
|
||||||
|
@ -1354,7 +1354,7 @@ WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
|
|||||||
* because we don't expect the pipe to become readable or to have
|
* because we don't expect the pipe to become readable or to have
|
||||||
* any errors either, treat those cases as postmaster death, too.
|
* any errors either, treat those cases as postmaster death, too.
|
||||||
*
|
*
|
||||||
* Be paranoid about a spurious event signalling the postmaster as
|
* Be paranoid about a spurious event signaling the postmaster as
|
||||||
* being dead. There have been reports about that happening with
|
* being dead. There have been reports about that happening with
|
||||||
* older primitives (select(2) to be specific), and a spurious
|
* older primitives (select(2) to be specific), and a spurious
|
||||||
* WL_POSTMASTER_DEATH event would be painful. Re-checking doesn't
|
* WL_POSTMASTER_DEATH event would be painful. Re-checking doesn't
|
||||||
@ -1613,7 +1613,7 @@ WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
|
|||||||
* we don't expect the pipe to become readable or to have any
|
* we don't expect the pipe to become readable or to have any
|
||||||
* errors either, treat those cases as postmaster death, too.
|
* errors either, treat those cases as postmaster death, too.
|
||||||
*
|
*
|
||||||
* Be paranoid about a spurious event signalling the postmaster as
|
* Be paranoid about a spurious event signaling the postmaster as
|
||||||
* being dead. There have been reports about that happening with
|
* being dead. There have been reports about that happening with
|
||||||
* older primitives (select(2) to be specific), and a spurious
|
* older primitives (select(2) to be specific), and a spurious
|
||||||
* WL_POSTMASTER_DEATH event would be painful. Re-checking doesn't
|
* WL_POSTMASTER_DEATH event would be painful. Re-checking doesn't
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* procsignal.c
|
* procsignal.c
|
||||||
* Routines for interprocess signalling
|
* Routines for interprocess signaling
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
||||||
@ -30,7 +30,7 @@
|
|||||||
#include "tcop/tcopprot.h"
|
#include "tcop/tcopprot.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The SIGUSR1 signal is multiplexed to support signalling multiple event
|
* The SIGUSR1 signal is multiplexed to support signaling multiple event
|
||||||
* types. The specific reason is communicated via flags in shared memory.
|
* types. The specific reason is communicated via flags in shared memory.
|
||||||
* We keep a boolean flag for each possible "reason", so that different
|
* We keep a boolean flag for each possible "reason", so that different
|
||||||
* reasons can be signaled to a process concurrently. (However, if the same
|
* reasons can be signaled to a process concurrently. (However, if the same
|
||||||
@ -40,8 +40,8 @@
|
|||||||
* Each process that wants to receive signals registers its process ID
|
* Each process that wants to receive signals registers its process ID
|
||||||
* in the ProcSignalSlots array. The array is indexed by backend ID to make
|
* in the ProcSignalSlots array. The array is indexed by backend ID to make
|
||||||
* slot allocation simple, and to avoid having to search the array when you
|
* slot allocation simple, and to avoid having to search the array when you
|
||||||
* know the backend ID of the process you're signalling. (We do support
|
* know the backend ID of the process you're signaling. (We do support
|
||||||
* signalling without backend ID, but it's a bit less efficient.)
|
* signaling without backend ID, but it's a bit less efficient.)
|
||||||
*
|
*
|
||||||
* The flags are actually declared as "volatile sig_atomic_t" for maximum
|
* The flags are actually declared as "volatile sig_atomic_t" for maximum
|
||||||
* portability. This should ensure that loads and stores of the flag
|
* portability. This should ensure that loads and stores of the flag
|
||||||
@ -420,7 +420,7 @@ WaitForProcSignalBarrier(uint64 generation)
|
|||||||
/*
|
/*
|
||||||
* Perform global barrier related interrupt checking.
|
* Perform global barrier related interrupt checking.
|
||||||
*
|
*
|
||||||
* Any backend that participates in ProcSignal signalling must arrange to
|
* Any backend that participates in ProcSignal signaling must arrange to
|
||||||
* call this function periodically. It is called from CHECK_FOR_INTERRUPTS(),
|
* call this function periodically. It is called from CHECK_FOR_INTERRUPTS(),
|
||||||
* which is enough for normal backends, but not necessarily for all types of
|
* which is enough for normal backends, but not necessarily for all types of
|
||||||
* background processes.
|
* background processes.
|
||||||
|
@ -1182,7 +1182,7 @@ shm_mq_wait_internal(shm_mq *mq, PGPROC **ptr, BackgroundWorkerHandle *handle)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wait to be signalled. */
|
/* Wait to be signaled. */
|
||||||
(void) WaitLatch(MyLatch, WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, 0,
|
(void) WaitLatch(MyLatch, WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, 0,
|
||||||
WAIT_EVENT_MQ_INTERNAL);
|
WAIT_EVENT_MQ_INTERNAL);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* signalfuncs.c
|
* signalfuncs.c
|
||||||
* Functions for signalling backends
|
* Functions for signaling backends
|
||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
|
@ -92,7 +92,7 @@ InitRecoveryTransactionEnvironment(void)
|
|||||||
/*
|
/*
|
||||||
* Initialize shared invalidation management for Startup process, being
|
* Initialize shared invalidation management for Startup process, being
|
||||||
* careful to register ourselves as a sendOnly process so we don't need to
|
* careful to register ourselves as a sendOnly process so we don't need to
|
||||||
* read messages, nor will we get signalled when the queue starts filling
|
* read messages, nor will we get signaled when the queue starts filling
|
||||||
* up.
|
* up.
|
||||||
*/
|
*/
|
||||||
SharedInvalBackendInit(true);
|
SharedInvalBackendInit(true);
|
||||||
|
@ -759,7 +759,7 @@ LockAcquire(const LOCKTAG *locktag,
|
|||||||
* reportMemoryError specifies whether a lock request that fills the lock
|
* reportMemoryError specifies whether a lock request that fills the lock
|
||||||
* table should generate an ERROR or not. Passing "false" allows the caller
|
* table should generate an ERROR or not. Passing "false" allows the caller
|
||||||
* to attempt to recover from lock-table-full situations, perhaps by forcibly
|
* to attempt to recover from lock-table-full situations, perhaps by forcibly
|
||||||
* cancelling other lock holders and then retrying. Note, however, that the
|
* canceling other lock holders and then retrying. Note, however, that the
|
||||||
* return code for that is LOCKACQUIRE_NOT_AVAIL, so that it's unsafe to use
|
* return code for that is LOCKACQUIRE_NOT_AVAIL, so that it's unsafe to use
|
||||||
* in combination with dontWait = true, as the cause of failure couldn't be
|
* in combination with dontWait = true, as the cause of failure couldn't be
|
||||||
* distinguished.
|
* distinguished.
|
||||||
|
@ -2750,7 +2750,7 @@ drop_unnamed_stmt(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* quickdie() occurs when signalled SIGQUIT by the postmaster.
|
* quickdie() occurs when signaled SIGQUIT by the postmaster.
|
||||||
*
|
*
|
||||||
* Some backend has bought the farm,
|
* Some backend has bought the farm,
|
||||||
* so we need to stop what we're doing and exit.
|
* so we need to stop what we're doing and exit.
|
||||||
|
2
src/backend/utils/cache/relfilenodemap.c
vendored
2
src/backend/utils/cache/relfilenodemap.c
vendored
@ -64,7 +64,7 @@ RelfilenodeMapInvalidateCallback(Datum arg, Oid relid)
|
|||||||
while ((entry = (RelfilenodeMapEntry *) hash_seq_search(&status)) != NULL)
|
while ((entry = (RelfilenodeMapEntry *) hash_seq_search(&status)) != NULL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If relid is InvalidOid, signalling a complete reset, we must remove
|
* If relid is InvalidOid, signaling a complete reset, we must remove
|
||||||
* all entries, otherwise just remove the specific relation's entry.
|
* all entries, otherwise just remove the specific relation's entry.
|
||||||
* Always remove negative cache entries.
|
* Always remove negative cache entries.
|
||||||
*/
|
*/
|
||||||
|
@ -290,7 +290,7 @@ typedef struct TableAmRoutine
|
|||||||
*
|
*
|
||||||
* *call_again is false on the first call to index_fetch_tuple for a tid.
|
* *call_again is false on the first call to index_fetch_tuple for a tid.
|
||||||
* If there potentially is another tuple matching the tid, *call_again
|
* If there potentially is another tuple matching the tid, *call_again
|
||||||
* needs be set to true by index_fetch_tuple, signalling to the caller
|
* needs be set to true by index_fetch_tuple, signaling to the caller
|
||||||
* that index_fetch_tuple should be called again for the same tid.
|
* that index_fetch_tuple should be called again for the same tid.
|
||||||
*
|
*
|
||||||
* *all_dead, if all_dead is not NULL, should be set to true by
|
* *all_dead, if all_dead is not NULL, should be set to true by
|
||||||
@ -993,7 +993,7 @@ table_index_fetch_end(struct IndexFetchTableData *scan)
|
|||||||
*
|
*
|
||||||
* *call_again needs to be false on the first call to table_index_fetch_tuple() for
|
* *call_again needs to be false on the first call to table_index_fetch_tuple() for
|
||||||
* a tid. If there potentially is another tuple matching the tid, *call_again
|
* a tid. If there potentially is another tuple matching the tid, *call_again
|
||||||
* will be set to true, signalling that table_index_fetch_tuple() should be called
|
* will be set to true, signaling that table_index_fetch_tuple() should be called
|
||||||
* again for the same tid.
|
* again for the same tid.
|
||||||
*
|
*
|
||||||
* *all_dead, if all_dead is not NULL, will be set to true by
|
* *all_dead, if all_dead is not NULL, will be set to true by
|
||||||
@ -1546,7 +1546,7 @@ table_index_build_scan(Relation table_rel,
|
|||||||
/*
|
/*
|
||||||
* As table_index_build_scan(), except that instead of scanning the complete
|
* As table_index_build_scan(), except that instead of scanning the complete
|
||||||
* table, only the given number of blocks are scanned. Scan to end-of-rel can
|
* table, only the given number of blocks are scanned. Scan to end-of-rel can
|
||||||
* be signalled by passing InvalidBlockNumber as numblocks. Note that
|
* be signaled by passing InvalidBlockNumber as numblocks. Note that
|
||||||
* restricting the range to scan cannot be done when requesting syncscan.
|
* restricting the range to scan cannot be done when requesting syncscan.
|
||||||
*
|
*
|
||||||
* When "anyvisible" mode is requested, all tuples visible to any transaction
|
* When "anyvisible" mode is requested, all tuples visible to any transaction
|
||||||
|
@ -204,7 +204,7 @@ typedef struct xl_xact_assignment
|
|||||||
*
|
*
|
||||||
* A minimal commit/abort record only consists of a xl_xact_commit/abort
|
* A minimal commit/abort record only consists of a xl_xact_commit/abort
|
||||||
* struct. The presence of additional information is indicated by bits set in
|
* struct. The presence of additional information is indicated by bits set in
|
||||||
* 'xl_xact_xinfo->xinfo'. The presence of the xinfo field itself is signalled
|
* 'xl_xact_xinfo->xinfo'. The presence of the xinfo field itself is signaled
|
||||||
* by a set XLOG_XACT_HAS_INFO bit in the xl_info field.
|
* by a set XLOG_XACT_HAS_INFO bit in the xl_info field.
|
||||||
*
|
*
|
||||||
* NB: All the individual data chunks should be sized to multiples of
|
* NB: All the individual data chunks should be sized to multiples of
|
||||||
|
@ -142,7 +142,7 @@ typedef struct ReplicationSlot
|
|||||||
/* is somebody performing io on this slot? */
|
/* is somebody performing io on this slot? */
|
||||||
LWLock io_in_progress_lock;
|
LWLock io_in_progress_lock;
|
||||||
|
|
||||||
/* Condition variable signalled when active_pid changes */
|
/* Condition variable signaled when active_pid changes */
|
||||||
ConditionVariable active_cv;
|
ConditionVariable active_cv;
|
||||||
|
|
||||||
/* all the remaining data is only used for logical slots */
|
/* all the remaining data is only used for logical slots */
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* on the condition variable; and (3) broadcast, which wakes up every
|
* on the condition variable; and (3) broadcast, which wakes up every
|
||||||
* process sleeping on the condition variable. In our implementation,
|
* process sleeping on the condition variable. In our implementation,
|
||||||
* condition variables put a process into an interruptible sleep (so it
|
* condition variables put a process into an interruptible sleep (so it
|
||||||
* can be cancelled prior to the fulfillment of the condition) and do not
|
* can be canceled prior to the fulfillment of the condition) and do not
|
||||||
* use pointers internally (so that they are safe to use within DSMs).
|
* use pointers internally (so that they are safe to use within DSMs).
|
||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* procsignal.h
|
* procsignal.h
|
||||||
* Routines for interprocess signalling
|
* Routines for interprocess signaling
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reasons for signalling a Postgres child process (a backend or an auxiliary
|
* Reasons for signaling a Postgres child process (a backend or an auxiliary
|
||||||
* process, like checkpointer). We can cope with concurrent signals for different
|
* process, like checkpointer). We can cope with concurrent signals for different
|
||||||
* reasons. However, if the same reason is signaled multiple times in quick
|
* reasons. However, if the same reason is signaled multiple times in quick
|
||||||
* succession, the process is likely to observe only one notification of it.
|
* succession, the process is likely to observe only one notification of it.
|
||||||
|
@ -278,7 +278,7 @@ wait_for_workers_to_become_ready(worker_state *wstate,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wait to be signalled. */
|
/* Wait to be signaled. */
|
||||||
(void) WaitLatch(MyLatch, WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, 0,
|
(void) WaitLatch(MyLatch, WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, 0,
|
||||||
PG_WAIT_EXTENSION);
|
PG_WAIT_EXTENSION);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user