We stand with Ukraine to help keep people safe. Join us
PostgreSQL
PostgreSQL
4.0
0.0
PostgreSQL free download for Mac

PostgreSQL

Version 14.5-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 14.5-1

Updated on Aug 11 2022

  • Do not let extension scripts replace objects not already belonging to the extension (Tom Lane)
  • This change prevents extension scripts from doing CREATE OR REPLACE if there is an existing object that does not belong to the extension. It also prevents CREATE IF NOT EXISTS in the same situation. This prevents a form of trojan-horse attack in which a hostile database user could become the owner of an extension object and then modify it to compromise future uses of the object by other users. As a side benefit, it also reduces the risk of accidentally replacing objects one did not mean to.
  • The PostgreSQL Project thanks Sven Klemm for reporting this problem. (CVE-2022-2625)
  • Fix replay of CREATE DATABASE WAL records on standby servers (Kyotaro Horiguchi, Asim R Praveen, Paul Guo)
  • Standby servers may encounter missing tablespace directories when replaying database-creation WAL records. Prior to this patch, a standby would fail to recover in such a case; however, such directories could be legitimately missing. Create the tablespace (as a plain directory), then check that it has been dropped again once replay reaches a consistent state.
  • Support "in place" tablespaces (Thomas Munro, Michael Paquier, Álvaro Herrera)
  • Normally a Postgres tablespace is a symbolic link to a directory on some other filesystem. This change allows it to just be a plain directory. While this has no use for separating tables onto different filesystems, it is a convenient setup for testing. Moreover, it is necessary to support the CREATE DATABASE replay fix, which transiently creates a missing tablespace as an "in place" tablespace.
  • Fix permissions checks in CREATE INDEX (Nathan Bossart, Noah Misch)
  • The fix for CVE-2022-1552 caused CREATE INDEX to apply the table owner's permissions while performing lookups of operator classes and other objects, where formerly the calling user's permissions were used. This broke dump/restore scenarios, because pg_dump issues CREATE INDEX before re-granting permissions.
  • In extended query protocol, force an immediate commit after CREATE DATABASE and other commands that can't run in a transaction block (Tom Lane)
  • If the client does not send a Sync message immediately after such a command, but instead sends another command, any failure in that command would lead to rolling back the preceding command, typically leaving inconsistent state on-disk (such as a missing or extra database directory). The mechanisms intended to prevent that situation turn out to work for multiple commands in a simple-Query message, but not for a series of extended-protocol messages. To prevent inconsistency without breaking use-cases that work today, force an implicit commit after such commands.
  • Fix race condition when checking transaction visibility (Simon Riggs)
  • TransactionIdIsInProgress could report false before the subject transaction is considered visible, leading to various misbehaviors. The race condition window is normally very narrow, but use of synchronous replication makes it much wider, because the wait for a synchronous replica happens in that window.
  • Fix incorrect plans when sorting by an expression that contains a non-top-level set-returning function (Richard Guo, Tom Lane)
  • Fix incorrect permissions-checking code for extended statistics (Richard Guo)
  • If there are extended statistics on a table that the user has only partial SELECT permissions on, some queries would fail with "unrecognized node type" errors.
  • Fix extended statistics machinery to handle MCV-type statistics on boolean-valued expressions (Tom Lane)
  • Statistics collection worked fine, but a query containing such an expression in WHERE would fail with "unknown clause type".
  • Avoid planner core dump with constant = ANY(array) clauses when there are MCV-type extended statistics on the array variable (Tom Lane)
  • Fix ALTER TABLE ... ENABLE/DISABLE TRIGGER to handle recursion correctly for triggers on partitioned tables (Álvaro Herrera, Amit Langote)
  • In certain cases, a "trigger does not exist" failure would occur because the command would try to adjust the trigger on a child partition that doesn't have it.
  • Allow cancellation of ANALYZE while it is computing extended statistics (Tom Lane, Justin Pryzby)
  • In some scenarios with high statistics targets, it was possible to spend many seconds in an un-cancellable sort operation.
  • Improve syntax error messages for type jsonpath (Andrew Dunstan)
  • Ensure that pg_stop_backup() cleans up session state properly (Fujii Masao)
  • This omission could lead to assertion failures or crashes later in the session.
  • Fix trim_array() to handle a zero-dimensional array argument sanely (Martin Kalcher)
  • Fix join alias matching in FOR [KEY] UPDATE/SHARE clauses (Dean Rasheed)
  • In corner cases, a misleading error could be reported.
  • Reject ROW() expressions and functions in FROM that have too many columns (Tom Lane)
  • Cases with more than about 1600 columns are unsupported, and have always failed at execution. However, it emerges that some earlier code could be driven to assertion failures or crashes by queries with more than 32K columns. Add a parse-time check to prevent that.
  • Fix dumping of a view using a function in FROM that returns a composite type, when column(s) of the composite type have been dropped since the view was made (Tom Lane)
  • This oversight could lead to dump/reload or pg_upgrade failures, as the dumped view would have too many column aliases for the function.
  • Disallow nested backup operations in logical replication walsenders (Fujii Masao)
  • Fix memory leak in logical replication subscribers (Hou Zhijie)
  • Fix logical replication's checking of replica identity when the target table is partitioned (Shi Yu, Hou Zhijie)
  • The replica identity columns have to be re-identified for the child partition.
  • Fix failures to update cached schema data in a logical replication subscriber after a schema change on the publisher (Shi Yu, Hou Zhijie)
  • Fix WAL consistency checking logic to correctly handle BRIN_EVACUATE_PAGE flags (Haiyang Wang)
  • Fix erroneous assertion checks in shared hashtable management (Thomas Munro)
  • Avoid assertion failure when min_dynamic_shared_memory is set to a non-default value (Thomas Munro)
  • Arrange to clean up after commit-time errors within SPI_commit(), rather than expecting callers to do that (Peter Eisentraut, Tom Lane)
  • Proper cleanup is complicated and requires use of low-level facilities, so it's not surprising that no known caller got it right. This led to misbehaviors when a PL procedure issued COMMIT but a failure occurred (such as a deferred constraint check). To improve matters, redefine SPI_commit() as starting a new transaction, so that it becomes equivalent to SPI_commit_and_chain() except that you get default transaction characteristics instead of preserving the prior transaction's characteristics. To make this somewhat transparent API-wise, redefine SPI_start_transaction() as a no-op. All known callers of SPI_commit() immediately call SPI_start_transaction(), so they will not notice any change. Similar remarks apply to SPI_rollback().
  • Also fix PL/Python, which omitted any handling of such errors at all, resulting in jumping out of the Python interpreter. This is reported to crash Python 3.11. Older Python releases leak some memory but seem okay with it otherwise.
  • Improve libpq's handling of idle states in pipeline mode (Álvaro Herrera, Kyotaro Horiguchi)
  • This fixes "message type 0x33 arrived from server while idle" warnings, as well as possible loss of end-of-query NULL results from PQgetResult().
  • Avoid core dump in ecpglib with unexpected orders of operations (Tom Lane)
  • Certain operations such as EXEC SQL PREPARE would crash (rather than reporting an error as expected) if called before establishing any database connection.
  • In ecpglib, avoid redundant newlocale() calls (Noah Misch)
  • Allocate a C locale object once per process when first connecting, rather than creating and freeing locale objects once per query. This mitigates a libc memory leak on AIX, and may offer some performance benefit everywhere.
  • In psql's watch command, echo a newline after cancellation with control-C (Pavel Stehule)
  • This prevents libedit (and possibly also libreadline) from becoming confused about which column the cursor is in.
  • Fix pg_upgrade to detect non-upgradable usages of functions taking anyarray (Justin Pryzby)
  • Version 14 changed some built-in functions to take type anycompatiblearray instead of anyarray. While this is mostly transparent, user-defined aggregates and operators built atop these functions have to be declared with exactly matching types. The presence of an object referencing the old signature will cause pg_upgrade to fail, so change it to detect and report such cases before beginning the upgrade.
  • Fix possible report of wrong error condition after clone() failure in pg_upgrade with --clone option (Justin Pryzby)
  • Fix contrib/pg_stat_statements to avoid problems with very large query-text files on 32-bit platforms (Tom Lane)
  • In contrib/postgres_fdw, prevent batch insertion when there are WITH CHECK OPTION constraints (Etsuro Fujita)
  • Such constraints cannot be checked properly if more than one row is inserted at a time.
  • Fix contrib/postgres_fdw to detect failure to send an asynchronous data fetch query (Fujii Masao)
  • Ensure that contrib/postgres_fdw sends constants of regconfig and other reg* types with proper schema qualification (Tom Lane)
  • Block signals while allocating dynamic shared memory on Linux (Thomas Munro)
  • This avoids problems when a signal interrupts posix_fallocate().
  • Detect unexpected EEXIST error from shm_open() (Thomas Munro)
  • This avoids a possible crash on Solaris.
  • Avoid using signalfd() on illumos systems (Thomas Munro)
  • This appears to trigger hangs and kernel panics, so avoid the function until a fix is available.

Information

License

Free

Size

308.1 MB

Developer’s website

https://www.postgresql.org/

Downloads

18176

App requirements

  • Intel 64
  • macOS 10.14.0 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
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.
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