chunk_id large_stringlengths 36 36 | doc_type large_stringclasses 2
values | category large_stringclasses 17
values | document large_stringclasses 50
values | version_raw large_stringclasses 590
values | chunk_index int64 0 262 | text large_stringlengths 11 5.69k | file_path large_stringclasses 882
values |
|---|---|---|---|---|---|---|---|
c561fa65-f75d-501c-abff-6a7f46fb2b9c | changelog | postgresql | postgresql | 163 | 7 | If the session that creates a temporary table crashes without removing the table, autovacuum will eventually try to remove the orphaned table. However, an incoming session that's been assigned the same temporary namespace will do that too. If a temporary table has a dependency (such as an owned sequence) then a deadl... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
31a2c55b-1bcf-527f-a817-66a9c8f0b9d2 | changelog | postgresql | postgresql | 163 | 8 | * Fix buffer usage reporting for parallel vacuuming (Anthonin Bonnefoy) [§](https://postgr.es/c/f199436c1)
Buffer accesses performed by parallel workers were not getting counted in the statistics reported in `VERBOSE` mode.
* Ensure that join conditions generated from equivalence classes are applied at the correct p... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
b0c6f53c-5885-531c-b45e-07a21e48bf11 | changelog | postgresql | postgresql | 163 | 9 | * Prevent potentially-incorrect optimization of some window functions (David Rowley) [§](https://postgr.es/c/9d36b883b)
Disable “run condition” optimization of `ntile()` and `count()` with non-constant arguments. This avoids possible misbehavior with sub-selects, typically leading to errors like “WindowFunc not foun... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
03ed3c67-a0e6-5a1f-800b-c555875d5651 | changelog | postgresql | postgresql | 163 | 10 | * Avoid freeing still-in-use data in Memoize (Tender Wang, Andrei Lepikhov) [§](https://postgr.es/c/348233cb1)
In production builds this error frequently didn't cause any problems, as the freed data would most likely not get overwritten before it was used.
* Fix incorrectly-reported statistics kind codes in “request... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
3dd2bf99-757e-582d-bba6-83ab81af40bf | changelog | postgresql | postgresql | 163 | 11 | The output columns of such a function call must be defined by an `AS` clause that specifies the column names and data types. If the actual function output value doesn't match that, an error is supposed to be thrown at runtime. However, some code paths would examine the actual value prematurely, and potentially issue ... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
5702c6ac-f458-58b4-adfb-3578c12ad343 | changelog | postgresql | postgresql | 163 | 12 | In the case where the source timestamp is before the origin timestamp and their difference is already an exact multiple of the stride, the code incorrectly subtracted the stride anyway. Also, detect some integer-overflow cases that would have produced incorrect results.
* Detect integer overflow when adding or subtra... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
6ba4fe28-5366-5bb4-9256-d251ebda2120 | changelog | postgresql | postgresql | 163 | 13 | * Ensure that a table's freespace map won't return a page that's past the end of the table (Ronan Dunklau) [§](https://postgr.es/c/4e62ba21a)
Because the freespace map isn't WAL-logged, this was possible in edge cases involving an OS crash, a replica promote, or a PITR restore. The result would be a “could not read ... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
86becf88-8938-56ea-8b9f-dbc86cb2ea51 | changelog | postgresql | postgresql | 163 | 14 | * Ensure that index-only scans on `name` columns return a fully-padded value (David Rowley) [§](https://postgr.es/c/68d358545)
The value physically stored in the index is truncated, and previously a pointer to that value was returned to callers. This provoked complaints when testing under valgrind. In theory it coul... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
fbfd42a2-2771-5f8b-84f0-16067526d41d | changelog | postgresql | postgresql | 163 | 15 | * Disconnect if a new server session's client socket cannot be put into non-blocking mode (Heikki Linnakangas) [§](https://postgr.es/c/539e328b1)
It was once theoretically possible for us to operate with a socket that's in blocking mode; but that hasn't worked fully in a long time, so fail at connection start rather... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
4aa7c575-714a-5429-8819-b72e757020bf | changelog | postgresql | postgresql | 163 | 16 | Although GNU gettext's implementation seems to be fine with concurrent calls, the version available on Windows is not.
* Fix crash in ecpg's preprocessor if the program tries to redefine a macro that was defined on the preprocessor command line (Tom Lane) [§](https://postgr.es/c/392e6e9e6) [§](https://postgr.es/c/001... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
974ad6a4-39eb-5cf0-830d-f25aa112d213 | changelog | postgresql | postgresql | 163 | 17 | * In psql, avoid leaking a query result after the query is cancelled (Tom Lane) [§](https://postgr.es/c/a85e3ba1c)
This happened only when cancelling a non-last query in a query string made with `\;` separators.
* Fix pg\_dumpall so that role comments, if present, will be dumped regardless of the setting of `--no-ro... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
3e0a93d2-9195-55a4-9d27-6dead04ef670 | changelog | postgresql | postgresql | 163 | 18 | * In `contrib/amcheck`, don't report false match failures due to short- versus long-header values (Andrey Borodin, Michael Zhilin) [§](https://postgr.es/c/3676b846b) [§](https://postgr.es/c/a6ddb8ad0)
A variable-length datum in a heap tuple or index tuple could have either a short or a long header, depending on comp... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
affebda0-30b0-5ba3-97ca-6f2108156577 | changelog | postgresql | postgresql | 163 | 19 | This could occur in cases involving `UNION ALL` with constant-emitting subqueries. Sorting by a constant is useless of course, but it also risks being misinterpreted by the remote server, leading to “ORDER BY position *`N`* is not in select list” errors.
* Make `contrib/postgres_fdw` set the remote session's time zon... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
650b5453-b668-5744-bf48-751e6f513b15 | changelog | postgresql | postgresql | 163 | 20 | * Allow `make check` to work with the musl C library (Thomas Munro, Bruce Momjian, Tom Lane) [§](https://postgr.es/c/7651fd387)
---
| | | |
| --- | --- | --- |
| [Prev](release-16-4.html "E.8. Release 16.4") | [Up](release.html "Appendix E. Release Notes") | [Next](release-16-2.html "E.10. Release 16.2") |
| E.8. ... | large_dataset/raw/changelog/postgresql_releases/postgresql_163.md |
e74cce10-98f6-5022-8aec-9d5c81e66541 | changelog | postgresql | postgresql | 164 | 0 | # Release Notes
Source: https://www.postgresql.org/docs/release/16.4/
Version: 16.4
## PostgreSQL 16.4
| E.8. Release 16.4 | | | | |
| --- | --- | --- | --- | --- |
| [Prev](release-16-5.html "E.7. Release 16.5") | [Up](release.html "Appendix E. Release Notes") | Appendix E. Release Notes | [Home](index.html "Postgr... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
d757f61c-95d0-5df9-a502-884cfc5866f7 | changelog | postgresql | postgresql | 164 | 1 | ### E.8.2. Changes [#](#RELEASE-16-4-CHANGES)
* Prevent unauthorized code execution during pg\_dump (Masahiko Sawada) [§](https://postgr.es/c/6aba85a4b)
An attacker able to create and drop non-temporary objects could inject SQL code that would be executed by a concurrent pg\_dump session with the privileges of the ... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
e35d4e1a-56c5-544a-8da1-24b203036545 | changelog | postgresql | postgresql | 164 | 2 | * Avoid incorrect results from Merge Right Anti Join plans (Richard Guo) [§](https://postgr.es/c/507f2347e)
If the inner relation is known to have unique join keys, the merge could misbehave when there are duplicated join keys in the outer relation.
* Prevent infinite loop in `VACUUM` (Melanie Plageman) [§](https://... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
3eb93fd6-e9eb-5a6c-a313-29ed188df346 | changelog | postgresql | postgresql | 164 | 3 | When a partitioned table has an index that is not associated with a constraint, but a partition has an equivalent index that is, then detaching the partition would misbehave, leaving the ex-partition's constraint with an incorrect `coninhcount` value. This would cause trouble during any further manipulations of that ... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
1921e02c-84bf-5735-a8f4-b2766046dede | changelog | postgresql | postgresql | 164 | 4 | The first `ANALYZE` on such a partitioned table must update `relhassubclass` as well, and that caused the `reltuples` update to be lost.
* Fix handling of polymorphic output arguments for procedures (Tom Lane) [§](https://postgr.es/c/8e0e99972) [§](https://postgr.es/c/bb331af4a)
The SQL `CALL` statement did not re... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
70b1cdf9-8a46-5265-b9cd-25ba486efac9 | changelog | postgresql | postgresql | 164 | 5 | Re-allow cases such as `T12:34:56`.
* Detect integer overflow in `money` calculations (Joseph Koshakow) [§](https://postgr.es/c/34e9dce69)
None of the arithmetic functions for the `money` type checked for overflow before, so they would silently give wrong answers for overflowing cases.
* Fix over-aggressive clampi... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
3cbbb42b-259a-5399-ab15-88a6d540c2dc | changelog | postgresql | postgresql | 164 | 6 | Make it return NULL in these cases instead of throwing an error.
* Fix parsing of ignored operators in `websearch_to_tsquery()` (Tom Lane) [§](https://postgr.es/c/086ecd12b)
Per the manual, punctuation in the input of `websearch_to_tsquery()` is ignored except for the special cases of dashes and quotes. However, p... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
74206b0e-6557-58b1-9808-7ebbb5f551ea | changelog | postgresql | postgresql | 164 | 7 | * Detect another case of a new catalog cache entry becoming stale while detoasting its fields (Noah Misch) [§](https://postgr.es/c/e4afd7153)
An in-place update occurring while we expand out-of-line fields in a catalog tuple could be missed, leading to a catalog cache entry that lacks the in-place change but is not ... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
e2f74d7e-aca6-51c9-9b31-33c5bf08bace | changelog | postgresql | postgresql | 164 | 8 | Rearrange the order of error checks so that we throw an on-point error when a `WITH RECURSIVE` query does not have a self-reference within the second arm of the `UNION`, but does have one self-reference in some other place such as `ORDER BY`.
* Lock owned sequences during `ALTER TABLE SET LOGGED|UNLOGGED` (Noah Misch... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
71c02a4a-12a3-54da-9c18-f921ba17d81a | changelog | postgresql | postgresql | 164 | 9 | It's possible for a transaction to execute an operation that queues a deferred `AFTER` trigger for later execution, and then to drop the trigger before that happens. Formerly this led to weird errors such as “could not find trigger *`NNNN`*”. It seems better to silently do nothing if the trigger no longer exists at t... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
23ee8ec5-50f2-525b-a451-04150fbabe1c | changelog | postgresql | postgresql | 164 | 10 | If a query using `ON CONFLICT` accesses the target table through an updatable view, it could fail with “there is no unique or exclusion constraint matching the ON CONFLICT specification”, even though a matching index does exist.
* Refuse to modify a temporary table of another session with `ALTER TABLE` (Tom Lane) [§]... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
e5f48032-bce9-537d-b902-11f099e1a365 | changelog | postgresql | postgresql | 164 | 11 | The `CREATE` command failed to adjust column references in statistics expressions to the possibly-different column numbering of the new table. This resulted in invalid statistics objects that would cause problems later. A typical scenario where renumbering columns is needed is when the source table contains some drop... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
3a2e17be-d359-594a-8af5-5564e842dfdf | changelog | postgresql | postgresql | 164 | 12 | As of v16 we allow integer literals to contain underscores. This change caused input such as `$1_234` to be taken as a single token, but it did not work correctly. It seems better to revert to the original definition in which a parameter symbol is only `$` followed by digits.
* Avoid crashing when a JIT-inlined backe... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
41cc6b33-8622-581a-9502-eac7f57f1960 | changelog | postgresql | postgresql | 164 | 13 | Notably, we now suppress “chunk is not well balanced” errors from libxml2, unless that is the only reported error. This is to make error reports consistent between 2.13.x and earlier libxml2 versions. In earlier versions, that message was almost always redundant or outright incorrect, so 2.13.x substantially reduced ... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
783f9bc0-58d5-5d5b-b7e6-dbb0288ae561 | changelog | postgresql | postgresql | 164 | 14 | * Prevent incorrect initialization of logical replication slots (Masahiko Sawada) [§](https://postgr.es/c/2f3304ce1)
In some cases a replication slot's start point within the WAL stream could be set to a point within a transaction, leading to assertion failures or incorrect decoding results.
* Avoid “can only drop s... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
488b5ced-9dd0-5d88-802e-45bc6c45abd3 | changelog | postgresql | postgresql | 164 | 15 | The processing functions for these events could switch the current memory context to TopMemoryContext, resulting in session-lifespan leakage of any data allocated before the incorrect setting gets replaced. There were observable leaks associated with (at least) encoding conversion of incoming queries and parameters a... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
5e55dfdf-ca61-500b-8976-e647432462bc | changelog | postgresql | postgresql | 164 | 16 | * Avoid possibly missing end-of-input events on Windows sockets (Thomas Munro) [§](https://postgr.es/c/a622095bc)
Windows reports an FD\_CLOSE event only once after the remote end of the connection disconnects. With unlucky timing, we could miss that report and wait indefinitely, or at least until a timeout elapsed,... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
8206c83d-625f-5b53-b38e-30fae3806c10 | changelog | postgresql | postgresql | 164 | 17 | * When replanning a PL/pgSQL “simple expression”, check it's still simple (Tom Lane) [§](https://postgr.es/c/82a931d3d)
Certain fairly-artificial cases, such as dropping a referenced function and recreating it as an aggregate, could lead to surprising failures such as “unexpected plan node type”.
* Fix PL/pgSQL's ha... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
4e8ab71d-c2ab-5b28-906a-680c56a1ea6e | changelog | postgresql | postgresql | 164 | 18 | If a PL/Python-language trigger caused another one to be invoked, the `TD` dictionary created for the inner one would overwrite the outer one's `TD` dictionary.
* Fix PL/Tcl's reporting of invalid list syntax in the result of a function returning tuple (Erik Wienhold, Tom Lane) [§](https://postgr.es/c/c236ecc82)
S... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
cac75102-c665-593d-95fa-2f887ca576f8 | changelog | postgresql | postgresql | 164 | 19 | If `-l` was specified together with selective-restore options such as `-n` or `-N`, dependent TOC entries such as comments would be omitted from the listing, even when an actual restore would have selected them.
* Allow `contrib/pg_stat_statements` to distinguish among utility statements appearing within SQL-language... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
3d583c21-a029-5d39-be04-5fe3f8702e58 | changelog | postgresql | postgresql | 164 | 20 | The remote server might not implement this clause, or might interpret it differently than we would locally, so don't risk attempting remote execution.
* Avoid clashing with system-provided `<regex.h>` headers (Thomas Munro) [§](https://postgr.es/c/31423bc44)
This fixes a compilation failure on macOS version 15 and... | large_dataset/raw/changelog/postgresql_releases/postgresql_164.md |
76ac1672-6770-5ecb-b214-f5c789de2fd5 | changelog | postgresql | postgresql | 165 | 0 | # Release Notes
Source: https://www.postgresql.org/docs/release/16.5/
Version: 16.5
## PostgreSQL 16.5
| E.7. Release 16.5 | | | | |
| --- | --- | --- | --- | --- |
| [Prev](release-16-6.html "E.6. Release 16.6") | [Up](release.html "Appendix E. Release Notes") | Appendix E. Release Notes | [Home](index.html "Postgr... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
05cab048-3974-517c-ad61-ea8945ddf3a8 | changelog | postgresql | postgresql | 165 | 1 | However, if you have ever detached a partition from a partitioned table that has a foreign-key reference to another partitioned table, and not dropped the former partition, then you may have catalog and/or data corruption to repair, as detailed in the fifth changelog entry below.
Also, if you are upgrading from a vers... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
f983d08b-f273-56a1-966e-74252858372e | changelog | postgresql | postgresql | 165 | 2 |
The PostgreSQL Project thanks Wolfgang Walther for reporting this problem. (CVE-2024-10976)
* Make libpq discard error messages received during SSL or GSS protocol negotiation (Jacob Champion) [§](https://postgr.es/c/67d28bd02)
An error message received before encryption negotiation is completed might have been i... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
cf0b1ee3-a77c-5711-b012-e6c0b7e42d20 | changelog | postgresql | postgresql | 165 | 3 | The SQL standard mandates that `SET SESSION AUTHORIZATION` have a side-effect of doing `SET ROLE NONE`. Our implementation of that was flawed, creating more interaction between the two settings than intended. Notably, rolling back a transaction that had done `SET SESSION AUTHORIZATION` would revert `ROLE` to `NONE` e... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
50c81a6d-3282-58c1-9bbf-47ed0988f26b | changelog | postgresql | postgresql | 165 | 4 | * Prevent trusted PL/Perl code from changing environment variables (Andrew Dunstan, Noah Misch) [§](https://postgr.es/c/8fe3e697a) [§](https://postgr.es/c/88269df4d) [§](https://postgr.es/c/168579e23) [§](https://postgr.es/c/c335264c9) [§](https://postgr.es/c/64df88700)
The ability to manipulate process environment ... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
ee15d993-fb1b-5f96-91cc-a996cd12768a | changelog | postgresql | postgresql | 165 | 5 | If the referenced table is partitioned, then different catalog entries are needed for a referencing table that is stand-alone versus one that is a partition. `ATTACH/DETACH PARTITION` commands failed to perform this conversion correctly. In particular, after `DETACH` the now stand-alone table would be missing foreign... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
19789939-5985-5f38-bf1b-af0e53926c77 | changelog | postgresql | postgresql | 165 | 6 | SELECT conrelid::pg_catalog.regclass AS "constrained table",
conname AS constraint,
confrelid::pg_catalog.regclass AS "references",
pg_catalog.format('ALTER TABLE %s DROP CONSTRAINT %I;',
conrelid::pg_catalog.regclass, conname) AS "drop",
pg_catalog.forma... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
671ee7bf-04fd-5808-9ae4-911709ed0bb9 | changelog | postgresql | postgresql | 165 | 7 | (SELECT count(*) FROM pg_catalog.pg_partition_tree(confrelid)
WHERE level = 1)
ELSE 0 END);
```
Since it is possible that one or more of the `ADD CONSTRAINT` steps will fail, you should save the query's output in a file and then attempt to perform each step.
* Avoid pos... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
e203d422-98e7-5243-a75f-739b10a3ad4b | changelog | postgresql | postgresql | 165 | 8 | * Don't use partitionwise joins or grouping if the query's collation for the key column doesn't match the partition key's collation (Jian He, Webbo Han) [§](https://postgr.es/c/f734b6b4d) [§](https://postgr.es/c/dd2f8ebee)
Such plans could produce incorrect results.
* Fix possible “could not find pathkey item to sor... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
827d62de-ca65-5d39-8c62-87157ec02456 | changelog | postgresql | postgresql | 165 | 9 | * Fix assertion failure or confusing error message for `COPY (query) TO ...`, when the *`query`* is rewritten by a `DO INSTEAD NOTIFY` rule (Tender Wang, Tom Lane) [§](https://postgr.es/c/6c3b2d204)
* Fix server crash when a `json_objectagg()` call contains a volatile function (Amit Langote) [§](https://postgr.es/c/fa4... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
36116bcd-b645-57fa-8c3f-777c639f324e | changelog | postgresql | postgresql | 165 | 10 | After repartitioning the inner side of a hash join because one partition has accumulated too many tuples, we check to see if all the partition's tuples went into the same child partition, which suggests that they all have the same hash value and further repartitioning cannot improve matters. This check malfunctioned ... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
290ccf0d-9fc4-55bb-8194-bd0a030163c0 | changelog | postgresql | postgresql | 165 | 11 | Anyone who encounters the new error message should either create a new duplicated locale with an ASCII-only name using Windows Locale Builder, or consider using BCP 47-compliant locale names like `tr-TR`.
* Fix race condition in committing a serializable transaction (Heikki Linnakangas) [§](https://postgr.es/c/22665f... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
bd6e7f00-a870-5ec5-90fb-7b69e8466c44 | changelog | postgresql | postgresql | 165 | 12 | * Avoid invalid memory accesses after skipping an invalid toast index during `VACUUM FULL` (Tender Wang) [§](https://postgr.es/c/afbd3dc7d)
A list tracking yet-to-be-rebuilt indexes was not properly updated in this code path, risking assertion failures or crashes later on.
* Fix ways in which an “in place” catalog u... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
e3753977-9176-5e20-bc50-5418c609c45b | changelog | postgresql | postgresql | 165 | 13 | Normal row updates write a new version of the row to preserve rollback-ability of the transaction. However, certain system catalog updates are intentionally non-transactional and are done with an in-place update of the row. These patches fix race conditions that could cause the effects of an in-place update to be los... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
be5fbe07-8015-5743-9e36-89dfde8133f6 | changelog | postgresql | postgresql | 165 | 14 | This situation cannot arise normally, but it can be reached with test scenarios such as using a SQL-language function as B-tree support (which would be far too slow for production usage). If it did occur it would result in an indefinite wait.
* Report the active query ID for statistics purposes at the start of proces... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
e59d9add-a984-54ae-bc26-de25a60de81e | changelog | postgresql | postgresql | 165 | 15 | Fix failure to indent nodes separated by whitespace, and ensure that a trailing newline is not added.
* Do not ignore a concurrent `REINDEX CONCURRENTLY` that is working on an index with predicates or expressions (Michail Nikolaev) [§](https://postgr.es/c/edb0f6e41)
Normally, `REINDEX CONCURRENTLY` does not need t... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
184450c7-0fdd-5abc-af66-66cf42daf738 | changelog | postgresql | postgresql | 165 | 16 | If an `ORDER BY` item in `SELECT` is a bare identifier, the parser first seeks it as an output column name of the `SELECT`, for SQL92 compatibility. However, ruleutils.c expects the SQL99 interpretation where such a name is an input column name. So it was possible to produce an incorrect display of a view in the (rat... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
7ead2afa-520b-52e2-a4e3-9f8ceb2ac4fc | changelog | postgresql | postgresql | 165 | 17 | This case arose while trying to print references to fields of a RECORD-type output of a subquery when the subquery has been optimized out of the plan altogether (which is possible at least in the case that it has a constant-false `WHERE` condition). Nothing remains in the plan to identify the original field names, so... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
4afa3aa8-f25f-52d3-a688-31ac1d099f44 | changelog | postgresql | postgresql | 165 | 18 | It is possible for user-defined code that inspects this view to be called while a new cursor is being set up, and if that happens a null pointer dereference would ensue. Avoid the problem by defining the view to exclude incompletely-set-up cursors.
* Fix incorrect output of the `pg_stat_io` view on 32-bit machines (B... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
de699339-0949-590d-853d-8685da06b006 | changelog | postgresql | postgresql | 165 | 19 | * Avoid “unexpected table\_index\_fetch\_tuple call during logical decoding” error while decoding a transaction involving insertion of a column default value (Takeshi Ideriha, Hou Zhijie) [§](https://postgr.es/c/0f0e253db) [§](https://postgr.es/c/0c40d9019)
* Reduce memory consumption of logical decoding (Masahiko Sawa... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
edfbffad-fbea-5d96-8fb5-ca866679dd8d | changelog | postgresql | postgresql | 165 | 20 | * Re-disable sending of stateless (TLSv1.2) session tickets (Daniel Gustafsson) [§](https://postgr.es/c/9333174af)
A previous change to prevent sending of stateful (TLSv1.3) session tickets accidentally re-enabled sending of stateless ones. Thus, while we intended to prevent clients from thinking that TLS session re... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
e4087d77-2199-5e71-9b7d-f4b79aadbba3 | changelog | postgresql | postgresql | 165 | 21 | * Fix behavior of stable functions called from a `CALL` statement's argument list, when the `CALL` is within a PL/pgSQL `EXCEPTION` block (Tom Lane) [§](https://postgr.es/c/25d639eea)
As with a similar fix in our previous quarterly releases, this case allowed such functions to be passed the wrong snapshot, causing t... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
b73746d2-b6cc-580b-ace9-216c04935b4b | changelog | postgresql | postgresql | 165 | 22 | The coding used here rejected trailing whitespace in the option value, unlike other cases. This turns out to be problematic in ecpg's usage, for example.
* Avoid use of `pnstrdup()` in ecpglib (Jacob Champion) [§](https://postgr.es/c/ee2997c67)
That function will call `exit()` on out-of-memory, which is undesirabl... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
985f6d6d-5cbc-5035-abfe-db73d7b97d7c | changelog | postgresql | postgresql | 165 | 23 | Instead, treat this the same as an interval of zero (no wait between executions).
* Fix pg\_dump's handling of identity sequences that have persistence different from their owning table's persistence (Tom Lane) [§](https://postgr.es/c/b8b175a4c)
Since v15, it's been possible to set an identity sequence to be LOGGE... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
bcd66845-67fe-592e-b86e-0bab118dba15 | changelog | postgresql | postgresql | 165 | 24 | This was the intention to begin with, but a coding error caused the source history to always print as empty.
* Avoid trying to reindex temporary tables and indexes in vacuumdb and in parallel reindexdb (VaibhaveS, Michael Paquier, Fujii Masao, Nathan Bossart) [§](https://postgr.es/c/1ea4d9c00) [§](https://postgr.es/c... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
87fccc78-28ad-591e-836d-9f33d595164d | changelog | postgresql | postgresql | 165 | 25 | When using JIT compilation on ARM platforms, the generated code could not support relocation distances exceeding 32 bits, allowing unlucky placement of generated code to cause server crashes on large-memory systems.
* Fix a few places that assumed that process start time (represented as a `time_t`) will fit into a `l... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
670c4732-e91c-544a-955e-0a6dd2bfe04e | changelog | postgresql | postgresql | 165 | 26 | This tzdata release changes the old System-V-compatibility zone names to duplicate the corresponding geographic zones; for example `PST8PDT` is now an alias for `America/Los_Angeles`. The main visible consequence is that for timestamps before the introduction of standardized time zones, the zone is considered to repr... | large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
6c8b56fe-7e71-5a57-8590-d392befe2272 | changelog | postgresql | postgresql | 165 | 27 | | E.6. Release 16.6 | [Home](index.html "PostgreSQL 16.11 Documentation") | E.8. Release 16.4 |
[Previous](/docs/release/16.4/)
[Return to the Release Notes Archive](/docs/release/)
[Next](/docs/release/16.6/)
| large_dataset/raw/changelog/postgresql_releases/postgresql_165.md |
bd25df37-d649-5e11-90c9-8dad60a84a98 | changelog | postgresql | postgresql | 166 | 0 | # Release Notes
Source: https://www.postgresql.org/docs/release/16.6/
Version: 16.6
## PostgreSQL 16.6
| E.6. Release 16.6 | | | | |
| --- | --- | --- | --- | --- |
| [Prev](release-16-7.html "E.5. Release 16.7") | [Up](release.html "Appendix E. Release Notes") | Appendix E. Release Notes | [Home](index.html "Postgr... | large_dataset/raw/changelog/postgresql_releases/postgresql_166.md |
23d94352-3bcc-5d76-8d7d-52c5e5f54272 | changelog | postgresql | postgresql | 166 | 1 | ### E.6.2. Changes [#](#RELEASE-16-6-CHANGES)
* Repair ABI break for extensions that work with struct `ResultRelInfo` (Tom Lane) [§](https://postgr.es/c/ee33d5847)
Last week's minor releases unintentionally broke binary compatibility with timescaledb and several other extensions. Restore the affected structure to i... | large_dataset/raw/changelog/postgresql_releases/postgresql_166.md |
abaca2fc-9f69-514f-baab-9d8ba4bd8449 | changelog | postgresql | postgresql | 166 | 2 | Previously, restarting logical replication could sometimes cause the slot's restart point to be recomputed as an older value than had previously been advertised in `pg_replication_slots`. This is bad, since for example WAL files might have been removed on the basis of the later `restart_lsn` value, in which case repl... | large_dataset/raw/changelog/postgresql_releases/postgresql_166.md |
586d26fc-765a-546a-81e8-27fa2106ea2a | changelog | postgresql | postgresql | 166 | 3 | * Fix race conditions associated with dropping shared statistics entries (Kyotaro Horiguchi, Michael Paquier) [§](https://postgr.es/c/afa20845d)
These bugs could lead to loss of statistics data, assertion failures, or “can only drop stats once” errors.
* Count index scans in `contrib/bloom` indexes in the statistics... | large_dataset/raw/changelog/postgresql_releases/postgresql_166.md |
e3ff95f8-ec5d-5403-9aad-63a70d97d39f | changelog | postgresql | postgresql | 166 | 4 | | [Prev](release-16-7.html "E.5. Release 16.7") | [Up](release.html "Appendix E. Release Notes") | [Next](release-16-5.html "E.7. Release 16.5") |
| E.5. Release 16.7 | [Home](index.html "PostgreSQL 16.11 Documentation") | E.7. Release 16.5 |
[Previous](/docs/release/16.5/)
[Return to the Release Notes Archive](/docs... | large_dataset/raw/changelog/postgresql_releases/postgresql_166.md |
e02601f2-c2c7-55c3-a534-72297b832824 | changelog | postgresql | postgresql | 167 | 0 | # Release Notes
Source: https://www.postgresql.org/docs/release/16.7/
Version: 16.7
## PostgreSQL 16.7
| E.5. Release 16.7 | | | | |
| --- | --- | --- | --- | --- |
| [Prev](release-16-8.html "E.4. Release 16.8") | [Up](release.html "Appendix E. Release Notes") | Appendix E. Release Notes | [Home](index.html "Postgr... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
c1d29b37-1b06-56ff-8fdf-426d1ccc88f0 | changelog | postgresql | postgresql | 167 | 1 | ### E.5.2. Changes [#](#RELEASE-16-7-CHANGES)
* Harden `PQescapeString` and allied functions against invalidly-encoded input strings (Andres Freund, Noah Misch) [§](https://postgr.es/c/92e4170f4) [§](https://postgr.es/c/6e05b195d) [§](https://postgr.es/c/56aa2dcdd) [§](https://postgr.es/c/01784793f) [§](https://postgr... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
cc435863-dc0e-5106-810d-9f96fefe4334 | changelog | postgresql | postgresql | 167 | 2 | The purpose of this change is to guard against SQL-injection attacks that are possible if one of these functions is used to quote crafted input. There is no hazard when the resulting string is sent directly to a PostgreSQL server (which would check its encoding anyway), but there is a risk when it is passed through p... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
55093773-3f4e-5eb3-b502-c7ff05edc0e0 | changelog | postgresql | postgresql | 167 | 3 | The PostgreSQL Project thanks Stephen Fewer for reporting this problem. (CVE-2025-1094)
* Exclude parallel workers from connection privilege checks and limits (Tom Lane) [§](https://postgr.es/c/41a252c2c)
Do not check `datallowconn`, `rolcanlogin`, and `ACL_CONNECT` privileges when starting a parallel worker, inst... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
b9944ccb-a50b-5a37-966a-40def2474ab5 | changelog | postgresql | postgresql | 167 | 4 | * Fix possible re-use of stale results in window aggregates (David Rowley) [§](https://postgr.es/c/c1d6506ac)
A window aggregate with a “run condition” optimization and a pass-by-reference result type might incorrectly return the result from the previous partition instead of performing a fresh calculation.
* Keep `T... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
5a3b2d1a-9ac0-5edc-9e8f-b486cdbad952 | changelog | postgresql | postgresql | 167 | 5 | * Fix data corruption when relation truncation fails (Thomas Munro) [§](https://postgr.es/c/ba02d24ba) [§](https://postgr.es/c/c957d7444) [§](https://postgr.es/c/9defaaa1d)
The filesystem calls needed to perform relation truncation could fail, leaving inconsistent state on disk (for example, effectively reviving del... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
692acf69-a69d-5f90-8bc1-be32a2b07a1e | changelog | postgresql | postgresql | 167 | 6 | * Avoid possibly losing an update of `pg_database`.`datfrozenxid` when `VACUUM` runs concurrently with a `REASSIGN OWNED` that changes that database's owner (Kirill Reshke) [§](https://postgr.es/c/5d94aa4dc)
* Fix incorrect `tg_updatedcols` values passed to `AFTER UPDATE` triggers (Tom Lane) [§](https://postgr.es/c/8c5... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
00e3945c-965a-5a57-bb8f-94beb3807bb0 | changelog | postgresql | postgresql | 167 | 7 | In common cases, foreign keys are defined on a partitioned table's top level; but if instead one is defined on a partition and references a partitioned table, and the referencing partition is detached, the relevant `pg_constraint` entries were updated incorrectly. This led to errors like “could not find ON INSERT che... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
7140e9b3-0e38-5040-872e-63d922999557 | changelog | postgresql | postgresql | 167 | 8 | Previously we ignored collations when deciding if it's safe to merge `UNION` steps into a single N-way `UNION` operation. This was arguably valid before the introduction of nondeterministic collations, but it's not anymore, since the collation in use can affect the definition of uniqueness.
* Prevent “wrong varnullin... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
59d14b40-7cb5-5fb0-a526-ba9464c39529 | changelog | postgresql | postgresql | 167 | 9 | * Allow dshash tables to grow past 1GB (Matthias van de Meent) [§](https://postgr.es/c/2a7402322)
This avoids errors like “invalid DSA memory alloc request size”. The case can occur for example in transactions that process several million tables.
* Avoid possible integer overflow in `bringetbitmap()` (James Hunter, ... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
8f0065b8-5cfc-5214-8c97-30c6ac32b398 | changelog | postgresql | postgresql | 167 | 10 | This would happen when the record's continuation is on a page that needs to be read from a different WAL source.
* Fix unintended promotion of FATAL errors to PANIC during early process startup (Noah Misch) [§](https://postgr.es/c/ac4a2b403)
This fixes some unlikely cases that would result in “PANIC: proc\_exit() ... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
771b5fd3-2b6c-512b-9e13-d88bc692f3fb | changelog | postgresql | postgresql | 167 | 11 | In some cases a data type could be dropped while references to its OID still remain in `pg_amop` or `pg_amproc`. While that caused no immediate issues, an attempt to drop the owning operator family would fail, and pg\_dump would produce bogus output when dumping the operator family. This fix causes creation and modif... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
397dd784-51d3-5bf5-86d5-ce05c8c2536c | changelog | postgresql | postgresql | 167 | 12 | * Avoid integer overflow while testing `wal_skip_threshold` condition (Tom Lane) [§](https://postgr.es/c/f7a08b6e9)
A transaction that created a very large relation could mistakenly decide to ensure durability by copying the relation into WAL instead of fsync'ing it, thereby negating the point of `wal_skip_threshold... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
0bd0bb88-6431-512a-9db6-7cf8de971a0f | changelog | postgresql | postgresql | 167 | 13 | This could occur as a consequence of inconsistency about the default setting of `-moutline-atomics` between gcc and clang. At least Debian and Ubuntu are known to ship gcc and clang compilers that target armv8-a but differ on the use of outline atomics by default.
* Fix assertion failure in `WITH RECURSIVE ... UNION`... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
0431239f-b6ac-55f6-afdf-ff75860d53c8 | changelog | postgresql | postgresql | 167 | 14 | The equality function could modify or delete the object if it's given a read-write pointer, which would be bad if we decide to return it as the `NULLIF()` result. There is probably no problem with any built-in equality function, but it's easy to demonstrate a failure with one coded in PL/pgSQL.
* Ensure that expressi... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
79edbba6-e0ae-567d-9feb-ceffaf2f9784 | changelog | postgresql | postgresql | 167 | 15 | * Fix PL/Tcl to compile with Tcl 9 (Peter Eisentraut) [§](https://postgr.es/c/07c77803c)
* In the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables (Tom Lane) [§](https://postgr.es/c/cca34f68c)
* In ecpg, fix compile-time warnings about unsupported use of `COPY ... FROM STDI... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
55f1d362-e904-5a43-bbd9-4bc2b4c7942a | changelog | postgresql | postgresql | 167 | 16 | This error could lead to misbehavior when using the `-T` option in pgbench or the `\watch` command in psql, due to interrupted system calls not being resumed as expected.
* Fix misexecution of some nested `\if` constructs in pgbench (Michail Nikolaev) [§](https://postgr.es/c/076b09123)
An `\if` command appearing w... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
5e876b02-5067-5dfc-a06f-322019bc9972 | changelog | postgresql | postgresql | 167 | 17 | * Fix possible crash in pg\_dump with identity sequences attached to tables that are extension members (Tom Lane) [§](https://postgr.es/c/782cc1aa3)
* Fix memory leak in pg\_restore with zstd-compressed data (Tom Lane) [§](https://postgr.es/c/8cfff087b)
The leak was per-decompression-operation, so would be most noti... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
e94e28bb-0696-51d5-831e-ba693412dacd | changelog | postgresql | postgresql | 167 | 18 | In particular, this restores their usability in contexts like generated columns, for which PostgreSQL v17 restricts the search path on security grounds. We have received reports of databases failing to be upgraded to v17 because of that. This patch has been included in v16 to provide a workaround: updating the `earth... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
603ab719-4079-5f76-9b3d-844d2b5d3cd0 | changelog | postgresql | postgresql | 167 | 19 | * In Windows builds using meson, ensure all libcommon and libpgport functions are exported (Vladlen Popolitov, Heikki Linnakangas) [§](https://postgr.es/c/4e0d71ff2) [§](https://postgr.es/c/643efb18b)
This fixes “unresolved external symbol” build errors for extensions.
* Fix meson configuration process to correctly ... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
cd4e210d-e22e-5814-9d7d-004729d3e70e | changelog | postgresql | postgresql | 167 | 20 | * Update time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines (Tom Lane) [§](https://postgr.es/c/d62403c51)
---
| | | |
| --- | --- | --- |
| [Prev](release-16-8.html "E.4. Release 16.8") | [Up](release.html "Appendix E. Release Notes") | [Ne... | large_dataset/raw/changelog/postgresql_releases/postgresql_167.md |
f7387527-918a-5f1c-9f57-4dc72c16841c | changelog | postgresql | postgresql | 168 | 0 | # Release Notes
Source: https://www.postgresql.org/docs/release/16.8/
Version: 16.8
## PostgreSQL 16.8
| E.4. Release 16.8 | | | | |
| --- | --- | --- | --- | --- |
| [Prev](release-16-9.html "E.3. Release 16.9") | [Up](release.html "Appendix E. Release Notes") | Appendix E. Release Notes | [Home](index.html "Postgr... | large_dataset/raw/changelog/postgresql_releases/postgresql_168.md |
d1c591c9-0e67-5ea5-9817-609a29489449 | changelog | postgresql | postgresql | 168 | 1 | ### E.4.2. Changes [#](#RELEASE-16-8-CHANGES)
* Improve behavior of libpq's quoting functions (Andres Freund, Tom Lane) [§](https://postgr.es/c/111f4dd27) [§](https://postgr.es/c/991a60a9f) [§](https://postgr.es/c/644b7d686)
The changes made for CVE-2025-1094 had one serious oversight: `PQescapeLiteral()` and `PQes... | large_dataset/raw/changelog/postgresql_releases/postgresql_168.md |
d5c0ea45-00b1-531e-9099-2c7c8e3872f8 | changelog | postgresql | postgresql | 168 | 2 | * Fix meson build system to correctly detect availability of the `bsd_auth.h` system header (Nazir Bilal Yavuz) [§](https://postgr.es/c/01cdb98e4)
---
| | | |
| --- | --- | --- |
| [Prev](release-16-9.html "E.3. Release 16.9") | [Up](release.html "Appendix E. Release Notes") | [Next](release-16-7.html "E.5. Releas... | large_dataset/raw/changelog/postgresql_releases/postgresql_168.md |
6180c489-7e58-5f3a-89bf-2987c69f11ad | changelog | postgresql | postgresql | 169 | 0 | # Release Notes
Source: https://www.postgresql.org/docs/release/16.9/
Version: 16.9
## PostgreSQL 16.9
| E.3. Release 16.9 | | | | |
| --- | --- | --- | --- | --- |
| [Prev](release-16-10.html "E.2. Release 16.10") | [Up](release.html "Appendix E. Release Notes") | Appendix E. Release Notes | [Home](index.html "Post... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
3c60d68e-9b9c-5b8a-a5d2-6a72179d57b3 | changelog | postgresql | postgresql | 169 | 1 | However, if you have any self-referential foreign key constraints on partitioned tables, it may be necessary to recreate those constraints to ensure that they are being enforced correctly. See the second changelog entry below.
Also, if you have any BRIN bloom indexes, it may be advisable to reindex them after updating... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
a993a490-230c-53ae-986f-ca295f5ff00e | changelog | postgresql | postgresql | 169 | 2 | * Handle self-referential foreign keys on partitioned tables correctly (Álvaro Herrera) [§](https://postgr.es/c/1817d62ec)
Creating or attaching partitions failed to make the required catalog entries for a foreign-key constraint, if the table referenced by the constraint was the same partitioned table. This resulted... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
1571478e-d166-5b52-a589-b158acd2fbf2 | changelog | postgresql | postgresql | 169 | 3 | The code failed to account for decompression results not being identical to the input objects, which would result in failure to add some of the data to the merged summary, leading to missed rows in index searches.
This mistake was present back to v14 where BRIN bloom indexes were introduced, but this code path was... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
ef0d9c3c-8707-563a-9333-59bd66037bf2 | changelog | postgresql | postgresql | 169 | 4 | * Prevent failure in `INSERT` commands when the table has a `GENERATED` column of a domain data type and the domain's constraints disallow null values (Jian He) [§](https://postgr.es/c/f04e0faa3)
Constraint failure was reported even if the generation expression produced a perfectly okay result.
* Correctly process r... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
6bc91784-bde5-5408-b9ae-72cb41a8b8bc | changelog | postgresql | postgresql | 169 | 5 | * Fix `ARRAY(subquery)` and `ARRAY[expression, ...]` constructs to produce sane results when the input is of type `int2vector` or `oidvector` (Tom Lane) [§](https://postgr.es/c/0405982c7)
This patch restores the behavior that existed before PostgreSQL 9.5: the result is of type `int2vector[]` or `oidvector[]`.
* Fix... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
2523faae-8e09-5d88-88af-282bd318661d | changelog | postgresql | postgresql | 169 | 6 | * Repair misbehavior when there are duplicate column names in a foreign key constraint's `ON DELETE SET DEFAULT` or `SET NULL` action (Tom Lane) [§](https://postgr.es/c/fb3a77fd9)
* Improve the error message for disallowed attempts to alter the properties of a foreign key constraint (Álvaro Herrera) [§](https://postgr.... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
3ba39f72-0b28-51d4-80e0-d13228bf30e6 | changelog | postgresql | postgresql | 169 | 7 | If there is `ORDER BY` or `DISTINCT`, we consider pre-sorting the aggregate input values rather than doing the sort within the Agg plan node. But this is problematic if the aggregate inputs include expressions that could fail (for example, a division where some of the input divisors could be zero) and there is a `FIL... | large_dataset/raw/changelog/postgresql_releases/postgresql_169.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.