Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries12229
Installing Procedural LanguagesA procedural language must be “installed” into each database where it is to be used. But procedural languages installed in the database template1 are automatically available in all subsequen…
Insufficient Stack DepthIf the errors test results in a server crash at the select infinite_recurse() command, it means that the platform's limit on process stack size is smaller than the max_stack_depth parameter …
int( number ) → integer Casts to integer. int(5.4 + 3.8) → 9
intagginteger aggregator and enumerator
The intagg module provides an integer aggregator and an enumerator. intagg is now obsolete, because there are built-in functions that provide a superset of …
intagg — integer aggregator and enumeratorThe intagg module provides an integer aggregator and an enumerator. intagg is now obsolete, because there are built-in functions that provide a superset of its capabilities. However, the mod…
intarraymanipulate arrays of integers
The intarray module provides a number of useful functions and operators for manipulating null-free arrays of integers. There is also support for indexed searche…
intarray Functions and OperatorsThe functions provided by the intarray module are shown in Table F.8, the operators in Table F.9.
Table F.8. intarray Functions Function Description Example(s) icount ( integer[] ) → integer…
intarray — manipulate arrays of integersThe intarray module provides a number of useful functions and operators for manipulating null-free arrays of integers. There is also support for indexed searches using some of the operators.…
Integer TypesThe types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges. Attempts to store values outside of the allowed range will res…
interconnectOne advanced and mature open-source MPP (Massively Parallel Processing) database. Open source alternative to Greenplum Database.
ai big-data c cloudberry data-analysis data-warehouse databas…
Interface Functions
Interface Support FunctionsThe functions described here provide an interface for extracting information from result sets returned by SPI_execute and other SPI functions.
All functions described in this section can be …
Interfacing Extensions to IndexesThe procedures described thus far let you define new types, new functions, and new operators. However, we cannot yet define an index on a column of a new data type. To do this, we must defin…
Interleaving Result Processing and Query DispatchTo avoid deadlocks on large pipelines the client should be structured around a non-blocking event loop using operating system facilities such as select, poll, WaitForMultipleObjectEx, etc.
T…
Internal Functionsare functions written in C that have been statically linked into the PostgreSQL server. The “body” of the function definition specifies the C-language name of the function, which need not be…
InternalsThis section explains how ECPG works internally. This information can occasionally be useful to help users understand how to use ECPG.
The first four lines written by ecpg to the output are …
InternalsPart VII. Internals
This part contains assorted information that might be of use to PostgreSQL developers.
Interpreting ResultsGood results will show most (>90%) individual timing calls take less than one microsecond. Average per loop overhead will be even lower, below 100 nanoseconds. This example from an Intel i7-…
INTERSECT7.4. Combining Queries (UNION, INTERSECT, EXCEPT) # The results of two queries can be combined using the set operations union, intersection, and difference. The syntax is query1 UNION [ALL] …
INTERSECT ClauseThe INTERSECT clause has this general form:
select_statement INTERSECT [ ALL | DISTINCT ] select_statement
select_statement is any SELECT statement without an ORDER BY, LIMIT, FOR NO KEY UPD…
intervalThe handling of the interval type is also similar to the timestamp and date types. It is required, however, to allocate memory for an interval type value explicitly. In other words, the memo…
Interval Inputinterval values can be written using the following verbose syntax:
[@] quantity unit [quantity unit...] [direction]
where quantity is a number (possibly signed); unit is microsecond, millise…
Interval OutputAs previously explained, PostgreSQL stores interval values as months, days, and microseconds. For output, the months field is converted to years and months by dividing by 12. The days field …
intpairPacked int64pair data type with comparison, hash, and index operator support.
data-type index
pg_intpair
Data types
IntroductionBRIN stands for Block Range Index. BRIN is designed for handling very large tables in which certain columns have some natural correlation with their physical location within the table.
BRIN …
IntroductionPostgreSQL includes an implementation of the standard btree (multi-way balanced tree) index data structure. Any data type that can be sorted into a well-defined linear order can be indexed b…
IntroductionGIN stands for Generalized Inverted Index. GIN is designed for handling cases where the items to be indexed are composite values, and the queries to be handled by the index need to search fo…
IntroductionGiST stands for Generalized Search Tree. It is a balanced, tree-structured access method, that acts as a base template in which to implement arbitrary indexing schemes. B-trees, R-trees and …
IntroductionSuppose we have a table similar to this:
CREATE TABLE test1 ( id integer, content varchar );
and the application issues many queries of the form:
SELECT content FROM test1 WHERE id = constan…
IntroductionAll large objects are stored in a single system table named pg_largeobject. Each large object also has an entry in the system table pg_largeobject_metadata. Large objects can be created, mod…
IntroductionPostgreSQL provides a rich set of tools for developers to manage concurrent access to data. Internally, data consistency is maintained by using a multiversion model (Multiversion Concurrency…
IntroductionSP-GiST is an abbreviation for space-partitioned GiST. SP-GiST supports partitioned search trees, which facilitate development of a wide range of different non-balanced data structures, such…
IntroductionFull Text Searching (or just text search) provides the capability to identify natural-language documents that satisfy a query, and optionally to sort them by relevance to the query. The most…
IntroductionIn the previous chapter we have covered the basics of using SQL to store and access your data in PostgreSQL. We will now discuss some more advanced features of SQL that simplify management a…
IntroductionThis chapter provides an overview of how to use SQL to perform simple operations. This tutorial is only intended to give you an introduction and is in no way a complete tutorial on SQL. Nume…
intset( integer ) → integer[] Makes a single-element array. intset(42) → {42}
ip4rIPv4/v6 and IPv4/v6 range index type for PostgreSQL
ip4r
Data types
ipinfoIP geolocation lookup functions backed by the ipinfo.io HTTP service.
ip geolocation http ipinfo
ipinfo
Geospatial
IS DOCUMENT# xml IS DOCUMENT → boolean The expression IS DOCUMENT returns true if the argument XML value is a proper XML document, false if it is not (that is, it is a content fragment), or null if the…
IS DOCUMENTxml IS DOCUMENT → boolean
The expression IS DOCUMENT returns true if the argument XML value is a proper XML document, false if it is not (that is, it is a content fragment), or null if the a…
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