↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Search PostgreSQL documentation

PG 18 · Browse by category, or enter a name or keyword

Popular entries9775
IMPORT FOREIGN SCHEMASQL CommandsReferenceIMPORT FOREIGN SCHEMA Foreign Data 10 import table definitions from a foreign server IMPORT FOREIGN SCHEMA remote_schema [ { LIMIT TO | EXCEPT } ( table_name [, ...] ) ] FROM SERVER server_n…SQL Commands · Foreign Data Importing a Large ObjectManual ChaptersPG1833.3.2. Importing a Large Object To import an operating system file as a large object, call Oid lo_import(PGconn *conn, const char *filename); filename specifies the operating system name of…Importing a Large Object Importing OptionsManual ChaptersPG18F.38.1.9. Importing Options postgres_fdw is able to import foreign table definitions using IMPORT FOREIGN SCHEMA. This command creates foreign table definitions on the local server that matc…Importing Options INSQL CommandsPG189.25.1. IN # expression IN (value [, ...]) The right-hand side is a parenthesized list of expressions. The result is “true” if the left-hand expression's result is equal to any of the right-…Row and Array Comparisons › IN INManual ChaptersPG189.25.1. IN expression IN (value [, ...]) The right-hand side is a parenthesized list of expressions. The result is “true” if the left-hand expression's result is equal to any of the right-ha…IN INManual ChaptersPG189.24.2. IN expression IN (subquery) The right-hand side is a parenthesized subquery, which must return exactly one column. The left-hand expression is evaluated and compared to each row of t…IN in_hot_standbyConfigurationReferencein_hot_standby Preset Options 14 Reports whether the server is currently in hot standby mode. When this is on, all transactions are forced to be read-only. Within a session, this can change …Configuration · Preset Options Incidental Limits of the ImplementationManual ChaptersPG18D.3.2. Incidental Limits of the Implementation This section concerns limits that are not inherent in the libxml2 library, but apply to the current implementation in PostgreSQL.Incidental Limits of the Implementation Including FilesManual ChaptersPG1834.9.1. Including Files To include an external file into your embedded SQL program, use: EXEC SQL INCLUDE filename; EXEC SQL INCLUDE <filename>; EXEC SQL INCLUDE "filename"; The embedded SQL…Including Files Inclusive and Exclusive BoundsManual ChaptersPG188.17.3. Inclusive and Exclusive Bounds Every non-empty range has two bounds, the lower bound and the upper bound. All points between these values are included in the range. An inclusive boun…Inclusive and Exclusive Bounds Increase maintenance_work_memManual ChaptersPG1814.4.5. Increase maintenance_work_mem Temporarily increasing the maintenance_work_mem configuration variable when loading large amounts of data can lead to improved performance. This will he…Increase maintenance_work_mem Increase max_wal_sizeManual ChaptersPG1814.4.6. Increase max_wal_size Temporarily increasing the max_wal_size configuration variable can also make large data loads faster. This is because loading a large amount of data into Postgr…Increase max_wal_size indexFunctionsPG18index ( a ltree, b ltree ) → integer Returns position of first occurrence of b in a, or -1 if not found. index('0.1.2.3.5.4.5.6.8.5.6.8', '5.6') → 6ltree — hierarchical tree-like data type › Operators and Functions Index Access Method FunctionsManual ChaptersPG1863.2. Index Access Method Functions The index construction and maintenance functions that an index access method must provide in IndexAmRoutine are: IndexBuildResult * ambuild (Relation heap…Index Access Method Functions Index Access Method Interface DefinitionManual ChaptersPG18Chapter 63. Index Access Method Interface Definition This chapter defines the interface between the core PostgreSQL system and index access methods, which manage individual index types. The …Index Access Method Interface Definition Index Cost Estimation FunctionsManual ChaptersPG1863.6. Index Cost Estimation Functions The amcostestimate function is given information describing a possible index scan, including lists of WHERE and ORDER BY clauses that have been determin…Index Cost Estimation Functions Index Locking ConsiderationsManual ChaptersPG1863.4. Index Locking Considerations Index access methods must handle concurrent updates of the index by multiple processes. The core PostgreSQL system obtains AccessShareLock on the index dur…Index Locking Considerations Index MaintenanceManual ChaptersPG1865.5.1.1. Index Maintenance At the time of creation, all existing heap pages are scanned and a summary index tuple is created for each range, including the possibly-incomplete range at the e…Index Maintenance Index Maintenance FunctionsManual ChaptersPG189.28.8. Index Maintenance Functions Table 9.107 shows the functions available for index maintenance tasks. (Note that these maintenance tasks are normally done automatically by autovacuum; u…Index Maintenance Functions Index Method StrategiesManual ChaptersPG1836.16.2. Index Method Strategies The operators associated with an operator class are identified by “strategy numbers”, which serve to identify the semantics of each operator within the conte…Index Method Strategies Index Method Support RoutinesManual ChaptersPG1836.16.3. Index Method Support Routines Strategies aren't usually enough information for the system to figure out how to use an index. In practice, the index methods require additional suppor…Index Method Support Routines Index Methods and Operator ClassesManual ChaptersPG1836.16.1. Index Methods and Operator Classes Operator classes are associated with an index access method, such as B-Tree or GIN. Custom index access method may be defined with CREATE ACCESS M…Index Methods and Operator Classes Index ScanningManual ChaptersPG1863.3. Index Scanning In an index scan, the index access method is responsible for regurgitating the TIDs of all the tuples it has been told about that match the scan keys. The access method …Index Scanning Index Storage ParametersManual ChaptersPG18Index Storage Parameters The optional WITH clause specifies storage parameters for the index. Each index method has its own set of allowed storage parameters. The B-tree, hash, GiST and SP-G…Index Storage Parameters Index SupportManual ChaptersPG18F.19.2. Index Support intarray provides index support for the &&, @>, and @@ operators, as well as regular array equality. Two parameterized GiST index operator classes are provided: gist__i…Index Support Index SupportManual ChaptersPG18F.35.4. Index Support The pg_trgm module provides GiST and GIN index operator classes that allow you to create an index over a text column for the purpose of very fast similarity searches. T…Index Support Index TypesManual ChaptersPG1811.2. Index Types PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN, BRIN, and the extension bloom. Each index type uses a different algorithm that is best suited to …Index Types Index Uniqueness ChecksManual ChaptersPG1863.5. Index Uniqueness Checks PostgreSQL enforces SQL uniqueness constraints using unique indexes, which are indexes that disallow multiple entries with identical keys. An access method that…Index Uniqueness Checks Index-Only Scans and Covering IndexesManual ChaptersPG1811.9. Index-Only Scans and Covering Indexes All indexes in PostgreSQL are secondary indexes, meaning that each index is stored separately from the table's main data area (which is called the…Index-Only Scans and Covering Indexes index_adviserExtensionsExtensionsAlibaba Cloud RDS extension that analyzes workloads and recommends B-tree indexes. alibaba-cloud btree index-advisor query-optimization index_adviser FeaturesFeatures · Extensions index_advisorExtensionsExtensionsQuery index advisor supabase index_advisor FeaturesFeatures · Extensions index_am_handlerData TypesPG18index_am_handler An index access method handler is declared to return index_am_handler.Pseudo-Types index_analyzerExtensionsExtensionsPL/pgSQL functions for evaluating existing and prospective indexes and checking foreign-key indexing. administration analysis dba index index_analyzer FeaturesFeatures · Extensions IndexesManual ChaptersPG18F.17.3. Indexes hstore has GiST and GIN index support for the @>, ?, ?& and ?| operators. For example: CREATE INDEX hidx ON testhstore USING GIST (h); CREATE INDEX hidx ON testhstore USING G…Indexes IndexesManual ChaptersPG18Chapter 11. Indexes Indexes are a common way to enhance database performance. An index allows the database server to find and retrieve specific rows much faster than it could do without an i…Indexes IndexesManual ChaptersPG18F.22.3. Indexes ltree supports several types of indexes that can speed up the indicated operators: B-tree index over ltree: <, <=, =, >=, > Hash index over ltree: = GiST index over ltree (gi…Indexes IndexesManual ChaptersPG18E.6.3.1.2. Indexes Allow skip scans of btree indexes (Peter Geoghegan) § § This allows multi-column btree indexes to be used in more cases such as when there are no restrictions on the first…Indexes Indexes and CollationsManual ChaptersPG1811.11. Indexes and Collations An index can support only one collation per index column. If multiple collations are of interest, multiple indexes may be needed. Consider these statements: CRE…Indexes and Collations Indexes and ORDER BYManual ChaptersPG1811.4. Indexes and ORDER BY In addition to simply finding the rows to be returned by a query, an index may be able to deliver them in a specific sorted order. This allows a query's ORDER BY s…Indexes and ORDER BY Indexes on ExpressionsManual ChaptersPG1811.7. Indexes on Expressions An index column need not be just a column of the underlying table, but can be a function or scalar expression computed from one or more columns of the table. Thi…Indexes on Expressions
More results

Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.

pg17: choose a version ex: extensions only ↑↓ select ↵ open