Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9769
debugdebug ( number ) → same type as input Prints the argument to stderr, and returns the argument. debug(5432.1) → 5432.1pgbench › Notes › Built-In Functions
debug_assertionsdebug_assertions
Preset Options
10
Reports whether PostgreSQL has been built with assertions enabled. That is the case if the macro USE_ASSERT_CHECKING is defined when PostgreSQL is built (a…Configuration · Preset Options
debug_copy_parse_plan_treesdebug_copy_parse_plan_trees
Developer Options
18
Enabling this forces all parse and plan trees to be passed through copyObject(), to facilitate catching errors and omissions in copyObject().…Configuration · Developer Options
debug_deadlocksdebug_deadlocks
Developer Options
10
If set, dumps information about all current locks when a deadlock timeout occurs. This parameter is only available if the LOCK_DEBUG macro was defined wh…Configuration · Developer Options
debug_discard_cachesdebug_discard_caches
Developer Options
14
When set to 1, each system catalog cache entry is invalidated at the first possible opportunity, whether or not anything that would render it invali…Configuration · Developer Options
debug_exec_backenddebug_exec_backend
Preset Options
19
Reports whether PostgreSQL has been built with EXEC_BACKEND enabled. That is the case on Windows or if the macro EXEC_BACKEND is defined when PostgreSQL …Configuration · Preset Options
debug_funcsDebugging and benchmark functions for PostgreSQL buffer and relation locks.
debugging locks
debug_funcs
AdministrationAdministration · Extensions
debug_io_directdebug_io_direct
Developer Options
16
Ask the kernel to minimize caching effects for relation data and WAL files using O_DIRECT (most Unix-like systems), F_NOCACHE (macOS) or FILE_FLAG_NO_BUF…Configuration · Developer Options
debug_logical_replication_streamingdebug_logical_replication_streaming
Developer Options
16
The allowed values are buffered and immediate. The default is buffered. This parameter is intended to be used to test logical decodin…Configuration · Developer Options
debug_parallel_querydebug_parallel_query
Developer Options
16
Allows the use of parallel queries for testing purposes even in cases where no performance benefit is expected. The allowed values of debug_parallel…Configuration · Developer Options
debug_pretty_printdebug_pretty_print
Reporting and Logging
10
When set, debug_pretty_print indents the messages produced by debug_print_parse, debug_print_rewritten, or debug_print_plan. This results in more …Configuration · Reporting and Logging
debug_print_parsedebug_print_parse
Reporting and Logging
10
These parameters enable various debugging output to be emitted. When set, they print the resulting parse tree, the query rewriter output, or the ex…Configuration · Reporting and Logging
debug_print_plandebug_print_plan
Reporting and Logging
10
These parameters enable various debugging output to be emitted. When set, they print the resulting parse tree, the query rewriter output, or the exe…Configuration · Reporting and Logging
debug_print_raw_parsedebug_print_raw_parse
Reporting and Logging
19
These parameters enable various debugging output to be emitted. When set, they print the resulting raw parse tree, the parse tree, the query re…Configuration · Reporting and Logging
debug_print_rewrittendebug_print_rewritten
Reporting and Logging
10
These parameters enable various debugging output to be emitted. When set, they print the resulting parse tree, the query rewriter output, or th…Configuration · Reporting and Logging
debug_raw_expression_coverage_testdebug_raw_expression_coverage_test
Developer Options
18
Enabling this forces all raw parse trees for DML statements to be scanned by raw_expression_tree_walker(), to facilitate catching erro…Configuration · Developer Options
debug_write_read_parse_plan_treesdebug_write_read_parse_plan_trees
Developer Options
18
Enabling this forces all parse and plan trees to be passed through outfuncs.c/readfuncs.c, to facilitate catching errors and omissions …Configuration · Developer Options
Debugging and Developer Settings32.20.2. Debugging and Developer Settings
A "dangerous debugging mode" may be enabled by setting the environment variable PGOAUTHDEBUG=UNSAFE. This functionality is provided for ease of loca…Debugging and Developer Settings
debversionDebian version number data type
debversion
Data typesData types · Extensions
decibelDecibel data type with pressure conversions, arithmetic operators, comparisons, and aggregates
data-type decibel measurement
pgdecibel
Data typesData types · Extensions
decimalDecimal32 and decimal64 decimal floating-point data types with arithmetic and casts
numeric type
pgDecimal
Data typesData types · Extensions
Declaration of Array Types8.15.1. Declaration of Array Types
To illustrate the use of array types, we create this table:
CREATE TABLE sal_emp ( name text, pay_by_quarter integer[], schedule text[][] );
As shown, an a…Declaration of Array Types
Declaration of Composite Types8.16.1. Declaration of Composite Types
Here are two simple examples of defining composite types:
CREATE TYPE complex AS ( r double precision, i double precision ); CREATE TYPE inventory_item…Declaration of Composite Types
Declaration of Enumerated Types8.7.1. Declaration of Enumerated Types
Enum types are created using the CREATE TYPE command, for example:
CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
Once created, the enum type can be …Declaration of Enumerated Types
Declarations41.3. Declarations
All variables used in a block must be declared in the declarations section of the block. (The only exceptions are that the loop variable of a FOR loop iterating over a ran…Declarations
Declarative Partitioning5.12.2. Declarative Partitioning
PostgreSQL allows you to declare that a table is divided into partitions. The table that is divided is referred to as a partitioned table. The declaration in…Declarative Partitioning
DECLAREDECLARE DECLARE — define a cursor
Synopsis DECLARE cursor_name [ BINARY ] [ ASENSITIVE | INSENSITIVE ] [ [ NO ] SCROLL ] CURSOR [ { WITH | WITHOUT } HOLD ] FOR prepared_name DECLARE cursor_n…DECLARE
DECLAREDECLARE DECLARE — define a cursor
Synopsis DECLARE name [ BINARY ] [ ASENSITIVE | INSENSITIVE ] [ [ NO ] SCROLL ] CURSOR [ { WITH | WITHOUT } HOLD ] FOR queryDECLARE
DECLAREDECLARE
Cursors & Prepared Statements
10
define a cursor
DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ]
CURSOR [ { WITH | WITHOUT } HOLD ] FOR query
DECLARE allows a user to creat…SQL Commands · Cursors & Prepared Statements
Declare Sections34.4.2. Declare Sections
To pass data from the program to the database, for example as parameters in a query, or to pass data from the database back to the program, the C variables that are …Declare Sections
DECLARE STATEMENTDECLARE STATEMENT DECLARE STATEMENT — declare SQL statement identifier
Synopsis EXEC SQL [ AT connection_name ] DECLARE statement_name STATEMENTDECLARE STATEMENT
Declaring Cursor Variables41.7.1. Declaring Cursor Variables
All access to cursors in PL/pgSQL goes through cursor variables, which are always of the special data type refcursor. One way to create a cursor variable i…Declaring Cursor Variables
Declaring Function Parameters41.3.1. Declaring Function Parameters
Parameters passed to functions are named with the identifiers $1, $2, etc. Optionally, aliases can be declared for $n parameter names for increased read…Declaring Function Parameters
decodedecode
Binary String Functions And Operators
10
Decode binary data from textual representation in string. Options for format are same as in encode.
decode ( string text, format text ) → byte…Functions · Binary String Functions And Operators
decoder_rawOutput plugin for logical replication in Raw SQL format
decoder_raw
Replication and streamsReplication and streams · Extensions
decoderbufsLogical decoding plugin that delivers WAL stream changes using a Protocol Buffer format
decoderbufs
Replication and streamsReplication and streams · Extensions
Deduplication65.1.4.3. Deduplication
A duplicate is a leaf page tuple (a tuple that points to a table row) where all indexed key columns have values that match corresponding column values from at least o…Deduplication
Default Behavior19.10.3. Default Behavior
vacuum_truncate (boolean) # Enables or disables vacuum to try to truncate off any empty pages at the end of the table. The default value is true. If true, VACUUM an…Default Behavior
Default Roles Renamed to Predefined RolesO.2. Default Roles Renamed to Predefined Roles
PostgreSQL 13 and below used the term “Default Roles”. However, as these roles are not able to actually be changed and are installed as part of…Default Roles Renamed to Predefined Roles
Default Values5.2. Default Values
A column can be assigned a default value. When a new row is created and no values are specified for some of the columns, those columns will be filled with their respectiv…Default Values
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open