Features for PostgreSQLModified date: Monday, June 30, 2025
In its own words, "PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance". It is currently ranked #4 in DB-Engine rankings.
We list some concpets might be used in the sections to explain things.
| Concept | Explaination |
|---|---|
| MVCC, VACUUM | |
| WAL, PITR | |
| OID | |
| LISTEN/NOTIFY | |
| More … |
Here are some readings explain PostgreSQL internals.
| Item | Introduction |
|---|---|
| The Internals of PostgreSQL | |
| PostgreSQL Internals (official document) | |
| Learning PostgreSQL Internals | |
| More … | 🔍 |
| Feature | Value | Definition |
|---|---|---|
| intro | PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. | |
| vendor | PostgreSQL Committees | |
| initial release | 1998 | |
| latested version | 17 | |
| supported platforms | x86, PowerPC, S/390, SPARC, ARM, MIPS, RISC-V, and PA-RISC | |
| db-engines ranking | 4 | |
| relational? | yes | |
| open source? | yes | |
| license | ||
| price: box software | 0 | |
| on-premise offering | yes | |
| cloud offering | cloud vendors | |
| technical doc | www.postgresql.org/docs |
| Feature | Value | Definition |
|---|---|---|
| int: signess | signed only | |
| int: 1-bytes int name | n.a. | |
| int: 2-bytes int name | smallint | |
| int: 3-bytes int name | n.a. | |
| int: 4-bytes int name | int | |
| int: 8-bytes int name | bigint | |
| decimal: storage size | variable | |
| decimal: range | up to 131072 digits before the decimal point; up to 16383 digits after the decimal point | |
| char(n): max bytes | 10,485,760 | |
| text: max bytes | 1G |
| Feature | Value | Definition |
|---|---|---|
| SQL: standard complaince | high | |
| max SQL length | ||
| PL: main | SQL + PL/PgSQL | |
| PL: other language support | yes | |
| SP: max parameters | 100 | |
| UDF: max parameters | 100 | |
| SQL: max parameters | 65535 | |
| SQL: query hints | GUC only | |
| SQL: explicit locking | yes: row, page, table level | |
| Triggers? | yes | |
| Triggers: scope | tables, views, foreign tables | |
| Triggers: type | BEFORE, AFTER, INSTEAD OF | |
| Object-Relational? | yes | |
| Extension Mechanism | C programming, link with engine | |
| vector search | no native |
| Feature | Value | Definition |
|---|---|---|
| arch: server | C/S | |
| arch: run in browser? | no/yes | |
| arch: in-memory support | no | |
| arch: Multi-master support? | no | |
| arch: primary/read replica? | yes | |
| replication: sync/async | both | |
| replication: WAL shipping | yes | |
| replication: quorum-based commit | no | |
| database: max number | ||
| tables: max number per database | 1,431,650,303 | |
| partitions: methods | Range, List, Hash; limited composite (multi-level partitioning more limited than Oracle/SQL Server). | |
| partitions: global index | no | |
| rows: max rows per table | 32T/row_size | |
| index: max allowed index | rows per table is restricted by the number of rows that can fit onto MAX_UINT*8K pages. | |
| ACID | yes/yes | |
| ACID: max isolation level | ||
| ACID: max ANSI isolation level | Serializable | |
| ACID: durability | yes | |
| Materialized View: support? | yes |
| Feature | Value | Definition |
|---|---|---|
| any official TPC benchmarks? | no |
| Feature | Value | Definition |
|---|---|---|
| command line client | psql | |
| admin(GUI) | pgAdmin |
| Feature | Value | Definition |
|---|---|---|
| Jurisdiction | US | |
| ECCN | None | |
| Eligible License Exception / CCATS | Not required | |
| Encryption Components | SSL |
| Feature | Value | Definition |
|---|---|---|
| concurrency control | MVCC | |
| MVCC: implemented? | yes | |
| MVCC: rollback segment | no | |
| Implementation language | C |
| Feature | Value | Definition |
|---|---|---|
| CBO? | yes | |
| framework | System-R | |
| join order search | dynamic programming + Generic Algorithm (GEQO) | |
| stats: multi column | yes | |
| query hints? | GUC only | |
| plan guide? | no |
| Feature | Value | Definition |
|---|---|---|
| resource management | simple: work_mem controls per-operator memory use | |
| spilling support | yes | |
| model | Volcano + push for parallel run | |
| support intra-parallel query? | yes | |
| adaptive execution (AQP)? | no | |
| vectorization | no native | |
| iterator: join methods | all 3 | |
| Error: out-of-range and overflow | abort the transaction |
| Feature | Value | Definition |
|---|---|---|
| Page Size | 8K default | |
| Storage Compression | TOAST compression (within a row) | |
| Row Overflow / Large Row Handling | Row within a page and large columns pointing to TOAST storage | |
| Index: primary cluster | Heap storage by default; CLUSTER command for static clustering - if modification happens after, order is not maintained. | |
| Index: secondary | B+Tree, GIN, GiST, SP-GiST, BRIN, Hash, Fulltext (via extensions). | |
| index: column store as primary | No native support; available via extensions (e.g. cstore_fdw, citus). | |
| index: column store as secondary | No native support; available via extensions (e.g. cstore_fdw, citus). | |
| partition table | declarative partition table is implemented via inheritance table, since V11 | |
| partition table: prunning | mostly at compile time, some runtime | |
| ACID: durability mechanism | WAL |