Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9783
loggingAdministrative C function to enable or disable logging mode on relations.
admin unlogged wal
logging
AdministrationAdministration · Extensions
logging_collectorlogging_collector
Reporting and Logging
10
This parameter enables the logging collector, which is a background process that captures log messages sent to stderr and redirects them into log f…Configuration · Reporting and Logging
Logical Decoding47.2.1. Logical Decoding
Logical decoding is the process of extracting all persistent changes to a database's tables into a coherent, easy to understand format which can be interpreted witho…Logical Decoding
Logical DecodingChapter 47. Logical Decoding
PostgreSQL provides infrastructure to stream the modifications performed via SQL to external consumers. This functionality can be used for a variety of purposes,…Logical Decoding
Logical Decoding Concepts47.2. Logical Decoding ConceptsLogical Decoding Concepts
Logical Decoding Examples47.1. Logical Decoding Examples
The following example demonstrates controlling logical decoding using the SQL interface.
Before you can use logical decoding, you must set wal_level to logica…Logical Decoding Examples
Logical Decoding Output Plugins47.6. Logical Decoding Output Plugins
An example output plugin can be found in the contrib/test_decoding subdirectory of the PostgreSQL source tree.Logical Decoding Output Plugins
Logical Decoding Output Writers47.7. Logical Decoding Output Writers
It is possible to add more output methods for logical decoding. For details, see src/backend/replication/logical/logicalfuncs.c. Essentially, three func…Logical Decoding Output Writers
Logical Decoding SQL Interface47.4. Logical Decoding SQL Interface
See Section 9.28.6 for detailed documentation on the SQL-level API for interacting with logical decoding.
Synchronous replication (see Section 26.2.8) is…Logical Decoding SQL Interface
Logical Operators9.1. Logical Operators
The usual logical operators are available:
boolean AND boolean → boolean boolean OR boolean → boolean NOT boolean → boolean
SQL uses a three-valued logic system with t…Logical Operators
Logical ReplicationChapter 29. Logical Replication
Logical replication is a method of replicating data objects and their changes, based upon their replication identity (usually a primary key). We use the term …Logical Replication
Logical ReplicationE.6.3.1.8. Logical Replication
Allow the values of generated columns to be logically replicated (Shubham Khanna, Vignesh C, Zhijie Hou, Shlok Kyal, Peter Smith) § § § § If the publication sp…Logical Replication
Logical Replication ApplicationsE.6.3.7.3. Logical Replication Applications
Add pg_createsubscriber option --all to create logical replicas for all databases (Shubham Khanna) § Add pg_createsubscriber option --clean to rem…Logical Replication Applications
Logical Replication Failover29.3. Logical Replication Failover
To allow subscriber nodes to continue replicating data from the publisher node even when the publisher node goes down, there must be a physical standby cor…Logical Replication Failover
Logical Replication Message Formats54.9. Logical Replication Message Formats
This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL inter…Logical Replication Message Formats
Logical Replication Protocol Message Flow54.5.3. Logical Replication Protocol Message Flow
With the exception of the START_REPLICATION command and the replay progress messages, all information flows only from the backend to the fro…Logical Replication Protocol Message Flow
Logical Replication Protocol Messages54.5.2. Logical Replication Protocol Messages
The individual protocol messages are discussed in the following subsections. Individual messages are described in Section 54.9.
All top-level pr…Logical Replication Protocol Messages
Logical Streaming Replication Parameters54.5.1. Logical Streaming Replication Parameters
Using the START_REPLICATION command, pgoutput accepts the following options:
proto_version Protocol version. Currently versions 1, 2, 3, and …Logical Streaming Replication Parameters
Logical Streaming Replication Protocol54.5. Logical Streaming Replication Protocol
This section describes the logical replication protocol, which is the message flow started by the START_REPLICATION SLOT slot_name LOGICAL replic…Logical Streaming Replication Protocol
logical_ddlReplicate supported DDL changes over PostgreSQL logical replication
logical_ddl
Replication and streamsReplication and streams · Extensions
logical_decoding_work_memlogical_decoding_work_mem
Resource Usage
13
Specifies the maximum amount of memory to be used by logical decoding, before some of the decoded changes are written to local disk. This limits t…Configuration · Resource Usage
LogicalApplyMainLogicalApplyMain
Activity
10
Waiting in main loop of logical apply process.
11
12
13
Waiting in main loop of logical replication apply process.
14
15
16
17
18
19
20
This is normally expected…Wait Events · Activity
LogicalApplySendDataLogicalApplySendData
IPC
16
Waiting for a logical replication leader apply process to send data to a parallel apply process.
17
18
19
20
Brief rendezvous is normal when every participant con…Wait Events · IPC
LogicalChangesReadLogicalChangesRead
IO
14
Waiting for a read from a logical changes file.
No live core occurrence is expected on the audited release.
If telemetry shows it, verify the exact patch version, ex…Wait Events · IO
LogicalChangesWriteLogicalChangesWrite
IO
14
Waiting for a write to a logical changes file.
No live core occurrence is expected on the audited release.
If telemetry shows it, verify the exact patch version, ex…Wait Events · IO
LogicalDecodingControlLogicalDecodingControl
LWLock
19
Waiting to read or update logical decoding status information.
20Wait Events · LWLock
LogicalLauncherMainLogicalLauncherMain
Activity
10
Waiting in main loop of logical launcher process.
11
12
13
Waiting in main loop of logical replication launcher process.
14
15
16
17
18
19
20
This is normally…Wait Events · Activity
LogicalParallelApplyMainLogicalParallelApplyMain
Activity
16
Waiting in main loop of logical replication parallel apply process.
17
18
19
20
This is normally expected idleness for the matching background process.
I…Wait Events · Activity
LogicalParallelApplyStateChangeLogicalParallelApplyStateChange
IPC
16
Waiting for a logical replication parallel apply process to change state.
17
18
19
20
Brief rendezvous is normal when every participant continues to ad…Wait Events · IPC
LogicalRepLauncherDSALogicalRepLauncherDSA
LWLock
16
Waiting to access logical replication launcher's dynamic shared memory allocator.
17
18
19
20
A brief sample is normal around short internal critical sections…Wait Events · LWLock
LogicalRepLauncherHashLogicalRepLauncherHash
LWLock
16
Waiting to access logical replication launcher's shared hash table.
17
18
19
20
A brief sample is normal around short internal critical sections.
Investigate…Wait Events · LWLock
LogicalRepWorkerLogicalRepWorker
LWLock
10
Waiting for action on logical replication worker to finish.
11
12
13
Waiting to read or update the state of logical replication workers.
14
15
16
17
18
19
20
A bri…Wait Events · LWLock
LogicalRewriteCheckpointSyncLogicalRewriteCheckpointSync
IO
10
Waiting for logical rewrite mappings to reach durable storage during a checkpoint.
11
12
13
14
15
16
17
18
19
20
The wait is normal when the workload is ex…Wait Events · IO
LogicalRewriteMappingSyncLogicalRewriteMappingSync
IO
10
Waiting for mapping data to reach durable storage during a logical rewrite.
11
12
13
14
15
16
17
18
19
20
The wait is normal when the workload is expected to …Wait Events · IO
LogicalRewriteMappingWriteLogicalRewriteMappingWrite
IO
10
Waiting for a write of mapping data during a logical rewrite.
11
12
13
14
15
16
17
18
19
20
The wait is normal when the workload is expected to perform this …Wait Events · IO
LogicalRewriteSyncLogicalRewriteSync
IO
10
Waiting for logical rewrite mappings to reach durable storage.
11
12
13
14
15
16
17
18
19
20
The wait is normal when the workload is expected to perform this read, w…Wait Events · IO
LogicalRewriteTruncateLogicalRewriteTruncate
IO
10
Waiting for truncate of mapping data during a logical rewrite.
11
12
13
14
15
16
17
18
19
20
The wait is normal when the workload is expected to perform this rea…Wait Events · IO
LogicalRewriteWriteLogicalRewriteWrite
IO
10
Waiting for a write of logical rewrite mappings.
11
12
13
14
15
16
17
18
19
20
The wait is normal when the workload is expected to perform this read, write, sync, a…Wait Events · IO
LogicalSubxactReadLogicalSubxactRead
IO
14
Waiting for a read from a logical subxact file.
No live core occurrence is expected on the audited release.
If telemetry shows it, verify the exact patch version, ex…Wait Events · IO
LogicalSubxactWriteLogicalSubxactWrite
IO
14
Waiting for a write to a logical subxact file.
No live core occurrence is expected on the audited release.
If telemetry shows it, verify the exact patch version, ex…Wait Events · IO
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open