Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
E.47. Release 12.3
Prev UpAppendix E. Release NotesHome Next

E.47. Release 12.3

Release date: 2020-05-14

This release contains a variety of fixes from 12.2. For information about new features in major release 12, seeSection E.50.

E.47.1. Migration to Version 12.3

A dump/restore is not required for those running 12.X.

However, if you are upgrading from a version earlier than 12.2, seeSection E.48.

E.47.2. Changes

  • Fix possible failure withGENERATED columns (David Rowley)§

    If aGENERATED column's value is an exact copy of another column of the table (and it is a pass-by-reference data type), it was possible to crash or insert corrupted data into the table. While it would be rather pointless for aGENERATED expression to just duplicate another column, an expression using a function that sometimes returns its input unchanged could create the situation.

  • Handle inheritance of generated columns better (Peter Eisentraut)§

    When a table column is inherited duringCREATE TABLE ... INHERITS, disallow changing any generation properties when the parent column is already markedGENERATED; but allow a child column to be markedGENERATED when its parent is not.

  • Fix cross-column references inCREATE TABLE LIKE INCLUDING GENERATED (Peter Eisentraut)§

    CREATE TABLE ... LIKE failed when trying to copy aGENERATED expression that references a physically-later column.

  • PropagateALTER TABLE ... SET STORAGE to indexes (Peter Eisentraut)§

    Non-expression index columns have always copied theattstorage property of their table column at creation. Update them whenALTER TABLE ... SET STORAGE is done, to maintain consistency.

  • Preserve theindisclustered setting of indexes rewritten byALTER TABLE (Amit Langote, Justin Pryzby)§

    Previously,ALTER TABLE lost track of which index had been used forCLUSTER.

  • Preserve the replica identity properties of indexes rewritten byALTER TABLE (Quan Zongliang, Peter Eisentraut)§

  • Preserve theindisclustered setting of indexes rebuilt byREINDEX CONCURRENTLY (Justin Pryzby)§

  • Lock objects sooner duringDROP OWNED BY (Álvaro Herrera)§

    This avoids failures in race-condition cases where another session is deleting some of the same objects.

  • Fix error-case processing forCREATE ROLE ... IN ROLE (Andrew Gierth)§

    Some error cases would be reported asunexpected node type or the like, instead of the intended message.

  • Ensure that when a partition is detached, any triggers cloned from its formerly-parent table are removed (Justin Pryzby)§

  • Fix crash whenCOLLATE is applied to a non-collatable type in a partition bound expression (Dmitry Dolgov)§

  • Ensure that unique indexes over partitioned tables match the equality semantics of the partitioning key (Guancheng Luo)§

    This would only be an issue with index opclasses that have unusual notions of equality, but it's wrong in theory, so check.

  • Ensure that members of thepg_read_all_stats role can read all statistics views, as expected (Magnus Hagander)§

    The functions underlying thepg_stat_progress_* views had not gotten this memo.

  • Repair performance regression ininformation_schema.triggers view (Tom Lane)§

    This patch redefines that view so that an outerWHERE clause constraining the table name can be pushed down into the view, allowing its calculations to be done only for triggers belonging to the table of interest rather than all triggers in the database. In a database with many triggers this would make a significant speed difference for queries of that form. Since things worked that way before v11, this is a potential performance regression. Users who find this to be a problem can fix it by replacing the view definition (or, perhaps, just deleting and reinstalling the wholeinformation_schema schema).

  • Repair performance regression in floating point overflow/underflow detection (Emre Hasegeli)§

    Previous refactoring had resulted inisinf() being called extra times in some hot code paths.

  • Fix full text search to handle NOT above a phrase search correctly (Tom Lane)§

    Queries such as!(foo<->bar) failed to find matching rows when implemented as a GiST or GIN index search.

  • Fix full text search for cases where a phrase search includes an item with both prefix matching and a weight restriction (Tom Lane)§

  • Fixts_headline() to make better headline selections when working with phrase queries (Tom Lane)§§§

  • Fix bugs ingin_fuzzy_search_limit processing (Adé Heyward, Tom Lane)§

    A small value ofgin_fuzzy_search_limit could result in unexpected slowness due to unintentionally rescanning the same index page many times. Another code path failed to apply the intended filtering at all, possibly returning too many values.

  • Allow input of typecircle to accept the format(x,y),r as the documentation says it does (David Zhang)§

  • Make theget_bit() andset_bit() functions cope withbytea strings longer than 256MB (Movead Li)§

    Since the bit number argument is onlyint4, it's impossible to use these functions to access bits beyond the first 256MB of a longbytea. We'll widen the argument toint8 in v13, but in the meantime, allow these functions to work on the initial substring of a longbytea.

  • Ignore file-not-found errors inpg_ls_waldir() and allied functions (Tom Lane)§

    This prevents a race condition failure if a file is removed between when we see its directory entry and when we attempt tostat() it.

  • Avoid possibly leaking an open-file descriptor for a directory inpg_ls_dir(),pg_timezone_names(),pg_tablespace_databases(), and allied functions (Justin Pryzby)§§§

  • Fix polymorphic-function type resolution to correctly infer the actual type of ananyarray output when given only ananyrange input (Tom Lane)§

  • Fix server's connection-startup logic for case where a GSSAPI connection is rejected because support is not compiled in, and the client then tries SSL instead (Andrew Gierth)§

    This led to a bogusunsupported frontend protocol failure.

  • Fix memory leakage during GSSAPI encryption (Tom Lane)§

    Both the backend and libpq would leak memory equivalent to the total amount of data sent during the session, if GSSAPI encryption is in use.

  • Fix query-lifespan memory leak for a set-returning function used in a query'sFROM clause (Andres Freund)§

  • Avoid leakage of a hashed subplan's hash tables across multiple executions (Andreas Karlsson, Tom Lane)§

    This mistake could result in severe memory bloat if a query re-executed a hashed subplan enough times.

  • Improve planner's handling of no-op domain coercions (Tom Lane)§

    Fix some cases where a domain coercion that does nothing was not completely removed from expressions.

  • Avoid unlikely crash whenREINDEX is terminated by a session-shutdown signal (Tom Lane)§

  • Prevent printout of possibly-incorrect hash join table statistics inEXPLAIN (Konstantin Knizhnik, Tom Lane, Thomas Munro)§

  • Fix reporting of elapsed time for heap truncation steps inVACUUM VERBOSE (Tatsuhito Kasahara)§

  • Fix possible undercounting of deleted B-tree index pages inVACUUM VERBOSE output (Peter Geoghegan)§

  • Fix wrong bookkeeping for oldest deleted page in a B-tree index (Peter Geoghegan)§§

    This could cause subtly wrong decisions about whenVACUUM can skip an index cleanup scan; although it appears there may be no significant user-visible effects from that.

  • Ensure that TimelineHistoryRead and TimelineHistoryWrite wait states are reported in all code paths that read or write timeline history files (Masahiro Ikeda)§

  • Avoid possibly showingwaiting twice in a process's PS status (Masahiko Sawada)§

  • Avoid race condition whenANALYZE replaces the catalog tuple for extended statistics data (Dean Rasheed)§

  • Remove ill-considered skip ofredundant anti-wraparound vacuums (Michael Paquier)§

    This avoids a corner case where autovacuum could get into a loop of repeatedly trying and then skipping the same vacuum job.

  • Ensure INCLUDE'd columns are always removed from B-tree pivot tuples (Peter Geoghegan)§

    This mistake wasted space in some rare cases, but was otherwise harmless.

  • Cope with invalid TOAST indexes that could be left over after a failedREINDEX CONCURRENTLY (Julien Rouhaud)§

  • Ensure that valid index dependencies are left behind after a failedREINDEX CONCURRENTLY (Michael Paquier)§

    Previously the old index could be left with nopg_depend links at all, so that for example it would not get dropped if the parent table is dropped.

  • Avoid failure if autovacuum tries to access a just-dropped temporary schema (Tom Lane)§

    This hazard only arises if a superuser manually drops a temporary schema; which isn't normal practice, but should work.

  • Avoid premature recycling of WAL segments during crash recovery (Jehan-Guillaume de Rorthais)§§

    WAL segments that become ready to be archived during crash recovery were potentially recycled without being archived.

  • Avoid scanning irrelevant timelines during archive recovery (Kyotaro Horiguchi)§

    This can eliminate many attempts to fetch non-existent WAL files from archive storage, which is helpful if archive access is slow.

  • Remove bogussubtransaction logged without previous top-level txn record error check in logical decoding (Arseny Sher, Amit Kapila)§

    This condition is legitimately reachable in various scenarios, so remove the check.

  • Avoid possible failure after a replication slot copy, due to premature removal of WAL data (Masahiko Sawada, Arseny Sher)§

  • Ensure that a replication slot'sio_in_progress_lock is released in failure code paths (Pavan Deolasee)§§

    This could result in a walsender later becoming stuck waiting for the lock.

  • Ensure that generated columns are correctly handled during updates issued by logical replication (Peter Eisentraut)§

  • Fix race conditions in synchronous standby management (Tom Lane)§

    During a change in thesynchronous_standby_names setting, there was a window in which wrong decisions could be made about whether it is OK to release transactions that are waiting for synchronous commit. Another hazard for similarly wrong decisions existed if a walsender process exited and was immediately replaced by another.

  • Add missing SQLSTATE values to a few error reports (Sawada Masahiko)§

  • Fix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function (Tom Lane)§

  • Fix memory leak inlibpq when usingsslmode=verify-full (Roman Peshkurov)§

    Certificate verification during connection startup could leak some memory. This would become an issue if a client process opened many database connections during its lifetime.

  • Fixecpg to treat an argument of just- as meaningread from stdin on all platforms (Tom Lane)§

  • Fix crash inpsql when attempting to re-establish a failed connection (Michael Paquier)§

  • Allow tab-completion of the filename argument topsql's\gx command (Vik Fearing)§

  • Addpg_dump support forALTER ... DEPENDS ON EXTENSION (Álvaro Herrera)§§§

    pg_dump previously ignored dependencies added this way, causing them to be forgotten during dump/restore orpg_upgrade.

  • Fixpg_dump to dump comments on RLS policy objects (Tom Lane)§

  • Inpg_dump, postpone restore of event triggers till the end (Fabrízio de Royes Mello, Hamid Akhtar, Tom Lane)§§

    This minimizes the risk that an event trigger could interfere with the restoration of other objects.

  • Ensure thatpg_basebackup generates valid tar files (Robert Haas)§

    In some cases a partial block of zeroes would be added to the end of the file. While this seems to be harmless with common versions of tar, it's not OK per the POSIX file format spec.

  • Makepg_checksums skip tablespace subdirectories that belong to a differentPostgreSQL major version (Michael Banck, Bernd Helmle)§

    Such subdirectories don't really belong to our database cluster, and so must not be processed.

  • Ignore temporary copies ofpg_internal.init inpg_checksums and related programs (Michael Paquier)§

  • Fix quoting of--encoding,--lc-ctype and--lc-collate values increatedb utility (Michael Paquier)§§

  • contrib/lo'slo_manage() function crashed if called directly rather than as a trigger (Tom Lane)§

  • Incontrib/ltree, protect against overflow ofltree andlquery length fields (Nikita Glukhov)§

  • Work around failure incontrib/pageinspect'sbt_metap() function when an oldest_xact value exceeds 2^31-1 (Peter Geoghegan)§

    Such XIDs will now be reported as negative integers, which isn't great but it beats throwing an error. v13 will widen the output argument toint8 to provide saner reporting.

  • Fix cache reference leak incontrib/sepgsql (Michael Luo)§

  • On Windows, avoid premature creation of postmaster's log file duringpg_ctl start (Alexander Lakhin)§

    The previous coding could allow the file to be created with permissions that wouldn't allow the postmaster to write on it.

  • Avoid failures when dealing with Unix-style locale names on Windows (Juan José Santamaría Flecha)§

  • On Windows, set console VT100 compatibility mode in programs that supportPG_COLOR colorization (Juan José Santamaría Flecha)§

    Without this, the colorization option doesn't actually work.

  • Stop requiring extra parentheses inereport() calls (Andres Freund, Tom Lane)§

  • Usepkg-config, if available, to locatelibxml2 duringconfigure (Hugh McMaster, Tom Lane, Peter Eisentraut)§

    Ifpkg-config is not present or lacks knowledge oflibxml2, we still queryxml2-config as before.

    This change could break build processes that try to makePostgreSQL use a non-default version oflibxml2 by putting that version'sxml2-config into thePATH. Instead, setXML2_CONFIG to point to the non-defaultxml2-config. That method will work with either older or newerPostgreSQL releases.

  • Fix Makefile dependencies forlibpq andecpg (Dagfinn Ilmari Mannsåker)§

  • In MSVC builds, cope with spaces in the path name for Python (Victor Wagner)§

  • In MSVC builds, fix detection of Visual Studio version to work with more language settings (Andrew Dunstan)§

  • In MSVC builds, use-Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do (Andrew Dunstan)§

  • Update time zone data files totzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai. (Tom Lane)§§§

    The America/Godthab zone has been renamed to America/Nuuk to reflect current English usage; however, the old name remains available as a compatibility link.

    Also, updateinitdb's list of known Windows time zone names to include recent additions, improving the odds that it will correctly translate the system time zone setting on that platform.


Prev Up Next
E.46. Release 12.4 Home E.48. Release 12.2
epubpdf
Go to Postgres Pro Standard 12
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp