PostgreSQL 9.4
Read the English manualEnd of life · Recorded build 9.4.26 · 2020-02-13
This major branch is no longer supported. These records describe its history; the absence of newer security records does not establish that it is safe to run.
- First stable release
- 2014-12-18
- Support end
- 2020-02-13
- Indexed releases
- 27
- Original release-note entries
- 1007
Manuals & provenance
PostgreSQL 9.4 English manual · 1002 loaded pages.
Manual loaded 2026-09-27T00:10:47.078613.
Release entries: 2026-09-26. Security evidence: 2026-09-26. PDF links use the verified English manifest and locally available files. Lifecycle: PostgreSQL versioning policy.
Upgrade considerations
Major upgrades need a migration method such as dump/reload or pg_upgrade. Read the intervening major-release notes and the target manual. Minor updates can also require extra steps; review the specific release's migration notes. Official upgrade policy.
Compatibility notes for 9.4.0 · Changes from the initial release through 9.4.26
Original migration guidance for 9.4.0
A dump/restore using pg_dumpall, or use of pg_upgrade, is required for those wishing to migrate data from any previous release.
Version 9.4 contains a number of changes that may affect compatibility with previous releases. Observe the following incompatibilities:
Release history
Every indexed release keeps its original occurrences. CVE counts below are mentions in its notes, including follow-up corrections; they do not count newly fixed vulnerabilities.
| Release | Date / snapshot cutoff | All changes | Bug fixes | Migration entries | CVE mentions |
|---|---|---|---|---|---|
| 9.4.26 | 2020-02-13 | 28 | 15 | 0 | 0 |
| 9.4.25 | 2019-11-14 | 39 | 17 | 0 | 0 |
| 9.4.24 | 2019-08-08 | 18 | 7 | 0 | 2 |
| 9.4.23 | 2019-06-20 | 10 | 5 | 0 | 0 |
| 9.4.22 | 2019-05-09 | 25 | 15 | 0 | 0 |
| 9.4.21 | 2019-02-14 | 35 | 19 | 0 | 0 |
| 9.4.20 | 2018-11-08 | 42 | 20 | 0 | 0 |
| 9.4.19 | 2018-08-09 | 26 | 13 | 0 | 1 |
| 9.4.18 | 2018-05-10 | 32 | 16 | 0 | 0 |
| 9.4.17 | 2018-03-01 | 7 | 4 | 0 | 1 |
| 9.4.16 | 2018-02-08 | 28 | 16 | 0 | 1 |
| 9.4.15 | 2017-11-09 | 22 | 10 | 0 | 2 |
| 9.4.14 | 2017-08-31 | 8 | 2 | 0 | 0 |
| 9.4.13 | 2017-08-10 | 53 | 27 | 0 | 4 |
| 9.4.12 | 2017-05-11 | 34 | 19 | 0 | 4 |
| 9.4.11 | 2017-02-09 | 44 | 19 | 0 | 0 |
| 9.4.10 | 2016-10-27 | 34 | 18 | 0 | 0 |
| 9.4.9 | 2016-08-11 | 39 | 14 | 0 | 2 |
| 9.4.8 | 2016-05-12 | 21 | 12 | 0 | 0 |
| 9.4.7 | 2016-03-31 | 23 | 13 | 0 | 0 |
| 9.4.6 | 2016-02-11 | 59 | 26 | 0 | 4 |
| 9.4.5 | 2015-10-08 | 70 | 37 | 0 | 2 |
| 9.4.4 | 2015-06-12 | 4 | 3 | 0 | 0 |
| 9.4.3 | 2015-06-04 | 4 | 3 | 0 | 0 |
| 9.4.2 | 2015-05-22 | 59 | 24 | 0 | 3 |
| 9.4.1 | 2015-02-05 | 32 | 12 | 0 | 6 |
| 9.4.0 | 2014-12-18 | 211 | 6 | 22 | 0 |
Initial release changes
Original entries from 9.4.0, including feature changes and compatibility notes. Categories aid browsing; they are not upstream classifications.
211 of 211 original entries.
Tighten checks for multidimensional array input Compatibility Migration
Tighten checks for multidimensional array input (Bruce Momjian)
Previously, an input array string that started with a single-element sub-array could later contain multi-element sub-arrays, e.g. '{{1}, {2,3}}'::int[] would be accepted.
Original release occurrence ·
9.4.0/migration/001When converting values of type date, timestamp or timestamptz to JSON, render the values in a format compliant with ISO 8601 Compatibility Migration
When converting values of type date, timestamp or timestamptz to JSON, render the values in a format compliant with ISO 8601 (Andrew Dunstan)
Previously such values were rendered according to the current DateStyle setting; but many JSON processors require timestamps to be in ISO 8601 format. If necessary, the previous behavior can be obtained by explicitly casting the datetime value to text before passing it to the JSON conversion function.
Original release occurrence ·
9.4.0/migration/002The json #> text[] path extraction operator now returns its lefthand input, not NULL, if the array is empty Compatibility Migration
The json #> text[] path extraction operator now returns its lefthand input, not NULL, if the array is empty (Tom Lane)
This is consistent with the notion that this represents zero applications of the simple field/element extraction operator ->. Similarly, json #>> text[] with an empty array merely coerces its lefthand input to text.
Original release occurrence ·
9.4.0/migration/003Corner cases in the JSON field/element/path extraction operators now return NULL rather than raising an error Compatibility Migration
Corner cases in the JSON field/element/path extraction operators now return NULL rather than raising an error (Tom Lane)
For example, applying field extraction to a JSON array now yields NULL not an error. This is more consistent (since some comparable cases such as no-such-field already returned NULL), and it makes it safe to create expression indexes that use these operators, since they will now not throw errors for any valid JSON input.
Original release occurrence ·
9.4.0/migration/004Cause consecutive whitespace in to_timestamp() and to_date() format strings to consume a corresponding number of characters in the input string (whitespace or not), then conditionally consume adjacent whitespace, if not in FX mode Compatibility Migration
Cause consecutive whitespace in
to_timestamp()andto_date()format strings to consume a corresponding number of characters in the input string (whitespace or not), then conditionally consume adjacent whitespace, if not in FX mode (Jeevan Chalke)Previously, consecutive whitespace characters in a non-FX format string behaved like a single whitespace character and consumed all adjacent whitespace in the input string. For example, previously a format string of three spaces would consume only the first space in ' 12', but it will now consume all three characters.
Original release occurrence ·
9.4.0/migration/005Fix ts_rank_cd() to ignore stripped lexemes Compatibility Migration
Fix
ts_rank_cd()to ignore stripped lexemes (Alex Hill)Previously, stripped lexemes were treated as if they had a default location, producing a rank of dubious usefulness.
Original release occurrence ·
9.4.0/migration/006For functions declared to take VARIADIC "any", an actual parameter marked as VARIADIC must be of a determinable array type Compatibility Migration
For functions declared to take VARIADIC "any", an actual parameter marked as VARIADIC must be of a determinable array type (Pavel Stehule)
Such parameters can no longer be written as an undecorated string literal or NULL; a cast to an appropriate array data type will now be required. Note that this does not affect parameters not marked VARIADIC.
Original release occurrence ·
9.4.0/migration/007Ensure that whole-row variables expose the expected column names to functions that pay attention to column names within composite arguments Compatibility Migration
Ensure that whole-row variables expose the expected column names to functions that pay attention to column names within composite arguments (Tom Lane)
Constructs like row_to_json(tab.*) now always emit column names that match the column aliases visible for table tab at the point of the call. In previous releases the emitted column names would sometimes be the table's actual column names regardless of any aliases assigned in the query.
Original release occurrence ·
9.4.0/migration/008DISCARD now also discards sequence-related state Compatibility Migration
DISCARD now also discards sequence-related state (Fabrízio de Royes Mello, Robert Haas)
Original release occurrence ·
9.4.0/migration/009Rename EXPLAIN ANALYZE's "total runtime" output to "execution time" Compatibility Migration
Rename EXPLAIN ANALYZE's "total runtime" output to "execution time" (Tom Lane)
Now that planning time is also reported, the previous name was confusing.
Original release occurrence ·
9.4.0/migration/010SHOW TIME ZONE now outputs simple numeric UTC offsets in POSIX timezone format Compatibility Migration
SHOW TIME ZONE now outputs simple numeric UTC offsets in POSIX timezone format (Tom Lane)
Previously, such timezone settings were displayed as interval values. The new output is properly interpreted by SET TIME ZONE when passed as a simple string, whereas the old output required special treatment to be re-parsed correctly.
Original release occurrence ·
9.4.0/migration/011Foreign data wrappers that support updating foreign tables must consider the possible presence of AFTER ROW triggers Compatibility Migration
Foreign data wrappers that support updating foreign tables must consider the possible presence of AFTER ROW triggers (Noah Misch)
When an AFTER ROW trigger is present, all columns of the table must be returned by updating actions, since the trigger might inspect any or all of them. Previously, foreign tables never had triggers, so the FDW might optimize away fetching columns not mentioned in the RETURNING clause (if any).
Original release occurrence ·
9.4.0/migration/012Prevent CHECK constraints from referencing system columns, except tableoid Compatibility Migration
Prevent CHECK constraints from referencing system columns, except tableoid (Amit Kapila)
Previously such check constraints were allowed, but they would often cause errors during restores.
Original release occurrence ·
9.4.0/migration/013Use the last specified recovery target parameter if multiple target parameters are specified Compatibility Migration
Use the last specified recovery target parameter if multiple target parameters are specified (Heikki Linnakangas)
Previously, there was an undocumented precedence order among the recovery_target_xxx parameters.
Original release occurrence ·
9.4.0/migration/014On Windows, automatically preserve quotes in command strings supplied by the user Compatibility Migration
On Windows, automatically preserve quotes in command strings supplied by the user (Heikki Linnakangas)
User commands that did their own quote preservation might need adjustment. This is likely to be an issue for commands used in archive_command, restore_command, and COPY TO/FROM PROGRAM.
Original release occurrence ·
9.4.0/migration/015Remove catalog column pg_class.reltoastidxid Compatibility Migration
Remove catalog column pg_class.reltoastidxid (Michael Paquier)
Original release occurrence ·
9.4.0/migration/016Remove catalog column pg_rewrite.ev_attr Compatibility Migration
Remove catalog column pg_rewrite.ev_attr (Kevin Grittner)
Per-column rules have not been supported since PostgreSQL 7.3.
Original release occurrence ·
9.4.0/migration/017Remove native support for Kerberos authentication (--with-krb5, etc) Compatibility Migration
Remove native support for Kerberos authentication (--with-krb5, etc) (Magnus Hagander)
The supported way to use Kerberos authentication is with GSSAPI. The native code has been deprecated since PostgreSQL 8.3.
Original release occurrence ·
9.4.0/migration/018In PL/Python, handle domains over arrays like the underlying array type Compatibility Migration
In PL/Python, handle domains over arrays like the underlying array type (Rodolfo Campero)
Previously such values were treated as strings.
Original release occurrence ·
9.4.0/migration/019Make libpq's PQconnectdbParams() and PQpingParams() functions process zero-length strings as defaults Compatibility Migration
Make libpq's
PQconnectdbParams()andPQpingParams()functions process zero-length strings as defaults (Adrian Vondendriesch)Previously, these functions treated zero-length string values as selecting the default in only some cases.
Original release occurrence ·
9.4.0/migration/020Change empty arrays returned by the intarray module to be zero-dimensional arrays Compatibility Migration
Change empty arrays returned by the intarray module to be zero-dimensional arrays (Bruce Momjian)
Previously, empty arrays were returned as zero-length one-dimensional arrays, whose text representation looked the same as zero-dimensional arrays ({}), but they acted differently in array operations. intarray's behavior in this area now matches the built-in array operators.
Original release occurrence ·
9.4.0/migration/021pg_upgrade now uses -U or --username to specify the user name Compatibility Migration
pg_upgrade now uses -U or --username to specify the user name (Bruce Momjian)
Previously this option was spelled -u or --user, but that was inconsistent with other tools.
Original release occurrence ·
9.4.0/migration/022Allow background worker processes to be dynamically registered, started and terminated Features
Allow background worker processes to be dynamically registered, started and terminated (Robert Haas)
The new worker_spi module shows an example of use of this feature.
Original release occurrence ·
9.4.0/changes/001Allow dynamic allocation of shared memory segments Features
Allow dynamic allocation of shared memory segments (Robert Haas, Amit Kapila)
This feature is illustrated in the test_shm_mq module.
Original release occurrence ·
9.4.0/changes/002During crash recovery or immediate shutdown, send uncatchable termination signals (SIGKILL) to child processes that do not shut down promptly Features
During crash recovery or immediate shutdown, send uncatchable termination signals (SIGKILL) to child processes that do not shut down promptly (MauMau, Álvaro Herrera)
This reduces the likelihood of leaving orphaned child processes behind after postmaster shutdown, as well as ensuring that crash recovery can proceed if some child processes have become "stuck".
Original release occurrence ·
9.4.0/changes/003Improve randomness of the database system identifier Features
Improve randomness of the database system identifier (Tom Lane)
Original release occurrence ·
9.4.0/changes/004Make VACUUM properly report dead but not-yet-removable rows to the statistics collector Features
Make VACUUM properly report dead but not-yet-removable rows to the statistics collector (Hari Babu)
Previously these were reported as live rows.
Original release occurrence ·
9.4.0/changes/005Reduce GIN index size Features
Reduce GIN index size (Alexander Korotkov, Heikki Linnakangas)
Indexes upgraded via pg_upgrade will work fine but will still be in the old, larger GIN format. Use REINDEX to recreate old GIN indexes in the new format.
Original release occurrence ·
9.4.0/changes/006Improve speed of multi-key GIN lookups Features
Improve speed of multi-key GIN lookups (Alexander Korotkov, Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/007Add GiST index support for inet and cidr data types Features
Add GiST index support for inet and cidr data types (Emre Hasegeli)
Such indexes improve subnet and supernet lookups and ordering comparisons.
Original release occurrence ·
9.4.0/changes/008Fix rare race condition in B-tree page deletion Bug fixes
Fix rare race condition in B-tree page deletion (Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/009Make the handling of interrupted B-tree page splits more robust Features
Make the handling of interrupted B-tree page splits more robust (Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/010Allow multiple backends to insert into WAL buffers concurrently Performance
Allow multiple backends to insert into WAL buffers concurrently (Heikki Linnakangas)
This improves parallel write performance.
Original release occurrence ·
9.4.0/changes/011Conditionally write only the modified portion of updated rows to WAL Performance
Conditionally write only the modified portion of updated rows to WAL (Amit Kapila)
Original release occurrence ·
9.4.0/changes/012Improve performance of aggregate functions used as window functions Performance
Improve performance of aggregate functions used as window functions (David Rowley, Florian Pflug, Tom Lane)
Original release occurrence ·
9.4.0/changes/013Improve speed of aggregates that use numeric state values Performance
Improve speed of aggregates that use numeric state values (Hadi Moshayedi)
Original release occurrence ·
9.4.0/changes/014Attempt to freeze tuples when tables are rewritten with CLUSTER or VACUUM FULL Performance
Attempt to freeze tuples when tables are rewritten with CLUSTER or VACUUM FULL (Robert Haas, Andres Freund)
This can avoid the need to freeze the tuples in the future.
Original release occurrence ·
9.4.0/changes/015Improve speed of COPY with default nextval() columns Performance
Original release occurrence ·
9.4.0/changes/016Improve speed of accessing many different sequences in the same session Performance
Improve speed of accessing many different sequences in the same session (David Rowley)
Original release occurrence ·
9.4.0/changes/017Raise hard limit on the number of tuples held in memory during sorting and B-tree index builds Performance
Raise hard limit on the number of tuples held in memory during sorting and B-tree index builds (Noah Misch)
Original release occurrence ·
9.4.0/changes/018Reduce memory allocated by PL/pgSQL DO blocks Performance
Reduce memory allocated by PL/pgSQL DO blocks (Tom Lane)
Original release occurrence ·
9.4.0/changes/019Make the planner more aggressive about extracting restriction clauses from mixed AND/OR clauses Performance
Make the planner more aggressive about extracting restriction clauses from mixed AND/OR clauses (Tom Lane)
Original release occurrence ·
9.4.0/changes/020Disallow pushing volatile WHERE clauses down into DISTINCT subqueries Performance
Disallow pushing volatile WHERE clauses down into DISTINCT subqueries (Tom Lane)
Pushing down a WHERE clause can produce a more efficient plan overall, but at the cost of evaluating the clause more often than is implied by the text of the query; so don't do it if the clause contains any volatile functions.
Original release occurrence ·
9.4.0/changes/021Auto-resize the catalog caches Performance
Auto-resize the catalog caches (Heikki Linnakangas)
This reduces memory consumption for sessions accessing only a few tables, and improves performance for sessions accessing many tables.
Original release occurrence ·
9.4.0/changes/022Add pg_stat_archiver system view to report WAL archiver activity Features
Add pg_stat_archiver system view to report WAL archiver activity (Gabriele Bartolini)
Original release occurrence ·
9.4.0/changes/023Add n_mod_since_analyze columns to pg_stat_all_tables and related system views Features
Add n_mod_since_analyze columns to pg_stat_all_tables and related system views (Mark Kirkwood)
These columns expose the system's estimate of the number of changed tuples since the table's last ANALYZE. This estimate drives decisions about when to auto-analyze.
Original release occurrence ·
9.4.0/changes/024Add backend_xid and backend_xmin columns to the system view pg_stat_activity, and a backend_xmin column to pg_stat_replication Features
Add backend_xid and backend_xmin columns to the system view pg_stat_activity, and a backend_xmin column to pg_stat_replication (Christian Kruse)
Original release occurrence ·
9.4.0/changes/025Add support for SSL ECDH key exchange Features
Add support for SSL ECDH key exchange (Marko Kreen)
This allows use of Elliptic Curve keys for server authentication. Such keys are faster and have better security than RSA keys. The new configuration parameter ssl_ecdh_curve controls which curve is used for ECDH.
Original release occurrence ·
9.4.0/changes/026Improve the default ssl_ciphers setting Features
Improve the default ssl_ciphers setting (Marko Kreen)
Original release occurrence ·
9.4.0/changes/027By default, the server not the client now controls the preference order of SSL ciphers Features
By default, the server not the client now controls the preference order of SSL ciphers (Marko Kreen)
Previously, the order specified by ssl_ciphers was usually ignored in favor of client-side defaults, which are not configurable in most PostgreSQL clients. If desired, the old behavior can be restored via the new configuration parameter ssl_prefer_server_ciphers.
Original release occurrence ·
9.4.0/changes/028Make log_connections show SSL encryption information Features
Make log_connections show SSL encryption information (Andreas Kunert)
Original release occurrence ·
9.4.0/changes/029Improve SSL renegotiation handling Features
Improve SSL renegotiation handling (Álvaro Herrera)
Original release occurrence ·
9.4.0/changes/030Add new SQL command ALTER SYSTEM for changing postgresql.conf configuration file entries Features
Add new SQL command ALTER SYSTEM for changing postgresql.conf configuration file entries (Amit Kapila)
Previously such settings could only be changed by manually editing postgresql.conf.
Original release occurrence ·
9.4.0/changes/031Add autovacuum_work_mem configuration parameter to control the amount of memory used by autovacuum workers Features
Add autovacuum_work_mem configuration parameter to control the amount of memory used by autovacuum workers (Peter Geoghegan)
Original release occurrence ·
9.4.0/changes/032Add huge_pages parameter to allow using huge memory pages on Linux Features
Add huge_pages parameter to allow using huge memory pages on Linux (Christian Kruse, Richard Poole, Abhijit Menon-Sen)
This can improve performance on large-memory systems.
Original release occurrence ·
9.4.0/changes/033Add max_worker_processes parameter to limit the number of background workers Features
Add max_worker_processes parameter to limit the number of background workers (Robert Haas)
This is helpful in configuring a standby server to have the required number of worker processes (the same as the primary).
Original release occurrence ·
9.4.0/changes/034Add superuser-only session_preload_libraries parameter to load libraries at session start Features
Add superuser-only session_preload_libraries parameter to load libraries at session start (Peter Eisentraut)
In contrast to local_preload_libraries, this parameter can load any shared library, not just those in the $libdir/plugins directory.
Original release occurrence ·
9.4.0/changes/035Add wal_log_hints parameter to enable WAL logging of hint-bit changes Features
Add wal_log_hints parameter to enable WAL logging of hint-bit changes (Sawada Masahiko)
Hint bit changes are not normally logged, except when checksums are enabled. This is useful for external tools like pg_rewind.
Original release occurrence ·
9.4.0/changes/036Increase the default settings of work_mem and maintenance_work_mem by four times Features
Increase the default settings of work_mem and maintenance_work_mem by four times (Bruce Momjian)
The new defaults are 4MB and 64MB respectively.
Original release occurrence ·
9.4.0/changes/037Increase the default setting of effective_cache_size to 4GB Features
Increase the default setting of effective_cache_size to 4GB (Bruce Momjian, Tom Lane)
Original release occurrence ·
9.4.0/changes/038Allow printf-style space padding to be specified in log_line_prefix Features
Allow
printf-style space padding to be specified in log_line_prefix (David Rowley)Original release occurrence ·
9.4.0/changes/039Allow terabyte units (TB) to be used when specifying configuration variable values Features
Allow terabyte units (TB) to be used when specifying configuration variable values (Simon Riggs)
Original release occurrence ·
9.4.0/changes/040Show PIDs of lock holders and waiters and improve information about relations in log_lock_waits log messages Features
Show PIDs of lock holders and waiters and improve information about relations in log_lock_waits log messages (Christian Kruse)
Original release occurrence ·
9.4.0/changes/041Reduce server logging level when loading shared libraries Features
Reduce server logging level when loading shared libraries (Peter Geoghegan)
The previous level was LOG, which was too verbose for libraries loaded per-session.
Original release occurrence ·
9.4.0/changes/042On Windows, make SQL_ASCII-encoded databases and server processes (e.g., postmaster) emit messages in the character encoding of the server's Windows user locale Features
On Windows, make SQL_ASCII-encoded databases and server processes (e.g., postmaster) emit messages in the character encoding of the server's Windows user locale (Alexander Law, Noah Misch)
Previously these messages were output in the Windows ANSI code page.
Original release occurrence ·
9.4.0/changes/043Add replication slots to coordinate activity on streaming standbys with the node they are streaming from Features
Add replication slots to coordinate activity on streaming standbys with the node they are streaming from (Andres Freund, Robert Haas)
Replication slots allow preservation of resources like WAL files on the primary until they are no longer needed by standby servers.
Original release occurrence ·
9.4.0/changes/044Add recovery parameter recovery_min_apply_delay to delay replication Features
Add recovery parameter recovery_min_apply_delay to delay replication (Robert Haas, Fabrízio de Royes Mello, Simon Riggs)
Delaying replay on standby servers can be useful for recovering from user errors.
Original release occurrence ·
9.4.0/changes/045Add recovery_target option immediate to stop WAL recovery as soon as a consistent state is reached Features
Add recovery_target option immediate to stop WAL recovery as soon as a consistent state is reached (MauMau, Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/046Improve recovery target processing Features
Improve recovery target processing (Heikki Linnakangas)
The timestamp reported by
pg_last_xact_replay_timestamp()now reflects already-committed records, not transactions about to be committed. Recovering to a restore point now replays the restore point, rather than stopping just before the restore point.Original release occurrence ·
9.4.0/changes/047pg_switch_xlog() now clears any unused trailing space in the old WAL file Features
pg_switch_xlog()now clears any unused trailing space in the old WAL file (Heikki Linnakangas)This improves the compression ratio for WAL files.
Original release occurrence ·
9.4.0/changes/048Report failure return codes from external recovery commands Features
Report failure return codes from external recovery commands (Peter Eisentraut)
Original release occurrence ·
9.4.0/changes/049Reduce spinlock contention during WAL replay Features
Reduce spinlock contention during WAL replay (Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/050Write WAL records of running transactions more frequently Features
Write WAL records of running transactions more frequently (Andres Freund)
This allows standby servers to start faster and clean up resources more aggressively.
Original release occurrence ·
9.4.0/changes/051Add support for logical decoding of WAL data, to allow database changes to be streamed out in a customizable format Features
Add support for logical decoding of WAL data, to allow database changes to be streamed out in a customizable format (Andres Freund)
Original release occurrence ·
9.4.0/changes/052Add new wal_level setting logical to enable logical change-set encoding in WAL Features
Add new wal_level setting logical to enable logical change-set encoding in WAL (Andres Freund)
Original release occurrence ·
9.4.0/changes/053Add table-level parameter REPLICA IDENTITY to control logical replication Features
Add table-level parameter REPLICA IDENTITY to control logical replication (Andres Freund)
Original release occurrence ·
9.4.0/changes/054Add relation option user_catalog_table to identify user-created tables involved in logical change-set encoding Features
Add relation option user_catalog_table to identify user-created tables involved in logical change-set encoding (Andres Freund)
Original release occurrence ·
9.4.0/changes/055Add pg_recvlogical application to receive logical-decoding data Features
Add pg_recvlogical application to receive logical-decoding data (Andres Freund)
Original release occurrence ·
9.4.0/changes/056Add test_decoding module to illustrate logical decoding at the SQL level Features
Add test_decoding module to illustrate logical decoding at the SQL level (Andres Freund)
Original release occurrence ·
9.4.0/changes/057Add WITH ORDINALITY syntax to number the rows returned from a set-returning function in the FROM clause Features
Add WITH ORDINALITY syntax to number the rows returned from a set-returning function in the FROM clause (Andrew Gierth, David Fetter)
This is particularly useful for functions like
unnest().Original release occurrence ·
9.4.0/changes/058Add ROWS FROM() syntax to allow horizontal concatenation of set-returning functions in the FROM clause Features
Add ROWS FROM() syntax to allow horizontal concatenation of set-returning functions in the FROM clause (Andrew Gierth)
Original release occurrence ·
9.4.0/changes/059Allow SELECT to have an empty target list Features
Allow SELECT to have an empty target list (Tom Lane)
This was added so that views that select from a table with zero columns can be dumped and restored correctly.
Original release occurrence ·
9.4.0/changes/060Ensure that SELECT ... FOR UPDATE NOWAIT does not wait in corner cases involving already-concurrently-updated tuples Features
Ensure that SELECT ... FOR UPDATE NOWAIT does not wait in corner cases involving already-concurrently-updated tuples (Craig Ringer and Thomas Munro)
Original release occurrence ·
9.4.0/changes/061Add DISCARD SEQUENCES command to discard cached sequence-related state Features
Add DISCARD SEQUENCES command to discard cached sequence-related state (Fabrízio de Royes Mello, Robert Haas)
DISCARD ALL will now also discard such information.
Original release occurrence ·
9.4.0/changes/062Add FORCE NULL option to COPY FROM, which causes quoted strings matching the specified null string to be converted to NULLs in CSV mode Features
Add FORCE NULL option to COPY FROM, which causes quoted strings matching the specified null string to be converted to NULLs in CSV mode (Ian Barwick, Michael Paquier)
Without this option, only unquoted matching strings will be imported as null values.
Original release occurrence ·
9.4.0/changes/063Issue warnings for commands used outside of transaction blocks when they can have no effect Features
Issue warnings for commands used outside of transaction blocks when they can have no effect (Bruce Momjian)
New warnings are issued for SET LOCAL, SET CONSTRAINTS, SET TRANSACTION and ABORT when used outside a transaction block.
Original release occurrence ·
9.4.0/changes/064Make EXPLAIN ANALYZE show planning time Features
Make EXPLAIN ANALYZE show planning time (Andreas Karlsson)
Original release occurrence ·
9.4.0/changes/065Make EXPLAIN show the grouping columns in Agg and Group nodes Features
Make EXPLAIN show the grouping columns in Agg and Group nodes (Tom Lane)
Original release occurrence ·
9.4.0/changes/066Make EXPLAIN ANALYZE show exact and lossy block counts in bitmap heap scans Features
Make EXPLAIN ANALYZE show exact and lossy block counts in bitmap heap scans (Etsuro Fujita)
Original release occurrence ·
9.4.0/changes/067Allow a materialized view to be refreshed without blocking other sessions from reading the view meanwhile Features
Allow a materialized view to be refreshed without blocking other sessions from reading the view meanwhile (Kevin Grittner)
This is done with REFRESH MATERIALIZED VIEW CONCURRENTLY.
Original release occurrence ·
9.4.0/changes/068Allow views to be automatically updated even if they contain some non-updatable columns Features
Allow views to be automatically updated even if they contain some non-updatable columns (Dean Rasheed)
Previously the presence of non-updatable output columns such as expressions, literals, and function calls prevented automatic updates. Now INSERTs, UPDATEs and DELETEs are supported, provided that they do not attempt to assign new values to any of the non-updatable columns.
Original release occurrence ·
9.4.0/changes/069Allow control over whether INSERTs and UPDATEs can add rows to an auto-updatable view that would not appear in the view Features
Allow control over whether INSERTs and UPDATEs can add rows to an auto-updatable view that would not appear in the view (Dean Rasheed)
This is controlled with the new CREATE VIEW clause WITH CHECK OPTION.
Original release occurrence ·
9.4.0/changes/070Allow security barrier views to be automatically updatable Features
Allow security barrier views to be automatically updatable (Dean Rasheed)
Original release occurrence ·
9.4.0/changes/071Support triggers on foreign tables Features
Support triggers on foreign tables (Ronan Dunklau)
Original release occurrence ·
9.4.0/changes/072Allow moving groups of objects from one tablespace to another using the ALL IN TABLESPACE ... SET TABLESPACE form of ALTER TABLE, ALTER INDEX, or ALTER MATERIALIZED VIEW Features
Allow moving groups of objects from one tablespace to another using the ALL IN TABLESPACE ... SET TABLESPACE form of ALTER TABLE, ALTER INDEX, or ALTER MATERIALIZED VIEW (Stephen Frost)
Original release occurrence ·
9.4.0/changes/073Allow changing foreign key constraint deferrability via ALTER TABLE ... ALTER CONSTRAINT Features
Allow changing foreign key constraint deferrability via ALTER TABLE ... ALTER CONSTRAINT (Simon Riggs)
Original release occurrence ·
9.4.0/changes/074Reduce lock strength for some ALTER TABLE commands Features
Reduce lock strength for some ALTER TABLE commands (Simon Riggs, Noah Misch, Robert Haas)
Specifically, VALIDATE CONSTRAINT, CLUSTER ON, SET WITHOUT CLUSTER, ALTER COLUMN SET STATISTICS, ALTER COLUMN SET (attribute_option), ALTER COLUMN RESET (attribute_option) no longer require ACCESS EXCLUSIVE locks.
Original release occurrence ·
9.4.0/changes/075Allow tablespace options to be set in CREATE TABLESPACE Features
Allow tablespace options to be set in CREATE TABLESPACE (Vik Fearing)
Formerly these options could only be set via ALTER TABLESPACE.
Original release occurrence ·
9.4.0/changes/076Allow CREATE AGGREGATE to define the estimated size of the aggregate's transition state data Features
Allow CREATE AGGREGATE to define the estimated size of the aggregate's transition state data (Hadi Moshayedi)
Proper use of this feature allows the planner to better estimate how much memory will be used by aggregates.
Original release occurrence ·
9.4.0/changes/077Fix DROP IF EXISTS to avoid errors for non-existent objects in more cases Bug fixes
Fix DROP IF EXISTS to avoid errors for non-existent objects in more cases (Pavel Stehule, Dean Rasheed)
Original release occurrence ·
9.4.0/changes/078Improve how system relations are identified Features
Improve how system relations are identified (Andres Freund, Robert Haas)
Previously, relations once moved into the pg_catalog schema could no longer be modified or dropped.
Original release occurrence ·
9.4.0/changes/079Fully implement the line data type Features
Fully implement the line data type (Peter Eisentraut)
The line segment data type (lseg) has always been fully supported. The previous line data type (which was enabled only via a compile-time option) is not binary or dump-compatible with the new implementation.
Original release occurrence ·
9.4.0/changes/080Add pg_lsn data type to represent a WAL log sequence number (LSN) Features
Add pg_lsn data type to represent a WAL log sequence number (LSN) (Robert Haas, Michael Paquier)
Original release occurrence ·
9.4.0/changes/081Allow single-point polygons to be converted to circles Features
Original release occurrence ·
9.4.0/changes/082Support time zone abbreviations that change UTC offset from time to time Features
Support time zone abbreviations that change UTC offset from time to time (Tom Lane)
Previously, PostgreSQL assumed that the UTC offset associated with a time zone abbreviation (such as EST) never changes in the usage of any particular locale. However this assumption fails in the real world, so introduce the ability for a zone abbreviation to represent a UTC offset that sometimes changes. Update the zone abbreviation definition files to make use of this feature in timezone locales that have changed the UTC offset of their abbreviations since 1970 (according to the IANA timezone database). In such timezones, PostgreSQL will now associate the correct UTC offset with the abbreviation depending on the given date.
Original release occurrence ·
9.4.0/changes/083Allow 5+ digit years for non-ISO timestamp and date strings, where appropriate Features
Allow 5+ digit years for non-ISO timestamp and date strings, where appropriate (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/084Add checks for overflow/underflow of interval values Features
Add checks for overflow/underflow of interval values (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/085Add jsonb, a more capable and efficient data type for storing JSON data Features
Add jsonb, a more capable and efficient data type for storing JSON data (Oleg Bartunov, Teodor Sigaev, Alexander Korotkov, Peter Geoghegan, Andrew Dunstan)
This new type allows faster access to values within a JSON document, and faster and more useful indexing of JSON columns. Scalar values in jsonb documents are stored as appropriate scalar SQL types, and the JSON document structure is pre-parsed rather than being stored as text as in the original json data type.
Original release occurrence ·
9.4.0/changes/086Add new JSON functions to allow for the construction of arbitrarily complex JSON trees Features
Add new JSON functions to allow for the construction of arbitrarily complex JSON trees (Andrew Dunstan, Laurence Rowe)
New functions include
json_array_elements_text(),json_build_array(),json_object(),json_object_agg(),json_to_record(), andjson_to_recordset().Original release occurrence ·
9.4.0/changes/087Add json_typeof() to return the data type of a json value Features
Add
json_typeof()to return the data type of a json value (Andrew Tipton)Original release occurrence ·
9.4.0/changes/088Add pg_sleep_for(interval) and pg_sleep_until(timestamp) to specify delays more flexibly Features
Add
pg_sleep_for(interval)andpg_sleep_until(timestamp)to specify delays more flexibly (Vik Fearing, Julien Rouhaud)The existing
pg_sleep()function only supports delays specified in seconds.Original release occurrence ·
9.4.0/changes/089Add cardinality() function for arrays Features
Add
cardinality()function for arrays (Marko Tiikkaja)This returns the total number of elements in the array, or zero for an array with no elements.
Original release occurrence ·
9.4.0/changes/090Add SQL functions to allow large object reads/writes at arbitrary offsets Features
Add SQL functions to allow large object reads/writes at arbitrary offsets (Pavel Stehule)
Original release occurrence ·
9.4.0/changes/091Allow unnest() to take multiple arguments, which are individually unnested then horizontally concatenated Features
Allow
unnest()to take multiple arguments, which are individually unnested then horizontally concatenated (Andrew Gierth)Original release occurrence ·
9.4.0/changes/092Add functions to construct times, dates, timestamps, timestamptzs, and intervals from individual values, rather than strings Features
Add functions to construct times, dates, timestamps, timestamptzs, and intervals from individual values, rather than strings (Pavel Stehule)
These functions' names are prefixed with make_, e.g.
make_date().Original release occurrence ·
9.4.0/changes/093Make to_char()'s TZ format specifier return a useful value for simple numeric time zone offsets Features
Make
to_char()'s TZ format specifier return a useful value for simple numeric time zone offsets (Tom Lane)Previously, to_char(CURRENT_TIMESTAMP, 'TZ') returned an empty string if the timezone was set to a constant like -4.
Original release occurrence ·
9.4.0/changes/094Add timezone offset format specifier OF to to_char() Features
Add timezone offset format specifier OF to
to_char()(Bruce Momjian)Original release occurrence ·
9.4.0/changes/095Improve the random seed used for random() Features
Improve the random seed used for
random()(Honza Horak)Original release occurrence ·
9.4.0/changes/096Tighten validity checking for Unicode code points in chr(int) Features
Tighten validity checking for Unicode code points in
chr(int)(Tom Lane)This function now only accepts values that are valid UTF8 characters according to RFC 3629.
Original release occurrence ·
9.4.0/changes/097Add functions for looking up objects in pg_class, pg_proc, pg_type, and pg_operator that do not generate errors for non-existent objects Features
Add functions for looking up objects in pg_class, pg_proc, pg_type, and pg_operator that do not generate errors for non-existent objects (Yugo Nagata, Nozomi Anzai, Robert Haas)
For example,
to_regclass()does a lookup in pg_class similarly to the regclass input function, but it returns NULL for a non-existent object instead of failing.Original release occurrence ·
9.4.0/changes/098Add function pg_filenode_relation() to allow for more efficient lookup of relation names from filenodes Features
Add function
pg_filenode_relation()to allow for more efficient lookup of relation names from filenodes (Andres Freund)Original release occurrence ·
9.4.0/changes/099Add parameter_default column to information_schema.parameters view Features
Add parameter_default column to information_schema.parameters view (Peter Eisentraut)
Original release occurrence ·
9.4.0/changes/100Make information_schema.schemata show all accessible schemas Features
Make information_schema.schemata show all accessible schemas (Peter Eisentraut)
Previously it only showed schemas owned by the current user.
Original release occurrence ·
9.4.0/changes/101Add control over which rows are passed into aggregate functions via the FILTER clause Features
Add control over which rows are passed into aggregate functions via the FILTER clause (David Fetter)
Original release occurrence ·
9.4.0/changes/102Support ordered-set (WITHIN GROUP) aggregates Features
Support ordered-set (WITHIN GROUP) aggregates (Atri Sharma, Andrew Gierth, Tom Lane)
Original release occurrence ·
9.4.0/changes/103Add standard ordered-set aggregates percentile_cont(), percentile_disc(), mode(), rank(), dense_rank(), percent_rank(), and cume_dist() Features
Add standard ordered-set aggregates
percentile_cont(),percentile_disc(),mode(),rank(),dense_rank(),percent_rank(), andcume_dist()(Atri Sharma, Andrew Gierth)Original release occurrence ·
9.4.0/changes/104Support VARIADIC aggregate functions Features
Support VARIADIC aggregate functions (Tom Lane)
Original release occurrence ·
9.4.0/changes/105Allow polymorphic aggregates to have non-polymorphic state data types Features
Allow polymorphic aggregates to have non-polymorphic state data types (Tom Lane)
This allows proper declaration in SQL of aggregates like the built-in aggregate
array_agg().Original release occurrence ·
9.4.0/changes/106Add event trigger support to PL/Perl and PL/Tcl Features
Original release occurrence ·
9.4.0/changes/107Convert numeric values to decimal in PL/Python Features
Convert numeric values to decimal in PL/Python (Szymon Guz, Ronan Dunklau)
Previously such values were converted to Python float values, risking loss of precision.
Original release occurrence ·
9.4.0/changes/108Add ability to retrieve the current PL/pgSQL call stack using GET DIAGNOSTICS Features
Add ability to retrieve the current PL/pgSQL call stack using GET DIAGNOSTICS (Pavel Stehule, Stephen Frost)
Original release occurrence ·
9.4.0/changes/109Add option print_strict_params to display the parameters passed to a query that violated a STRICT constraint Features
Add option print_strict_params to display the parameters passed to a query that violated a STRICT constraint (Marko Tiikkaja)
Original release occurrence ·
9.4.0/changes/110Add variables plpgsql.extra_warnings and plpgsql.extra_errors to enable additional PL/pgSQL warnings and errors Features
Add variables plpgsql.extra_warnings and plpgsql.extra_errors to enable additional PL/pgSQL warnings and errors (Marko Tiikkaja, Petr Jelinek)
Currently only warnings/errors about shadowed variables are available.
Original release occurrence ·
9.4.0/changes/111Make libpq's PQconndefaults() function ignore invalid service files Features
Make libpq's
PQconndefaults()function ignore invalid service files (Steve Singer, Bruce Momjian)Previously it returned NULL if an incorrect service file was encountered.
Original release occurrence ·
9.4.0/changes/112Accept TLS protocol versions beyond TLSv1 in libpq Features
Accept TLS protocol versions beyond TLSv1 in libpq (Marko Kreen)
Original release occurrence ·
9.4.0/changes/113Add createuser option -g to specify role membership Features
Add createuser option -g to specify role membership (Christopher Browne)
Original release occurrence ·
9.4.0/changes/114Add vacuumdb option --analyze-in-stages to analyze in stages of increasing granularity Features
Add vacuumdb option --analyze-in-stages to analyze in stages of increasing granularity (Peter Eisentraut)
This allows minimal statistics to be created quickly.
Original release occurrence ·
9.4.0/changes/115Make pg_resetxlog with option -n output current and potentially changed values Features
Make pg_resetxlog with option -n output current and potentially changed values (Rajeev Rastogi)
Original release occurrence ·
9.4.0/changes/116Make initdb throw error for incorrect locale settings, rather than silently falling back to a default choice Features
Make initdb throw error for incorrect locale settings, rather than silently falling back to a default choice (Tom Lane)
Original release occurrence ·
9.4.0/changes/117Make pg_ctl return exit code 4 for an inaccessible data directory Features
Make pg_ctl return exit code 4 for an inaccessible data directory (Amit Kapila, Bruce Momjian)
This behavior more closely matches the Linux Standard Base (LSB) Core Specification.
Original release occurrence ·
9.4.0/changes/118On Windows, ensure that a non-absolute -D path specification is interpreted relative to pg_ctl's current directory Features
On Windows, ensure that a non-absolute -D path specification is interpreted relative to pg_ctl's current directory (Kumar Rajeev Rastogi)
Previously it would be interpreted relative to whichever directory the underlying Windows service was started in.
Original release occurrence ·
9.4.0/changes/119Allow sizeof() in ECPG C array definitions Features
Allow
sizeof()in ECPG C array definitions (Michael Meskes)Original release occurrence ·
9.4.0/changes/120Make ECPG properly handle nesting of C-style comments in both C and SQL text Features
Make ECPG properly handle nesting of C-style comments in both C and SQL text (Michael Meskes)
Original release occurrence ·
9.4.0/changes/121Suppress "No rows" output in psql expanded mode when the footer is disabled Features
Suppress "No rows" output in psql expanded mode when the footer is disabled (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/122Allow Control-C to abort psql when it's hung at connection startup Features
Allow Control-C to abort psql when it's hung at connection startup (Peter Eisentraut)
Original release occurrence ·
9.4.0/changes/123Make psql's \db+ show tablespace options Features
Make psql's \db+ show tablespace options (Magnus Hagander)
Original release occurrence ·
9.4.0/changes/124Make \do+ display the functions that implement the operators Features
Make \do+ display the functions that implement the operators (Marko Tiikkaja)
Original release occurrence ·
9.4.0/changes/125Make \d+ output an OID line only if an oid column exists in the table Features
Make \d+ output an OID line only if an oid column exists in the table (Bruce Momjian)
Previously, the presence or absence of an oid column was always reported.
Original release occurrence ·
9.4.0/changes/126Make \d show disabled system triggers Features
Make \d show disabled system triggers (Bruce Momjian)
Previously, if you disabled all triggers, only user triggers would show as disabled.
Original release occurrence ·
9.4.0/changes/127Fix \copy to no longer require a space between stdin and a semicolon Bug fixes
Fix \copy to no longer require a space between stdin and a semicolon (Etsuro Fujita)
Original release occurrence ·
9.4.0/changes/128Output the row count at the end of \copy, just like COPY already did Features
Output the row count at the end of \copy, just like COPY already did (Kumar Rajeev Rastogi)
Original release occurrence ·
9.4.0/changes/129Fix \conninfo to display the server's IP address for connections using hostaddr Bug fixes
Fix \conninfo to display the server's IP address for connections using hostaddr (Fujii Masao)
Previously \conninfo could not display the server's IP address in such cases.
Original release occurrence ·
9.4.0/changes/130Show the SSL protocol version in \conninfo Features
Show the SSL protocol version in \conninfo (Marko Kreen)
Original release occurrence ·
9.4.0/changes/131Add tab completion for \pset Features
Add tab completion for \pset (Pavel Stehule)
Original release occurrence ·
9.4.0/changes/132Allow \pset with no arguments to show all settings Features
Allow \pset with no arguments to show all settings (Gilles Darold)
Original release occurrence ·
9.4.0/changes/133Make \s display the name of the history file it wrote without converting it to an absolute path Features
Make \s display the name of the history file it wrote without converting it to an absolute path (Tom Lane)
The code previously attempted to convert a relative file name to an absolute path for display, but frequently got it wrong.
Original release occurrence ·
9.4.0/changes/134Allow pg_restore options -I, -P, -T and -n to be specified multiple times Features
Allow pg_restore options -I, -P, -T and -n to be specified multiple times (Heikki Linnakangas)
This allows multiple objects to be restored in one operation.
Original release occurrence ·
9.4.0/changes/135Optionally add IF EXISTS clauses to the DROP commands emitted when removing old objects during a restore Features
Optionally add IF EXISTS clauses to the DROP commands emitted when removing old objects during a restore (Pavel Stehule)
This change prevents unnecessary errors when removing old objects. The new --if-exists option for pg_dump, pg_dumpall, and pg_restore is only available when --clean is also specified.
Original release occurrence ·
9.4.0/changes/136Add pg_basebackup option --xlogdir to specify the pg_xlog directory location Features
Add pg_basebackup option --xlogdir to specify the pg_xlog directory location (Haribabu Kommi)
Original release occurrence ·
9.4.0/changes/137Allow pg_basebackup to relocate tablespaces in the backup copy Features
Allow pg_basebackup to relocate tablespaces in the backup copy (Steeve Lennmark)
This is particularly useful for using pg_basebackup on the same machine as the primary.
Original release occurrence ·
9.4.0/changes/138Allow network-stream base backups to be throttled Features
Allow network-stream base backups to be throttled (Antonin Houska)
This can be controlled with the pg_basebackup --max-rate parameter.
Original release occurrence ·
9.4.0/changes/139Improve the way tuples are frozen to preserve forensic information Features
Improve the way tuples are frozen to preserve forensic information (Robert Haas, Andres Freund)
This change removes the main objection to freezing tuples as soon as possible. Code that inspects tuple flag bits will need to be modified.
Original release occurrence ·
9.4.0/changes/140No longer require function prototypes for functions marked with the PG_FUNCTION_INFO_V1 macro Features
No longer require function prototypes for functions marked with the
PG_FUNCTION_INFO_V1macro (Peter Eisentraut)This change eliminates the need to write boilerplate prototypes. Note that the
PG_FUNCTION_INFO_V1macro must appear before the corresponding function definition to avoid compiler warnings.Original release occurrence ·
9.4.0/changes/141Remove SnapshotNow and HeapTupleSatisfiesNow() Features
Remove SnapshotNow and
HeapTupleSatisfiesNow()(Robert Haas)All existing uses have been switched to more appropriate snapshot types. Catalog scans now use MVCC snapshots.
Original release occurrence ·
9.4.0/changes/142Add an API to allow memory allocations over one gigabyte Features
Add an API to allow memory allocations over one gigabyte (Noah Misch)
Original release occurrence ·
9.4.0/changes/143Add psprintf() to simplify memory allocation during string composition Features
Add
psprintf()to simplify memory allocation during string composition (Peter Eisentraut, Tom Lane)Original release occurrence ·
9.4.0/changes/144Support printf() size modifier z to print size_t values Features
Support
printf()size modifier z to print size_t values (Andres Freund)Original release occurrence ·
9.4.0/changes/145Change API of appendStringInfoVA() to better use vsnprintf() Features
Change API of
appendStringInfoVA()to better usevsnprintf()(David Rowley, Tom Lane)Original release occurrence ·
9.4.0/changes/146Allow new types of external toast datums to be created Features
Allow new types of external toast datums to be created (Andres Freund)
Original release occurrence ·
9.4.0/changes/147Add single-reader, single-writer, lightweight shared message queue Features
Add single-reader, single-writer, lightweight shared message queue (Robert Haas)
Original release occurrence ·
9.4.0/changes/148Improve spinlock speed on x86_64 CPUs Features
Improve spinlock speed on x86_64 CPUs (Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/149Remove spinlock support for unsupported platforms SINIX, Sun3, and NS32K Features
Remove spinlock support for unsupported platforms SINIX, Sun3, and NS32K (Robert Haas)
Original release occurrence ·
9.4.0/changes/150Remove IRIX port Features
Remove IRIX port (Robert Haas)
Original release occurrence ·
9.4.0/changes/151Reduce the number of semaphores required by --disable-spinlocks builds Features
Reduce the number of semaphores required by --disable-spinlocks builds (Robert Haas)
Original release occurrence ·
9.4.0/changes/152Rewrite duplicate_oids Unix shell script in Perl Features
Rewrite duplicate_oids Unix shell script in Perl (Andrew Dunstan)
Original release occurrence ·
9.4.0/changes/153Add Test Anything Protocol (TAP) tests for client programs Features
Add Test Anything Protocol (TAP) tests for client programs (Peter Eisentraut)
Currently, these tests are run by make check-world only if the --enable-tap-tests option was given to configure. This might become the default behavior in some future release.
Original release occurrence ·
9.4.0/changes/154Add make targets check-tests and installcheck-tests, which allow selection of individual tests to be run Features
Add make targets check-tests and installcheck-tests, which allow selection of individual tests to be run (Andrew Dunstan)
Original release occurrence ·
9.4.0/changes/155Remove maintainer-check makefile rule Features
Remove maintainer-check makefile rule (Peter Eisentraut)
The default build rules now include all the formerly-optional tests.
Original release occurrence ·
9.4.0/changes/156Improve support for VPATH builds of PGXS modules Features
Improve support for VPATH builds of PGXS modules (Cédric Villemain, Andrew Dunstan, Peter Eisentraut)
Original release occurrence ·
9.4.0/changes/157Upgrade to Autoconf 2.69 Features
Upgrade to Autoconf 2.69 (Peter Eisentraut)
Original release occurrence ·
9.4.0/changes/158Add a configure flag that appends custom text to the PG_VERSION string Features
Add a configure flag that appends custom text to the PG_VERSION string (Oskari Saarenmaa)
This is useful for packagers building custom binaries.
Original release occurrence ·
9.4.0/changes/159Improve DocBook XML validity Features
Improve DocBook XML validity (Peter Eisentraut)
Original release occurrence ·
9.4.0/changes/160Fix various minor security and sanity issues reported by the Coverity scanner Bug fixes
Fix various minor security and sanity issues reported by the Coverity scanner (Stephen Frost)
Original release occurrence ·
9.4.0/changes/161Improve detection of invalid memory usage when testing PostgreSQL with Valgrind Features
Improve detection of invalid memory usage when testing PostgreSQL with Valgrind (Noah Misch)
Original release occurrence ·
9.4.0/changes/162Improve sample Emacs configuration file emacs.samples Features
Improve sample Emacs configuration file emacs.samples (Peter Eisentraut)
Also add .dir-locals.el to the top of the source tree.
Original release occurrence ·
9.4.0/changes/163Allow pgindent to accept a command-line list of typedefs Features
Allow pgindent to accept a command-line list of typedefs (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/164Make pgindent smarter about blank lines around preprocessor conditionals Features
Make pgindent smarter about blank lines around preprocessor conditionals (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/165Avoid most uses of dlltool in Cygwin and Mingw builds Features
Avoid most uses of dlltool in Cygwin and Mingw builds (Marco Atzeri, Hiroshi Inoue)
Original release occurrence ·
9.4.0/changes/166Support client-only installs in MSVC (Windows) builds Features
Support client-only installs in MSVC (Windows) builds (MauMau)
Original release occurrence ·
9.4.0/changes/167Add pg_prewarm extension to preload relation data into the shared buffer cache at server start Features
Add pg_prewarm extension to preload relation data into the shared buffer cache at server start (Robert Haas)
This allows reaching full operating performance more quickly.
Original release occurrence ·
9.4.0/changes/168Add UUID random number generator gen_random_uuid() to pgcrypto Features
Add UUID random number generator
gen_random_uuid()to pgcrypto (Oskari Saarenmaa)This allows creation of version 4 UUIDs without requiring installation of uuid-ossp.
Original release occurrence ·
9.4.0/changes/169Allow uuid-ossp to work with the BSD or e2fsprogs UUID libraries, not only the OSSP UUID library Features
Allow uuid-ossp to work with the BSD or e2fsprogs UUID libraries, not only the OSSP UUID library (Matteo Beccati)
This improves the uuid-ossp module's portability since it no longer has to have the increasingly-obsolete OSSP library. The module's name is now rather a misnomer, but we won't change it.
Original release occurrence ·
9.4.0/changes/170Add option to auto_explain to include trigger execution time Features
Add option to auto_explain to include trigger execution time (Horiguchi Kyotaro)
Original release occurrence ·
9.4.0/changes/171Fix pgstattuple to not report rows from uncommitted transactions as dead Bug fixes
Fix pgstattuple to not report rows from uncommitted transactions as dead (Robert Haas)
Original release occurrence ·
9.4.0/changes/172Make pgstattuple functions use regclass-type arguments Features
Make pgstattuple functions use regclass-type arguments (Satoshi Nagayasu)
While text-type arguments are still supported, they may be removed in a future major release.
Original release occurrence ·
9.4.0/changes/173Improve consistency of pgrowlocks output to honor snapshot rules more consistently Features
Improve consistency of pgrowlocks output to honor snapshot rules more consistently (Robert Haas)
Original release occurrence ·
9.4.0/changes/174Improve pg_trgm's choice of trigrams for indexed regular expression searches Features
Improve pg_trgm's choice of trigrams for indexed regular expression searches (Alexander Korotkov)
This change discourages use of trigrams containing whitespace, which are usually less selective.
Original release occurrence ·
9.4.0/changes/175Allow pg_xlogdump to report a live log stream with --follow Features
Allow pg_xlogdump to report a live log stream with --follow (Heikki Linnakangas)
Original release occurrence ·
9.4.0/changes/176Store cube data more compactly Features
Store cube data more compactly (Stas Kelvich)
Existing data must be dumped/restored to use the new format. The old format can still be read.
Original release occurrence ·
9.4.0/changes/177Reduce vacuumlo client-side memory usage by using a cursor Features
Reduce vacuumlo client-side memory usage by using a cursor (Andrew Dunstan)
Original release occurrence ·
9.4.0/changes/178Dramatically reduce memory consumption in pg_upgrade Features
Dramatically reduce memory consumption in pg_upgrade (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/179Pass pg_upgrade's user name (-U) option to generated analyze scripts Features
Pass pg_upgrade's user name (-U) option to generated analyze scripts (Bruce Momjian)
Original release occurrence ·
9.4.0/changes/180Remove line length limit for pgbench scripts Features
Remove line length limit for pgbench scripts (Sawada Masahiko)
The previous line limit was BUFSIZ.
Original release occurrence ·
9.4.0/changes/181Add long option names to pgbench Features
Add long option names to pgbench (Fabien Coelho)
Original release occurrence ·
9.4.0/changes/182Add pgbench option --rate to control the transaction rate Features
Add pgbench option --rate to control the transaction rate (Fabien Coelho)
Original release occurrence ·
9.4.0/changes/183Add pgbench option --progress to print periodic progress reports Features
Add pgbench option --progress to print periodic progress reports (Fabien Coelho)
Original release occurrence ·
9.4.0/changes/184Make pg_stat_statements use a file, rather than shared memory, for query text storage Features
Make pg_stat_statements use a file, rather than shared memory, for query text storage (Peter Geoghegan)
This removes the previous limitation on query text length, and allows a higher number of unique statements to be tracked by default.
Original release occurrence ·
9.4.0/changes/185Allow reporting of pg_stat_statements's internal query hash identifier Features
Allow reporting of pg_stat_statements's internal query hash identifier (Daniel Farina, Sameer Thakur, Peter Geoghegan)
Original release occurrence ·
9.4.0/changes/186Add the ability to retrieve all pg_stat_statements information except the query text Features
Add the ability to retrieve all pg_stat_statements information except the query text (Peter Geoghegan)
This allows monitoring tools to fetch query text only for just-created entries, improving performance during repeated querying of the statistics.
Original release occurrence ·
9.4.0/changes/187Make pg_stat_statements ignore DEALLOCATE commands Features
Make pg_stat_statements ignore DEALLOCATE commands (Fabien Coelho)
It already ignored PREPARE, as well as planning time in general, so this seems more consistent.
Original release occurrence ·
9.4.0/changes/188Save the statistics file into $PGDATA/pg_stat at server shutdown, rather than $PGDATA/global Features
Save the statistics file into $PGDATA/pg_stat at server shutdown, rather than $PGDATA/global (Fujii Masao)
Original release occurrence ·
9.4.0/changes/189
Security evidence
36 records from the official security matrix and release-note mentions. A fixed version is shown only when the security snapshot explicitly names this branch. A mention alone does not establish applicability or a new fix.
CVE-2019-3466 · pg_ctlcluster script in postgresql-common does not drop privileges when creating socket/statistics temporary directories CVSS 8.4
A PostgreSQL superuser could escalate to root using a deficiency in the pg_ctlcluster command. pg_ctlcluster is a utility provided by the "postgresql-common" package that is installed with PostgreSQL on Debian and Ubuntu platforms.
Fixed in this branch: 9.4.25. Component: packaging.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
CVE-2019-10211 · Windows installer bundled OpenSSL executes code from unprotected directory CVSS 7.8
When the database server or libpq client library initializes SSL, libeay32.dll attempts to read configuration from a hard-coded directory. Typically, the directory does not exist, but any local user could create it and inject configuration. This configuration can direct OpenSSL to load and execute arbitrary code as the user running a PostgreSQL server or client. Most PostgreSQL client tools and libraries use libpq , and one can encounter this vulnerability by using any of them. This vulnerability is much like CVE-2019-5443 , but it originated independently. One can work around the vulnerability by setting environment variable OPENSSL_CONF to "NUL:/openssl.cnf" or any other name that cannot exist as a file. The PostgreSQL project thanks Daniel Gustafsson of the curl security team for reporting this problem.
Fixed in this branch: 9.4.24. Component: packaging.
Official affected-branch entry: 9.4.
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE-2019-10210 · Windows installer writes superuser password to unprotected temporary file CVSS 6.7
The EnterpriseDB Windows installer writes a password to a temporary file in its installation directory, creates initial databases, and deletes the file. During those seconds while the file exists, a local attacker can read the PostgreSQL superuser password from the file. The PostgreSQL project thanks Noah Misch for reporting this problem.
Fixed in this branch: 9.4.24. Component: packaging.
Official affected-branch entry: 9.4.
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVE-2019-10208 · TYPE in pg_temp executes arbitrary SQL during SECURITY DEFINER execution CVSS 7.5
Given a suitable SECURITY DEFINER function, an attacker can execute arbitrary SQL under the identity of the function owner. An attack requires EXECUTE permission on the function, which must itself contain a function call having inexact argument type match. For example, length('foo'::varchar) and length('foo') are inexact, while length('foo'::text) is exact. As part of exploiting this vulnerability, the attacker uses CREATE DOMAIN to create a type in a pg_temp schema. The attack pattern and fix are similar to that for CVE-2007-2138 . Writing SECURITY DEFINER functions continues to require following the considerations noted in the documentation: https://www.postgresql.org/docs/current/sql-createfunction.html#SQL-CREATEFUNCTION-SECURITY The PostgreSQL project thanks Tom Lane for reporting this problem.
Fixed in this branch: 9.4.24. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2019-10128 · EnterpriseDB Windows installer does not clear permissive ACL entries CVSS 7.0
Due to both the EnterpriseDB and BigSQL Windows installers not locking down the permissions of the PostgreSQL binary installation directory and the data directory, an unprivileged Windows user account and an unprivileged PostgreSQL account could cause the PostgreSQL service account to execute arbitrary code. This vulnerability is present in all supported versions of PostgreSQL for these installers, and possibly exists in older versions. Both sets of installers have fixed the permissions for these directories for both new and existing installations. If you have installed PostgreSQL on Windows using other methods, we advise that you check that your PostgreSQL binary directories are writable only to trusted users and that your data directories are only accessible to trusted users. The PostgreSQL project thanks Conner Jones for reporting this problem.
Fixed in this branch: 9.4.22. Component: packaging.
Official affected-branch entry: 9.4.
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE-2019-10127 · BigSQL Windows installer does not clear permissive ACL entries. CVSS 7.0
Due to both the EnterpriseDB and BigSQL Windows installers not locking down the permissions of the PostgreSQL binary installation directory and the data directory, an unprivileged Windows user account and an unprivileged PostgreSQL account could cause the PostgreSQL service account to execute arbitrary code. This vulnerability is present in all supported versions of PostgreSQL for these installers, and possibly exists in older versions. Both sets of installers have fixed the permissions for these directories for both new and existing installations. If you have installed PostgreSQL on Windows using other methods, we advise that you check that your PostgreSQL binary directories are writable only to trusted users and that your data directories are only accessible to trusted users. The PostgreSQL project thanks Conner Jones for reporting this problem.
Fixed in this branch: 9.4.22. Component: packaging.
Official affected-branch entry: 9.4.
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE-2018-10915 · Certain host connection parameters defeat client-side security defenses CVSS 8.5
Fixed in this branch: 9.4.19. Component: client.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Release-note mentions:
CVE-2018-1058 · Uncontrolled search path element in pg_dump and other client applications CVSS 8.8
Fixed in this branch: 9.4.17. Component: client.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2018-1053 · pg_upgrade creates file of sensitive metadata under prevailing umask CVSS 6.7
Fixed in this branch: 9.4.16. Component: client.
Official affected-branch entry: 9.4.
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2017-7548 · lo_put() function ignores ACLs CVSS 3.1
Fixed in this branch: 9.4.13. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Release-note mentions:
CVE-2017-7547 · pg_user_mappings view discloses passwords to users lacking server privileges CVSS 8.5
Fixed in this branch: 9.4.13. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Release-note mentions:
CVE-2017-7546 · empty password accepted in some authentication methods CVSS 8.1
Fixed in this branch: 9.4.13. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2017-7486 · pg_user_mappings view discloses foreign server passwords CVSS 8.5
Fixed in this branch: 9.4.12. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Release-note mentions:
CVE-2017-7485 · libpq ignores PGREQUIRESSL environment variable CVSS 8.1
Fixed in this branch: 9.4.12. Component: client.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2017-7484 · selectivity estimators bypass SELECT privilege checks CVSS 4.3
Fixed in this branch: 9.4.12. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Release-note mentions:
CVE-2017-15098 · Memory disclosure in JSON functions CVSS 4.3
Fixed in this branch: 9.4.15. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Release-note mentions:
CVE-2017-12172 · Start scripts permit database administrator to modify root-owned files CVSS 8.4
Fixed in this branch: 9.4.15. Component: contrib module.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Release-note mentions:
CVE-2016-7048 · Interactive installer downloads software over plain HTTP, then executes it CVSS 7.5
Fixed in this branch: 9.4.10. Component: packaging.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVE-2016-5424 · Exceptional database and role names could enable escalation to superuser CVSS 8.5
Fixed in this branch: 9.4.9. Component: client.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Release-note mentions:
CVE-2016-5423 · Certain nested CASE/WHEN expressions can crash server CVSS 4.3
Fixed in this branch: 9.4.9. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Release-note mentions:
CVE-2016-0773 · Unchecked regex can crash the server CVSS 6.5
Fixed in this branch: 9.4.6. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Release-note mentions:
CVE-2016-0766 · CVE-2016-0766
No fixed version for this branch is recorded.
Release-note mentions:
CVE-2015-7499 · CVE-2015-7499
No fixed version for this branch is recorded.
Release-note mentions:
CVE-2015-5289 · Unchecked JSON input can crash the server CVSS 5.9
Fixed in this branch: 9.4.5. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Release-note mentions:
CVE-2015-5288 · Memory leak in crypt() function. CVSS 3.1
Fixed in this branch: 9.4.5. Component: contrib module.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Release-note mentions:
CVE-2015-3167 · pgcrypto has multiple error messages for decryption with an incorrect key. CVSS 3.7
Fixed in this branch: 9.4.2. Component: contrib module.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Release-note mentions:
CVE-2015-3166 · Unanticipated errors from the standard library. CVSS 5.6
Fixed in this branch: 9.4.2. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Release-note mentions:
CVE-2015-3165 · Double "free" after authentication timeout CVSS 7.5
Fixed in this branch: 9.4.2. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Release-note mentions:
CVE-2015-0244 · An error in extended protocol message reading. CVSS 8.1
Fixed in this branch: 9.4.1. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2015-0243 · Memory errors in functions in the pgcrypto extension. CVSS 6.5
Fixed in this branch: 9.4.1. Component: contrib module.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Release-note mentions:
CVE-2015-0242 · Buffer overrun in replacement printf family of functions. CVSS 4.2
Fixed in this branch: 9.4.1. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Release-note mentions:
CVE-2015-0241 · Buffer overruns in "to_char" functions. CVSS 4.2
Fixed in this branch: 9.4.1. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Release-note mentions:
CVE-2014-8161 · Constraint violation errors can cause display of values in columns which the user would not normally have rights to see. CVSS 3.1
Fixed in this branch: 9.4.1. Component: core server.
Official affected-branch entry: 9.4.
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Release-note mentions:
CVE-2014-0067 · Unauthenticated users may gain access to the database server during "make check".. CVSS 7.0
Fixed in this branch: 9.4.1. Component: other.
Official affected-branch entry: 9.4.
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Release-note mentions:
CVE-2007-4772 · CVE-2007-4772
No fixed version for this branch is recorded.
Release-note mentions:
CVE-2007-2138 · A vulnerability involving insecure search_path settings allows unprivileged users to gain the SQL privileges of the owner of any SECURITY DEFINER function they are allowed to call. Securing such a function requires both a software update and changes to the function definition.
No fixed version for this branch is recorded.
Release-note mentions:
Export this branch as JSON · Compare any two indexed releases