Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries12241
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.
This function calculates the …
micromanageexample extension to inject plans
planner protobuf query-plan
pg_micromanage
Features
migrationDatabase Migrations: Configure and Run
migration schema versioning
postgresql_migrations
Replication and streams
Migration to Version 18A dump/restore using pg_dumpall or use of pg_upgrade or logical replication is required for those wishing to migrate data from any previous release. See Section 18.6 for general information …
Migration to Version 18.1A dump/restore is not required for those running 18.X.
Migration to Version 18.2A dump/restore is not required for those running 18.X.
However, if you have any indexes on ltree columns, it may be necessary to reindex them after updating. See the sixth changelog entry be…
Migration to Version 18.3A dump/restore is not required for those running 18.X.
However, if you are upgrading from a version earlier than 18.2, see Section E.4.
Migration to Version 18.4A dump/restore is not required for those running 18.X.
However, if you are upgrading from a version earlier than 18.2, see Section E.4.
Migration to Version 18.6A dump/restore is not required for those running 18.X.
However, the first three security entries below describe configuration adjustments and data cleanups that you may need to make after up…
mimeoExtension for specialized, per-table replication between PostgreSQL instances
mimeo
Replication and streams
min_to_maxaggregates and functions for PostgreSQL Server
aggregates c custom-aggregates extension functions postgresql postgresql-extension
min_to_max
Functions and aggregates
MinGWPostgreSQL for Windows can be built using MinGW, a Unix-like build environment for Windows. It is recommended to use the MSYS2 environment for this and also to install any prerequisite packa…
Minor VersionsPostgreSQL makes an effort to avoid server API breaks in minor releases. In general, extension code that compiles and works with a minor release should also compile and work with any other m…
Minor VersionsPostgreSQL makes an effort to avoid server ABI breaks in minor releases. In general, an extension compiled against any minor release should work with any other minor release of the same majo…
mipt-asjAbbreviation-aware approximate string joins using the Tao-Deng-Stonebraker algorithm
approximate-join similarity string
mipt_asj
Full-text search
MiscellaneousIt's fairly common, particularly for test builds, to adjust the default port number with --with-pgport. The other options in this section are recommended only for advanced users.
--with-pgpo…
MiscellaneousDpgport=NUMBER # Set NUMBER as the default port number for server and clients. The default is 5432. The port can always be changed later on, but if you specify it here then both server and c…
MiscellaneousWe reject the LOAD command across the board, because any module loaded could easily circumvent security policy enforcement.
Miscellaneous Coding ConventionsC Standard # Code in PostgreSQL should only rely on language features available in the C99 standard. That means a conforming C99 compiler has to be able to compile postgres, at least aside f…
Miscellaneous FunctionsAs always, there are some functions that just don't fit anywhere.
PQfreemem
Frees memory allocated by libpq. void PQfreemem(void *ptr); Frees memory allocated by libpq, particularly PQescape…
mmddyyyyEducational date type with B-tree, wildcard patterns, and GiST nearest-neighbor search
date gist education
pg-mm-dd-yyyy
Time series
mobilitydbgeospatial trajectory data management & analysis platform
mobilitydb
Geospatial
mobilitydb_datagenMobilityDB random data generator functions
mobilitydb
Geospatial
moddatetimefunctions for tracking last modification time
moddatetime
Functions and aggregates
moddatetime — Functions for Tracking Last Modification Timemoddatetime() is a trigger that stores the current time into a timestamp field. This can be useful for tracking the last modification time of a particular row within a table.
To use, create …
modeshape_bsonPostgreSQL extension to convert ModeShape BSON to and from JSON
bson json modeshape
modeshape_bson
Utilities
Modifying ArraysAn array value can be replaced completely:
UPDATE sal_emp SET pay_by_quarter = '{25000,25000,27000,27000}' WHERE name = 'Carol';
or using the ARRAY expression syntax:
UPDATE sal_emp SET pay_…
Modifying Composite TypesHere are some examples of the proper syntax for inserting and updating composite columns. First, inserting or updating a whole column:
INSERT INTO mytab (complex_col) VALUES((1.1,2.2)); UPDA…
Modifying TablesWhen you create a table and you realize that you made a mistake, or the requirements of the application change, you can drop the table and create it again. But this is not a convenient optio…
mods_since_analyzeEstimation of number of changed tuples
analyze changed tuples estimation
mods_since_analyze
Monitoring
mogipixPostgreSQL extension exposing HEALPix and MOC Rust functions to SQL.
astronomy astrophysics healpix moc pgrx
mogipix
Geospatial
molecular_formulasMolecular-formula parser and strongly typed PostgreSQL data type
chemistry molecular-formula pgrx
emi_monorepo
Data types
Monetary TypesThe money type stores a currency amount with a fixed fractional precision; see Table 8.3. The fractional precision is determined by the database's lc_monetary setting. The range shown in the…
monetdb_fdwMonetDB foreign data wrapper
fdw monetdb
monetdb_fdw
Foreign data wrappers
mongo_fdwforeign data wrapper for MongoDB access
mongo_fdw
Foreign data wrappers
MonitoringBecause logical replication is based on a similar architecture as physical streaming replication, the monitoring on a publication node is similar to monitoring of a physical replication prim…
MonitoringIncrease the logging granularity of server variable log_connections (Melanie Plageman) § This server variable was previously only boolean, which is still supported. Add log_connections optio…
MonitoringAn important health indicator of streaming replication is the amount of WAL records generated in the primary, but not yet applied in the standby. You can calculate this lag by comparing the …
Monitoring Database ActivityA database administrator frequently wonders, “What is the system doing right now?” This chapter discusses how to find that out.
Several tools are available for monitoring database activity a…
Monitoring Disk UsageThis section discusses how to monitor the disk usage of a PostgreSQL database system.
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