We stand with Ukraine to help keep people safe. Join us
All Apps
Best AppsReviewsComparisonsHow-To
PostgreSQL free download for Mac

PostgreSQL

Version 16.1

SQL database server.

4.0
Based on 3 user ratesRead reviews & comments
Free
Absolutely Free

PostgreSQL overview

PostgreSQL for Mac is a collection of graphical tools for using and managing PostgreSQL servers, as well as the server itself installable on any Mac running OS X version 10.5.x.

Also included as part of the package is the PGSQLKit framework, an open source framework for developers to leverage the power of PostgreSQL in their own applications.

After many years of development, PostgreSQL has become feature-complete in many areas. This release shows a targeted approach to adding features (e.g., authentication, monitoring, space reuse), and adds capabilities defined in the later SQL standards.

What’s new in version 16.1

Updated on Nov 24 2023

  • Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions (Tom Lane). This error led to a text-type value being interpreted as an unknown-type value (that is, a zero-terminated string) at runtime. This could result in disclosure of server memory following the text value. The PostgreSQL Project thanks Jingzhou Fu for reporting this problem. (CVE-2023-5868)
  • Detect integer overflow while computing new array dimensions (Tom Lane). When assigning new elements to array subscripts that are outside the current array bounds, an undetected integer overflow could occur in edge cases. Memory stomps that are potentially exploitable for arbitrary code execution are possible, and so is disclosure of server memory. The PostgreSQL Project thanks Pedro Gallegos for reporting this problem. (CVE-2023-5869)
  • Prevent the pg_signal_backend role from signalling background workers and autovacuum processes (Noah Misch, Jelte Fennema-Nio). The documentation says that pg_signal_backend cannot issue signals to superuser-owned processes. It was able to signal these background processes, though, because they advertise a role OID of zero. Treat that as indicating superuser ownership. The security implications of cancelling one of these process types are fairly small so far as the core code goes (we'll just start another one), but extensions might add background workers that are more vulnerable. Also ensure that the is_superuser parameter is set correctly in such processes. No specific security consequences are known for that oversight, but it might be significant for some extensions. The PostgreSQL Project thanks Hemanth Sandrana and Mahendrakar Srinivasarao for reporting this problem. (CVE-2023-5870)
  • Fix misbehavior during recursive page split in GiST index build (Heikki Linnakangas). Fix a case where the location of a page downlink was incorrectly tracked, and introduce some logic to allow recovering from such situations rather than silently doing the wrong thing. This error could result in incorrect answers from subsequent index searches. It may be advisable to reindex all GiST indexes after installing this update.
  • Prevent de-duplication of btree index entries for interval columns (Noah Misch). There are interval values that are distinguishable but compare equal, for example 24:00:00 and 1 day. This breaks assumptions made by btree de-duplication, so interval columns need to be excluded from de-duplication. This oversight can cause incorrect results from index-only scans. Moreover, after updating amcheck will report an error for almost all such indexes. Users should reindex any btree indexes on interval columns.
  • Process date values more sanely in BRIN datetime_minmax_multi_ops indexes (Tomas Vondra). The distance calculation for dates was backward, causing poor decisions about which entries to merge. The index still produces correct results, but is much less efficient than it should be. Reindexing BRIN minmax_multi indexes on date columns is advisable.
  • Process large timestamp and timestamptz values more sanely in BRIN datetime_minmax_multi_ops indexes (Tomas Vondra). Infinities were mistakenly treated as having distance zero rather than a large distance from other values, causing poor decisions about which entries to merge. Also, finite-but-very-large values (near the endpoints of the representable timestamp range) could result in internal overflows, again causing poor decisions. The index still produces correct results, but is much less efficient than it should be. Reindexing BRIN minmax_multi indexes on timestamp and timestamptz columns is advisable if the column contains, or has contained, infinities or large finite values.
  • Avoid calculation overflows in BRIN interval_minmax_multi_ops indexes with extreme interval values (Tomas Vondra). This bug might have caused unexpected failures while trying to insert large interval values into such an index.
  • Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys (David Rowley). Some cases involving an IS NULL condition on one of the partition keys could result in a crash.
  • Fix inconsistent rechecking of concurrently-updated rows during MERGE (Dean Rasheed). In READ COMMITTED mode, an update that finds that its target row was just updated by a concurrent transaction will recheck the query's WHERE conditions on the updated row. MERGE failed to ensure that the proper rows of other joined tables were used during this recheck, possibly resulting in incorrect decisions about whether the newly-updated row should be updated again by MERGE.
  • Correctly identify the target table in an inherited UPDATE/DELETE/MERGE even when the parent table is excluded by constraints (Amit Langote, Tom Lane). If the initially-named table is excluded by constraints, but not all its inheritance descendants are, the first non-excluded descendant was identified as the primary target table. This would lead to firing statement-level triggers associated with that table, rather than the initially-named table as should happen. In v16, the same oversight could also lead to “invalid perminfoindex 0 in RTE with relid NNNN” errors.
  • Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses (Peter Geoghegan). When restoring an indexscan to a previously marked position, the code could miss required setup steps if the scan had advanced exactly to the end of the matches for a ScalarArrayOpExpr (that is, an indexcol = ANY(ARRAY[])) clause. This could result in missing some rows that should have been fetched.
  • Fix intra-query memory leak in Memoize execution (Orlov Aleksej, David Rowley)
  • Fix intra-query memory leak when a set-returning function repeatedly returns zero rows (Tom Lane)
  • Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal (Boyu Yang)
  • Fix improper sharing of origin filter condition across successive pg_logical_slot_get_changes() calls (Hou Zhijie). The origin condition set by one call of this function would be re-used by later calls that did not specify the origin argument. This was not intended.
  • Throw the intended error if pgrowlocks() is applied to a partitioned table (David Rowley). Previously, a not-on-point complaint “only heap AM is supported” would be raised.
  • Handle invalid indexes more cleanly in assorted SQL functions (Noah Misch). Report an error if pgstatindex(), pgstatginindex(), pgstathashindex(), or pgstattuple() is applied to an invalid index. If brin_desummarize_range(), brin_summarize_new_values(), brin_summarize_range(), or gin_clean_pending_list() is applied to an invalid index, do nothing except to report a debug-level message. Formerly these functions attempted to process the index, and might fail in strange ways depending on what the failed CREATE INDEX had left behind.
  • Avoid premature memory allocation failure with long inputs to to_tsvector() (Tom Lane)
  • Fix over-allocation of the constructed tsvector in tsvectorrecv() (Denis Erokhin). If the incoming vector includes position data, the binary receive function left wasted space (roughly equal to the size of the position data) in the finished tsvector. In extreme cases this could lead to “maximum total lexeme length exceeded” failures for vectors that were under the length limit when emitted. In any case it could lead to wasted space on-disk.
  • Improve checks for corrupt PGLZ compressed data (Flavien Guedez)
  • Fix ALTER SUBSCRIPTION so that a commanded change in the run_as_owner option is actually applied (Hou Zhijie)
  • Fix bulk table insertion into partitioned tables (Andres Freund). Improper sharing of insertion state across partitions could result in failures during COPY FROM, typically manifesting as “could not read block NNNN in file XXXX: read only 0 of 8192 bytes” errors.
  • In COPY FROM, avoid evaluating column default values that will not be needed by the command (Laurenz Albe). This avoids a possible error if the default value isn't actually valid for the column, or if the default's expression would fail in the current execution context. Such edge cases sometimes arise while restoring dumps, for example. Previous releases did not fail in this situation, so prevent v16 from doing so.
  • In COPY FROM, fail cleanly when an unsupported encoding conversion is needed (Tom Lane). Recent refactoring accidentally removed the intended error check for this, such that it ended in “cache lookup failed for function 0” instead of a useful error message.
  • Avoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value (Xing Guo, Aleksander Alekseev, Tom Lane). No built-in parameter fits this description, but an extension could define such a parameter.
  • Ensure we have a snapshot while dropping ON COMMIT DROP temp tables (Tom Lane). This prevents possible misbehavior if any catalog entries for the temp tables have fields wide enough to require toasting (such as a very complex CHECK condition).
  • Avoid improper response to shutdown signals in child processes just forked by system() (Nathan Bossart). This fix avoids a race condition in which a child process that has been forked off by system(), but hasn't yet exec'd the intended child program, might receive and act on a signal intended for the parent server process. That would lead to duplicate cleanup actions being performed, which will not end well.
  • Cope with torn reads of pg_control in frontend programs (Thomas Munro). On some file systems, reading pg_control may not be an atomic action when the server concurrently writes that file. This is detectable via a bad CRC. Retry a few times to see if the file becomes valid before we report error.
  • Avoid torn reads of pg_control in relevant SQL functions (Thomas Munro). Acquire the appropriate lock before reading pg_control, to ensure we get a consistent view of that file.
  • Fix “could not find pathkey item to sort” errors occurring while planning aggregate functions with ORDER BY or DISTINCT options (David Rowley)
  • Avoid integer overflow when computing size of backend activity string array (Jakub Wartak). On 64-bit machines we will allow values of track_activity_query_size large enough to cause 32-bit overflow when multiplied by the allowed number of connections. The code actually allocating the per-backend local array was careless about this though, and allocated the array incorrectly.
  • Fix briefly showing inconsistent progress statistics for ANALYZE on inherited tables (Heikki Linnakangas). The block-level counters should be reset to zero at the same time we update the current-relation field.
  • Fix the background writer to report any WAL writes it makes to the statistics counters (Nazir Bilal Yavuz)
  • Fix confusion about forced-flush behavior in pgstat_report_wal() (Ryoga Yoshida, Michael Paquier). This could result in some statistics about WAL I/O being forgotten in a shutdown.
  • Fix statistics tracking of temporary-table extensions (Karina Litskevich, Andres Freund). These were counted as normal-table writes when they should be counted as temp-table writes.
  • When track_io_timing is enabled, include the time taken by relation extension operations as write time (Nazir Bilal Yavuz)
  • Track the dependencies of cached CALL statements, and re-plan them when needed (Tom Lane). DDL commands, such as replacement of a function that has been inlined into a CALL argument, can create the need to re-plan a CALL that has been cached by PL/pgSQL. That was not happening, leading to misbehavior or strange errors such as “cache lookup failed”.
  • Avoid a possible pfree-a-NULL-pointer crash after an error in OpenSSL connection setup (Sergey Shinderuk)
  • Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels (Richard Guo). This oversight could lead to assertion failures, core dumps, or “bogus varno” errors.
  • Track hash function and negator function dependencies of ScalarArrayOpExpr plan nodes (David Rowley). In most cases this oversight was harmless, since these functions would be unlikely to disappear while the node's original operator remains present.
  • Fix error-handling bug in RECORD type cache management (Thomas Munro). An out-of-memory error occurring at just the wrong point could leave behind inconsistent state that would lead to an infinite loop.
  • Treat out-of-memory failures as fatal while reading WAL (Michael Paquier). Previously this would be treated as a bogus-data condition, leading to the conclusion that we'd reached the end of WAL, which is incorrect and could lead to inconsistent WAL replay.
  • Fix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field (Thomas Munro, Michael Paquier)
  • Fix “could not duplicate handle” error occurring on Windows when min_dynamic_shared_memory is set above zero (Thomas Munro)
  • Fix order of operations in GenericXLogFinish (Jeff Davis). This code violated the conditions required for crash safety by writing WAL before marking changed buffers dirty. No core code uses this function, but extensions do (contrib/bloom does, for example).
  • Remove incorrect assertion in PL/Python exception handling (Alexander Lakhin)
  • Fix pg_dump to dump the new run_as_owner option of subscriptions (Philip Warner). Due to this oversight, subscriptions would always be restored with run_as_owner set to false, which is not equivalent to their behavior in pre-v16 releases.
  • Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables (Euler Taveira, Tom Lane). Formerly, only the table-level ACL would get restored if both types were present.
  • Add logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types (Álvaro Herrera). These obsolete data types were removed in PostgreSQL version 12, so check to make sure they aren't present in an older database before claiming it can be upgraded.
  • Avoid false “too many client connections” errors in pgbench on Windows (Noah Misch)
  • Fix vacuumdb's handling of multiple -N switches (Nathan Bossart, Kuwamura Masaki). Multiple -N switches should exclude tables in multiple schemas, but in fact excluded nothing due to faulty construction of a generated query.
  • Fix vacuumdb to honor its --buffer-usage-limit option in analyze-only mode (Ryoga Yoshida, David Rowley)
  • In contrib/amcheck, do not report interrupted page deletion as corruption (Noah Misch). This fix prevents false-positive reports of “the first child of leftmost target page is not leftmost of its level”, “block NNNN is not leftmost” or “left link/right link pair in index XXXX not in agreement”. They appeared if amcheck ran after an unfinished btree index page deletion and before VACUUM had cleaned things up.
  • Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed (Dean Rasheed). Such an indexscan failed to return all the entries it should.
  • Add support for LLVM 16 and 17 (Thomas Munro, Dmitry Dolgov)
  • Suppress assorted build-time warnings on recent macOS (Tom Lane). Xcode 15 (released with macOS Sonoma) changed the linker's behavior in a way that causes many duplicate-library warnings while building PostgreSQL. These were harmless, but they're annoying so avoid citing the same libraries twice. Also remove use of the -multiply_defined suppress linker switch, which apparently has been a no-op for a long time, and is now actively complained of.
  • When building contrib/unaccent's rules file, fall back to using python if --with-python was not given and make variable PYTHON was not set (Japin Li)
  • Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list (Tom Lane). Presence of this abbreviation in the default list can cause failures on recent Debian and Ubuntu releases, as they no longer install the underlying tzdb entry by default. Since this is a made-up abbreviation for a zone with a total human population of about two dozen, it seems unlikely that anyone will miss it. If someone does, they can put it back via a custom abbreviations file.

Information

License

Free

Size

381.4 MB

Developer’s website

https://www.postgresql.org/

Downloads

18483

App requirements

  • Intel 64
  • Apple Silicon
  • macOS 11 or later
Try our new feature and write a detailed review about PostgreSQL. All reviews will be posted soon.

Write your thoughts in our old-fashioned comment

MacUpdate Comment Policy. We strongly recommend leaving comments, however comments with abusive words, bullying, personal attacks of any type will be moderated.
0.0

(0 Reviews of )

There are no reviews yet
  • Comments

  • User Ratings

Joseluismen
Joseluismen
Oct 29 2018
11.0
2.0
Oct 29 2018
2.0
Version: 11.0
Support for version 11 includes 10.12 to 10.14 only. For version 10, it goes from 10.10 to 10.12. At least in the primary installers, the offers by EnterpriseDB. Is this due to the included extras, or directly by PostgresSQL?
Nosuchname
Nosuchname
Oct 7 2010
9.0.1
0.0
Oct 7 2010
0.0
Version: 9.0.1
The download link points to the 9.0.0 version not 9.0.1. You have to go to the developer's site to download the current version.
SickTeddyBear
SickTeddyBear
Sep 24 2010
9.0.0
0.0
Sep 24 2010
0.0
Version: 9.0.0
1. The title of this entry should specifically say "PostgreSQL for Mac" in order to distiguish it from any official PostgreSQL listing. 2. If you're going to download or link to this, it's better to do it from their SourceForge page because their web site isn't as speedy: http://sourceforge.net/projects/pgsqlformac/
Cascalheira
Cascalheira
Mar 14 2010
8.4.2
5.0
Mar 14 2010
5.0
Version: 8.4.2
Indeed the easiest way to install Postgres on a Mac. And it has a proper control panel to start/stop the database.
Thigre
Thigre
Mar 19 2009
8.3.5
0.0
Mar 19 2009
0.0
Version: 8.3.5
By far the easiest way to have an postgreSQL server running in no time... And I am using mine intensively since then ;-) Great job
Teksestro
Teksestro
Nov 16 2008
8.3.5
0.0
Nov 16 2008
0.0
Version: 8.3.5
Developer, please note: 1) uninstaller is missing 2) query tool installed by default (during the server install) is BAD - it seems to have been compiled as a PPC only, and not as a universal binary, so it won't run on my Intel machine. 3) documentation provided needs urgent updating, including: instructions for manual uninstall (in case the uninstaller goes missing again, or user is unable to run it), instructions for drag-install of client tools, and a basic troubleshooting guide (telling users what to do if the server does not seem to launch) Your efforts to bring PostgreSQL to the Mac are certainly appreciated. Please, keep up the good work.
Imre-Fazekas
Imre-Fazekas
Nov 14 2008
8.3.5
0.0
Nov 14 2008
0.0
Version: 8.3.5
I don't find a proper uninstaller for this package. How can i achieve this?
Sjf
Sjf
Nov 7 2007
8.2.5
0.0
Nov 7 2007
0.0
Version: 8.2.5
On my system, Query Tool for Postgres, and Create User both crash immediately. The other three tools (Create & Backup Database and Service Manager) seem to work ok. Crash log follows... 11/7/07 3:25:53 PM com.apple.launchd[211] ([0x0-0x44044].com.druware.postgresql.CreateUser[2005]) Exited abnormally: Trace/BPT trap 11/7/07 3:29:10 PM [0x0-0x47047].com.druware.postgres.QueryTool[2019] dyld: Library not loaded: @executable_path/../Frameworks/pgCocoaDB.framework/Versions/A/pgCocoaDB 11/7/07 3:29:10 PM [0x0-0x47047].com.druware.postgres.QueryTool[2019] Referenced from: /Applications/PostgreSQL/Query Tool for Postgres.app/Contents/MacOS/Query Tool for Postgres 11/7/07 3:29:10 PM [0x0-0x47047].com.druware.postgres.QueryTool[2019] Reason: image not found 11/7/07 3:29:10 PM com.apple.launchd[211] ([0x0-0x47047].com.druware.postgres.QueryTool[2019]) Exited abnormally: Trace/BPT trap 11/7/07 3:29:29 PM [0x0-0x4a04a].com.druware.postgresql.CreateUser[2026] dyld: Library not loaded: @executable_path/../Frameworks/pgCocoaDB.framework/Versions/A/pgCocoaDB 11/7/07 3:29:29 PM [0x0-0x4a04a].com.druware.postgresql.CreateUser[2026] Referenced from: /Applications/PostgreSQL/Create User.app/Contents/MacOS/Create User 11/7/07 3:29:29 PM [0x0-0x4a04a].com.druware.postgresql.CreateUser[2026] Reason: image not found
Dru-satori
Dru-satori
Oct 11 2007
8.2.5
0.0
Oct 11 2007
0.0
Version: 8.2.5
Both downloads on both download locations have been updated to fix this (boneheaded) issue. The problem was twofold. The build machine had an errant copy of the binaries that included a bad build, and the final copy phase had an issue on several of the GUI tools. Both problems have been resolved. Sorry for the confusion.
Dogbert1
Dogbert1
Oct 11 2007
8.2.5
0.0
Oct 11 2007
0.0
Version: 8.2.5
This version does not install as "universal" , it installs as intel only.
whank7490
whank7490
May 21 2021
13.1-1
5.0
May 21 2021
5.0
Version: 13.1-1
Joseluismen
Joseluismen
Oct 29 2018
2.0
Oct 29 2018
2.0
Version: null
Cascalheira
Cascalheira
Mar 14 2010
5.0
Mar 14 2010
5.0
Version: null
Free
Absolutely Free
How would you rate PostgreSQL?
Similar apps
TablePlus
Modern, native tool for relational databases.
Is this app is similar to TablePlus? Vote to improve the quality of this list.
Vote results
1
Upvotes
1
Total score
0
Downvotes
MySQL
Industry-leading open-source SQL database.
Is this app is similar to MySQL? Vote to improve the quality of this list.
Vote results
1
Upvotes
1
Total score
0
Downvotes
Panorama X
Modern database solution.
Is this app is similar to Panorama X? Vote to improve the quality of this list.
Vote results
0
Upvotes
1
Total score
0
Downvotes
SQLPro for Postgres
Database management studio for Postgres.
Is this app is similar to SQLPro for Postgres? Vote to improve the quality of this list.
Vote results
1
Upvotes
1
Total score
0
Downvotes
Postico
A modern PostgreSQL client.
Is this app is similar to Postico? Vote to improve the quality of this list.
Vote results
0
Upvotes
1
Total score
0
Downvotes