Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries12242
log_fdwforeign-data wrapper for Postgres log file access
log_fdw
Foreign data wrappers
log_functionsModule to log functions
function log stored procedure
log_functions
Monitoring
logerrorsFunction for collecting statistics about messages in logfile
logerrors
Security
logfmtlog collector
log logging monitoring
logfmt
Monitoring
loggingAdministrative C function to enable or disable logging mode on relations.
admin unlogged wal
logging
Administration
Logical Decodingis the process of extracting all persistent changes to a database's tables into a coherent, easy to understand format which can be interpreted without detailed knowledge of the database's in…
Logical DecodingPostgreSQL provides infrastructure to stream the modifications performed via SQL to external consumers. This functionality can be used for a variety of purposes, including replication soluti…
Logical Decoding Concepts
Logical Decoding ExamplesThe following example demonstrates controlling logical decoding using the SQL interface.
Before you can use logical decoding, you must set wal_level to logical and max_replication_slots to a…
Logical Decoding Output PluginsAn example output plugin can be found in the contrib/test_decoding subdirectory of the PostgreSQL source tree.
Logical Decoding Output WritersIt is possible to add more output methods for logical decoding. For details, see src/backend/replication/logical/logicalfuncs.c. Essentially, three functions need to be provided: one to read…
Logical Decoding SQL InterfaceSee 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 only supported on replication slots …
Logical OperatorsThe usual logical operators are available:
boolean AND boolean → boolean boolean OR boolean → boolean NOT boolean → boolean
SQL uses a three-valued logic system with true, false, and null, w…
Logical Replicationis a method of replicating data objects and their changes, based upon their replication identity (usually a primary key). We use the term logical in contrast to physical replication, which u…
Logical ReplicationAllow the values of generated columns to be logically replicated (Shubham Khanna, Vignesh C, Zhijie Hou, Shlok Kyal, Peter Smith) § § § § If the publication specifies a column list, all spec…
Logical Replication ApplicationsAdd pg_createsubscriber option --all to create logical replicas for all databases (Shubham Khanna) § Add pg_createsubscriber option --clean to remove publications (Shubham Khanna) § § Add pg…
Logical Replication FailoverTo allow subscriber nodes to continue replicating data from the publisher node even when the publisher node goes down, there must be a physical standby corresponding to the publisher node. T…
Logical Replication Message FormatsThis section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the ca…
Logical Replication Protocol Message FlowWith the exception of the START_REPLICATION command and the replay progress messages, all information flows only from the backend to the frontend.
The logical replication protocol sends indi…
Logical Replication Protocol MessagesThe individual protocol messages are discussed in the following subsections. Individual messages are described in Section 54.9.
All top-level protocol messages begin with a message type byte…
Logical Streaming Replication ParametersUsing the START_REPLICATION command, pgoutput accepts the following options:
proto_version Protocol version. Currently versions 1, 2, 3, and 4 are supported. A valid version is required. Ver…
Logical Streaming Replication ProtocolThis section describes the logical replication protocol, which is the message flow started by the START_REPLICATION SLOT slot_name LOGICAL replication command.
The logical streaming replicat…
logical_ddlReplicate supported DDL changes over PostgreSQL logical replication
logical_ddl
Replication and streams
loginThe login event occurs when an authenticated user logs into the system. Any bug in a trigger procedure for this event may prevent successful login to the system. Such bugs may be worked arou…
login_hookhook to execute login_hook.login() at login time
login_hook
Security
login_refuseAuthentication hook that temporarily refuses logins after repeated failures
authentication login security
login_refuse
Security
loginfoFunctions and views for PostgreSQL to query the postgres log
logging monitoring observability
loginfo
Monitoring
loglog_counterAggregation functions and data type for distinct estimation based on LogLog.
aggregate count distinct estimate loglog
distinct_estimators
Functions and aggregates
lolorLogical-replication-friendly replacement for PostgreSQL large objects
fork pgedge
lolor
Replication and streams
londistereplication support code
logical-replication queue replication
londiste
Replication and streams
longitude( earth ) → float8 Returns the longitude in degrees of a point on the surface of the Earth.
LOOP[ <<label>> ] LOOP statements END LOOP [ label ];
LOOP defines an unconditional loop that is repeated indefinitely until terminated by an EXIT or RETURN statement. The optional label can be …
Looping through a Cursor's ResultThere is a variant of the FOR statement that allows iterating through the rows returned by a cursor. The syntax is:
[ <<label>> ] FOR recordvar IN bound_cursorvar [ ( [ argument_name { := | …
Looping through ArraysThe FOREACH loop is much like a FOR loop, but instead of iterating through the rows returned by an SQL query, it iterates through the elements of an array value. (In general, FOREACH is mean…
Looping through Query ResultsUsing a different type of FOR loop, you can iterate through the results of a query and manipulate that data accordingly. The syntax is:
[ <<label>> ] FOR target IN query LOOP statements END …
lostgisspatial helper functions and types
gis spatial spatiotemporal temporal tpv
lostgis
Geospatial
lower_quantileLower quantile aggregate function
lower_quantile
Functions and aggregates
lpathtreeHierarchical path types using slash-separated labels
hierarchy path tree
lpathtree
Data types
lshvectora feature vector type and a locality sensitive hashing index
lshvector
AI and vectors
lsmRocksDB foreign data wrapper for PostgreSQL
fdw key-value rocksdb
lsm
Foreign data wrappers
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
Searching every version by default. Manual pages are indexed for PostgreSQL 10–20; the reference library and extension catalogue are not version-bound.
all: every version pg17: one version ex: extensions only ↑↓ select ↵ open