Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index4025
macaddr88.9.5. macaddr8
The macaddr8 type stores MAC addresses in EUI-64 format, known for example from Ethernet card hardware addresses (although MAC addresses are used for other purposes as well).…macaddr8
macOSJ.2.4. macOS
If you use MacPorts, the following will get you set up:
sudo port install docbook-xml docbook-xsl-nons libxslt fop
If you use Homebrew, use this:
brew install docbook docbook-xs…macOS
macOS17.7.2. macOS
To build PostgreSQL from source on macOS, you will need to install Apple's command line developer tools, which can be done by issuing
xcode-select --install
(note that this wil…macOS
Main Functions32.3.1. Main Functions
PQexec # Submits a command to the server and waits for the result. PGresult *PQexec(PGconn *conn, const char *command); Returns a PGresult pointer or possibly a null p…Main Functions
Maintenance for Inheritance Partitioning5.12.3.2. Maintenance for Inheritance Partitioning
To remove old data quickly, simply drop the child table that is no longer necessary:
DROP TABLE measurement_y2006m02;
To remove the child t…Maintenance for Inheritance Partitioning
Major Versions36.10.6.2.1. Major Versions
There is no promise of API compatibility between PostgreSQL major versions. Extension code therefore might require source code changes to work with multiple major…Major Versions
Major Versions36.10.6.3.1. Major Versions
Servers of different major versions have intentionally incompatible ABIs. Extensions that use server APIs must therefore be re-compiled for each major release. Th…Major Versions
Making a Base Backup25.3.2. Making a Base Backup
The easiest way to perform a base backup is to use the pg_basebackup tool. It can create a base backup either as regular files or as a tar archive. If more flexi…Making a Base Backup
Making a Base Backup Using the Low Level API25.3.4. Making a Base Backup Using the Low Level API
Instead of taking a full or incremental base backup using pg_basebackup, you can take a base backup using the low-level API. This procedu…Making a Base Backup Using the Low Level API
Making an Incremental Backup25.3.3. Making an Incremental Backup
You can use pg_basebackup to take an incremental backup by specifying the --incremental option. You must supply, as an argument to --incremental, the bac…Making an Incremental Backup
Managing Collations23.2.2. Managing Collations
A collation is an SQL schema object that maps an SQL name to locales provided by libraries installed in the operating system. A collation definition has a provide…Managing Collations
Managing Configuration File Contents19.1.5. Managing Configuration File Contents
PostgreSQL provides several features for breaking down complex postgresql.conf files into sub-files. These features are especially useful when ma…Managing Configuration File Contents
Managing Database Connections34.2. Managing Database Connections
This section describes how to open, close, and switch database connections.Managing Database Connections
Managing DatabasesChapter 22. Managing Databases
Every instance of a running PostgreSQL server manages one or more databases. Databases are therefore the topmost hierarchical level for organizing SQL objects …Managing Databases
Managing Kernel Resources18.4. Managing Kernel Resources
PostgreSQL can sometimes exhaust various operating system resource limits, especially when multiple copies of the server are running on the same system, or in…Managing Kernel Resources
Managing Transactions34.3.3. Managing Transactions
In the default mode, statements are committed only when EXEC SQL COMMIT is issued. The embedded SQL interface also supports autocommit of transactions (similar …Managing Transactions
Manipulating Documents12.4.1. Manipulating Documents
Section 12.3.1 showed how raw textual documents can be converted into tsvector values. PostgreSQL also provides functions and operators that can be used to man…Manipulating Documents
Manipulating Queries12.4.2. Manipulating Queries
Section 12.3.2 showed how raw textual queries can be converted into tsquery values. PostgreSQL also provides functions and operators that can be used to manipula…Manipulating Queries
ManpagesJ.3.2. Manpages
We use the DocBook XSL stylesheets to convert DocBook refentry pages to *roff output suitable for man pages. To create the man pages, use the command:
doc/src/sgml$ make manManpages
Mapping Tables to XML9.15.4. Mapping Tables to XML
The following functions map the contents of relational tables to XML values. They can be thought of as XML export functionality:
table_to_xml ( table regclass, …Mapping Tables to XML
Mappings between SQL and XML Data Types and ValuesD.3.1.3. Mappings between SQL and XML Data Types and Values
In SQL:2006 and later, both directions of conversion between standard SQL data types and the XML Schema types are specified precis…Mappings between SQL and XML Data Types and Values
Materialized Views39.3. Materialized Views
Materialized views in PostgreSQL use the rule system like views do, but persist the results in a table-like form. The main differences between:
CREATE MATERIALIZED V…Materialized Views
Mathematical Functions and Operators9.3. Mathematical Functions and Operators
Mathematical operators are provided for many PostgreSQL types. For types without standard mathematical conventions (e.g., date/time types) we descri…Mathematical Functions and Operators
MCV Lists69.2.3. MCV Lists
As explained in Section 69.2.1, functional dependencies are very cheap and efficient type of statistics, but their main limitation is their global nature (only tracking dep…MCV Lists
Measuring Executor Timing OverheadMeasuring Executor Timing Overhead
When the query executor is running a statement using EXPLAIN ANALYZE, individual operations are timed as well as showing a summary. The overhead of your sy…Measuring Executor Timing Overhead
Mechanics56.2.1. Mechanics
This section describes how to implement native language support in a program or library that is part of the PostgreSQL distribution. Currently, it only applies to C program…Mechanics
Memory19.4.1. Memory
shared_buffers (integer)
Sets the amount of memory the database server uses for shared memory buffers. The default is typically 128 megabytes (128MB), but might be less if you…Memory
Memory Management45.3. Memory Management
PostgreSQL allocates memory within memory contexts, which provide a convenient method of managing allocations made in many different places that need to live for diff…Memory Management
MERGEMERGE MERGE — conditionally insert, update, or delete rows of a table
Synopsis [ WITH with_query [, ...] ] MERGE INTO [ ONLY ] target_table_name [ * ] [ [ AS ] target_alias ] USING data_sour…MERGE
Merge Support Functions9.23. Merge Support Functions
PostgreSQL includes one merge support function that may be used in the RETURNING list of a MERGE command to identify the action taken for each row; see Table 9.…Merge Support Functions
MERGES36.15.6. MERGES
The MERGES clause, if present, tells the system that it is permissible to use the merge-join method for a join based on this operator. MERGES only makes sense for a binary op…MERGES
meson Build Targets17.4.4. meson Build Targets
Individual build targets can be built using ninja target. When no target is specified, everything except documentation is built. Individual build products can be …meson Build Targets
meson setup Options17.4.3. meson setup Options
meson setup's command-line options are explained below. This list is not exhaustive (use meson configure --help to get one that is). The options not covered here …meson setup Options
Message Data Types54.6. Message Data Types
This section describes the base data types used in messages.
Intn(i) An n-bit integer in network byte order (most significant byte first). If i is specified it is th…Message Data Types
Message Flow54.2. Message Flow
This section describes the message flow and the semantics of each message type. (Details of the exact representation of each message appear in Section 54.7.) There are sev…Message Flow
Message Formats54.7. Message Formats
This section describes the detailed format of each message. Each is marked to indicate that it can be sent by a frontend (F), a backend (B), or both (F & B). Notice tha…Message Formats
Message-Writing Guidelines56.2.2. Message-Writing Guidelines
Here are some guidelines for writing messages that are easily translatable.
Do not construct sentences at run-time, like: printf("Files were %s.\n", flag ?…Message-Writing Guidelines
Messaging Overview54.1.1. Messaging Overview
All communication is through a stream of messages. The first byte of a message identifies the message type, and the next four bytes specify the length of the rest …Messaging Overview
Meta-CommandsMeta-Commands
Anything you enter in psql that begins with an unquoted backslash is a psql meta-command that is processed by psql itself. These commands make psql more useful for administrati…Meta-Commands
MetaphoneF.16.4. Metaphone
Metaphone, like Soundex, is based on the idea of constructing a representative code for an input string. Two strings are then deemed similar if they have the same codes.
Th…Metaphone
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open