Server IP : 103.119.228.120 / Your IP : 18.219.253.199 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/postgresql-9.2.24/html/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Release 9.1.2</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.2.24 Documentation" HREF="index.html"><LINK REL="UP" TITLE="Release Notes" HREF="release.html"><LINK REL="PREVIOUS" TITLE="Release 9.1.3" HREF="release-9-1-3.html"><LINK REL="NEXT" TITLE="Release 9.1.1" HREF="release-9-1-1.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="stylesheet.css"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><META NAME="creation" CONTENT="2017-11-06T22:43:11"></HEAD ><BODY CLASS="SECT1" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="5" ALIGN="center" VALIGN="bottom" ><A HREF="index.html" >PostgreSQL 9.2.24 Documentation</A ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A TITLE="Release 9.1.3" HREF="release-9-1-3.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A HREF="release.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="60%" ALIGN="center" VALIGN="bottom" >Appendix E. Release Notes</TD ><TD WIDTH="20%" ALIGN="right" VALIGN="top" ><A TITLE="Release 9.1.1" HREF="release-9-1-1.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="RELEASE-9-1-2" >E.48. Release 9.1.2</A ></H1 ><DIV CLASS="FORMALPARA" ><P ><B >Release date: </B >2011-12-05</P ></DIV ><P > This release contains a variety of fixes from 9.1.1. For information about new features in the 9.1 major release, see <A HREF="release-9-1.html" >Section E.50</A >. </P ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="AEN118806" >E.48.1. Migration to Version 9.1.2</A ></H2 ><P > A dump/restore is not required for those running 9.1.X. </P ><P > However, a longstanding error was discovered in the definition of the <TT CLASS="LITERAL" >information_schema.referential_constraints</TT > view. If you rely on correct results from that view, you should replace its definition as explained in the first changelog item below. </P ><P > Also, if you use the <TT CLASS="TYPE" >citext</TT > data type, and you upgraded from a previous major release by running <SPAN CLASS="APPLICATION" >pg_upgrade</SPAN >, you should run <TT CLASS="LITERAL" >CREATE EXTENSION citext FROM unpackaged</TT > to avoid collation-related failures in <TT CLASS="TYPE" >citext</TT > operations. The same is necessary if you restore a dump from a pre-9.1 database that contains an instance of the <TT CLASS="TYPE" >citext</TT > data type. If you've already run the <TT CLASS="COMMAND" >CREATE EXTENSION</TT > command before upgrading to 9.1.2, you will instead need to do manual catalog updates as explained in the second changelog item. </P ></DIV ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="AEN118818" >E.48.2. Changes</A ></H2 ><P ></P ><UL ><LI ><P > Fix bugs in <TT CLASS="LITERAL" >information_schema.referential_constraints</TT > view (Tom Lane) </P ><P > This view was being insufficiently careful about matching the foreign-key constraint to the depended-on primary or unique key constraint. That could result in failure to show a foreign key constraint at all, or showing it multiple times, or claiming that it depends on a different constraint than the one it really does. </P ><P > Since the view definition is installed by <SPAN CLASS="APPLICATION" >initdb</SPAN >, merely upgrading will not fix the problem. If you need to fix this in an existing installation, you can (as a superuser) drop the <TT CLASS="LITERAL" >information_schema</TT > schema then re-create it by sourcing <TT CLASS="FILENAME" ><TT CLASS="REPLACEABLE" ><I >SHAREDIR</I ></TT >/information_schema.sql</TT >. (Run <TT CLASS="LITERAL" >pg_config --sharedir</TT > if you're uncertain where <TT CLASS="REPLACEABLE" ><I >SHAREDIR</I ></TT > is.) This must be repeated in each database to be fixed. </P ></LI ><LI ><P > Make <TT CLASS="FILENAME" >contrib/citext</TT >'s upgrade script fix collations of <TT CLASS="TYPE" >citext</TT > columns and indexes (Tom Lane) </P ><P > Existing <TT CLASS="TYPE" >citext</TT > columns and indexes aren't correctly marked as being of a collatable data type during <SPAN CLASS="APPLICATION" >pg_upgrade</SPAN > from a pre-9.1 server, or when a pre-9.1 dump containing the <TT CLASS="TYPE" >citext</TT > type is loaded into a 9.1 server. That leads to operations on these columns failing with errors such as <SPAN CLASS="QUOTE" >"could not determine which collation to use for string comparison"</SPAN >. This change allows them to be fixed by the same script that upgrades the <TT CLASS="TYPE" >citext</TT > module into a proper 9.1 extension during <TT CLASS="LITERAL" >CREATE EXTENSION citext FROM unpackaged</TT >. </P ><P > If you have a previously-upgraded database that is suffering from this problem, and you already ran the <TT CLASS="COMMAND" >CREATE EXTENSION</TT > command, you can manually run (as superuser) the <TT CLASS="COMMAND" >UPDATE</TT > commands found at the end of <TT CLASS="FILENAME" ><TT CLASS="REPLACEABLE" ><I >SHAREDIR</I ></TT >/extension/citext--unpackaged--1.0.sql</TT >. (Run <TT CLASS="LITERAL" >pg_config --sharedir</TT > if you're uncertain where <TT CLASS="REPLACEABLE" ><I >SHAREDIR</I ></TT > is.) There is no harm in doing this again if unsure. </P ></LI ><LI ><P > Fix possible crash during <TT CLASS="COMMAND" >UPDATE</TT > or <TT CLASS="COMMAND" >DELETE</TT > that joins to the output of a scalar-returning function (Tom Lane) </P ><P > A crash could only occur if the target row had been concurrently updated, so this problem surfaced only intermittently. </P ></LI ><LI ><P > Fix incorrect replay of WAL records for GIN index updates (Tom Lane) </P ><P > This could result in transiently failing to find index entries after a crash, or on a hot-standby server. The problem would be repaired by the next <TT CLASS="COMMAND" >VACUUM</TT > of the index, however. </P ></LI ><LI ><P > Fix TOAST-related data corruption during <TT CLASS="LITERAL" >CREATE TABLE dest AS SELECT * FROM src</TT > or <TT CLASS="LITERAL" >INSERT INTO dest SELECT * FROM src</TT > (Tom Lane) </P ><P > If a table has been modified by <TT CLASS="COMMAND" >ALTER TABLE ADD COLUMN</TT >, attempts to copy its data verbatim to another table could produce corrupt results in certain corner cases. The problem can only manifest in this precise form in 8.4 and later, but we patched earlier versions as well in case there are other code paths that could trigger the same bug. </P ></LI ><LI ><P > Fix possible failures during hot standby startup (Simon Riggs) </P ></LI ><LI ><P > Start hot standby faster when initial snapshot is incomplete (Simon Riggs) </P ></LI ><LI ><P > Fix race condition during toast table access from stale syscache entries (Tom Lane) </P ><P > The typical symptom was transient errors like <SPAN CLASS="QUOTE" >"missing chunk number 0 for toast value NNNNN in pg_toast_2619"</SPAN >, where the cited toast table would always belong to a system catalog. </P ></LI ><LI ><P > Track dependencies of functions on items used in parameter default expressions (Tom Lane) </P ><P > Previously, a referenced object could be dropped without having dropped or modified the function, leading to misbehavior when the function was used. Note that merely installing this update will not fix the missing dependency entries; to do that, you'd need to <TT CLASS="COMMAND" >CREATE OR REPLACE</TT > each such function afterwards. If you have functions whose defaults depend on non-built-in objects, doing so is recommended. </P ></LI ><LI ><P > Fix incorrect management of placeholder variables in nestloop joins (Tom Lane) </P ><P > This bug is known to lead to <SPAN CLASS="QUOTE" >"variable not found in subplan target list"</SPAN > planner errors, and could possibly result in wrong query output when outer joins are involved. </P ></LI ><LI ><P > Fix window functions that sort by expressions involving aggregates (Tom Lane) </P ><P > Previously these could fail with <SPAN CLASS="QUOTE" >"could not find pathkey item to sort"</SPAN > planner errors. </P ></LI ><LI ><P > Fix <SPAN CLASS="QUOTE" >"MergeAppend child's targetlist doesn't match MergeAppend"</SPAN > planner errors (Tom Lane) </P ></LI ><LI ><P > Fix index matching for operators with both collatable and noncollatable inputs (Tom Lane) </P ><P > In 9.1.0, an indexable operator that has a non-collatable left-hand input type and a collatable right-hand input type would not be recognized as matching the left-hand column's index. An example is the <TT CLASS="TYPE" >hstore</TT > <TT CLASS="LITERAL" >?</TT > <TT CLASS="TYPE" >text</TT > operator. </P ></LI ><LI ><P > Allow inlining of set-returning SQL functions with multiple OUT parameters (Tom Lane) </P ></LI ><LI ><P > Don't trust deferred-unique indexes for join removal (Tom Lane and Marti Raudsepp) </P ><P > A deferred uniqueness constraint might not hold intra-transaction, so assuming that it does could give incorrect query results. </P ></LI ><LI ><P > Make <CODE CLASS="FUNCTION" >DatumGetInetP()</CODE > unpack inet datums that have a 1-byte header, and add a new macro, <CODE CLASS="FUNCTION" >DatumGetInetPP()</CODE >, that does not (Heikki Linnakangas) </P ><P > This change affects no core code, but might prevent crashes in add-on code that expects <CODE CLASS="FUNCTION" >DatumGetInetP()</CODE > to produce an unpacked datum as per usual convention. </P ></LI ><LI ><P > Improve locale support in <TT CLASS="TYPE" >money</TT > type's input and output (Tom Lane) </P ><P > Aside from not supporting all standard <A HREF="runtime-config-client.html#GUC-LC-MONETARY" ><TT CLASS="VARNAME" >lc_monetary</TT ></A > formatting options, the input and output functions were inconsistent, meaning there were locales in which dumped <TT CLASS="TYPE" >money</TT > values could not be re-read. </P ></LI ><LI ><P > Don't let <A HREF="runtime-config-compatible.html#GUC-TRANSFORM-NULL-EQUALS" ><TT CLASS="VARNAME" >transform_null_equals</TT ></A > affect <TT CLASS="LITERAL" >CASE foo WHEN NULL ...</TT > constructs (Heikki Linnakangas) </P ><P > <TT CLASS="VARNAME" >transform_null_equals</TT > is only supposed to affect <TT CLASS="LITERAL" >foo = NULL</TT > expressions written directly by the user, not equality checks generated internally by this form of <TT CLASS="LITERAL" >CASE</TT >. </P ></LI ><LI ><P > Change foreign-key trigger creation order to better support self-referential foreign keys (Tom Lane) </P ><P > For a cascading foreign key that references its own table, a row update will fire both the <TT CLASS="LITERAL" >ON UPDATE</TT > trigger and the <TT CLASS="LITERAL" >CHECK</TT > trigger as one event. The <TT CLASS="LITERAL" >ON UPDATE</TT > trigger must execute first, else the <TT CLASS="LITERAL" >CHECK</TT > will check a non-final state of the row and possibly throw an inappropriate error. However, the firing order of these triggers is determined by their names, which generally sort in creation order since the triggers have auto-generated names following the convention <SPAN CLASS="QUOTE" >"RI_ConstraintTrigger_NNNN"</SPAN >. A proper fix would require modifying that convention, which we will do in 9.2, but it seems risky to change it in existing releases. So this patch just changes the creation order of the triggers. Users encountering this type of error should drop and re-create the foreign key constraint to get its triggers into the right order. </P ></LI ><LI ><P > Fix <TT CLASS="LITERAL" >IF EXISTS</TT > to work correctly in <TT CLASS="COMMAND" >DROP OPERATOR FAMILY</TT > (Robert Haas) </P ></LI ><LI ><P > Disallow dropping of an extension from within its own script (Tom Lane) </P ><P > This prevents odd behavior in case of incorrect management of extension dependencies. </P ></LI ><LI ><P > Don't mark auto-generated types as extension members (Robert Haas) </P ><P > Relation rowtypes and automatically-generated array types do not need to have their own extension membership entries in <TT CLASS="STRUCTNAME" >pg_depend</TT >, and creating such entries complicates matters for extension upgrades. </P ></LI ><LI ><P > Cope with invalid pre-existing <TT CLASS="VARNAME" >search_path</TT > settings during <TT CLASS="COMMAND" >CREATE EXTENSION</TT > (Tom Lane) </P ></LI ><LI ><P > Avoid floating-point underflow while tracking buffer allocation rate (Greg Matthews) </P ><P > While harmless in itself, on certain platforms this would result in annoying kernel log messages. </P ></LI ><LI ><P > Prevent autovacuum transactions from running in serializable mode (Tom Lane) </P ><P > Autovacuum formerly used the cluster-wide default transaction isolation level, but there is no need for it to use anything higher than READ COMMITTED, and using SERIALIZABLE could result in unnecessary delays for other processes. </P ></LI ><LI ><P > Ensure walsender processes respond promptly to <SPAN CLASS="SYSTEMITEM" >SIGTERM</SPAN > (Magnus Hagander) </P ></LI ><LI ><P > Exclude <TT CLASS="FILENAME" >postmaster.opts</TT > from base backups (Magnus Hagander) </P ></LI ><LI ><P > Preserve configuration file name and line number values when starting child processes under Windows (Tom Lane) </P ><P > Formerly, these would not be displayed correctly in the <TT CLASS="STRUCTNAME" >pg_settings</TT > view. </P ></LI ><LI ><P > Fix incorrect field alignment in <SPAN CLASS="APPLICATION" >ecpg</SPAN >'s SQLDA area (Zoltan Boszormenyi) </P ></LI ><LI ><P > Preserve blank lines within commands in <SPAN CLASS="APPLICATION" >psql</SPAN >'s command history (Robert Haas) </P ><P > The former behavior could cause problems if an empty line was removed from within a string literal, for example. </P ></LI ><LI ><P > Avoid platform-specific infinite loop in <SPAN CLASS="APPLICATION" >pg_dump</SPAN > (Steve Singer) </P ></LI ><LI ><P > Fix compression of plain-text output format in <SPAN CLASS="APPLICATION" >pg_dump</SPAN > (Adrian Klaver and Tom Lane) </P ><P > <SPAN CLASS="APPLICATION" >pg_dump</SPAN > has historically understood <TT CLASS="LITERAL" >-Z</TT > with no <TT CLASS="LITERAL" >-F</TT > switch to mean that it should emit a gzip-compressed version of its plain text output. Restore that behavior. </P ></LI ><LI ><P > Fix <SPAN CLASS="APPLICATION" >pg_dump</SPAN > to dump user-defined casts between auto-generated types, such as table rowtypes (Tom Lane) </P ></LI ><LI ><P > Fix missed quoting of foreign server names in <SPAN CLASS="APPLICATION" >pg_dump</SPAN > (Tom Lane) </P ></LI ><LI ><P > Assorted fixes for <SPAN CLASS="APPLICATION" >pg_upgrade</SPAN > (Bruce Momjian) </P ><P > Handle exclusion constraints correctly, avoid failures on Windows, don't complain about mismatched toast table names in 8.4 databases. </P ></LI ><LI ><P > In PL/pgSQL, allow foreign tables to define row types (Alexander Soudakov) </P ></LI ><LI ><P > Fix up conversions of PL/Perl functions' results (Alex Hunsaker and Tom Lane) </P ><P > Restore the pre-9.1 behavior that PL/Perl functions returning <TT CLASS="TYPE" >void</TT > ignore the result value of their last Perl statement; 9.1.0 would throw an error if that statement returned a reference. Also, make sure it works to return a string value for a composite type, so long as the string meets the type's input format. In addition, throw errors for attempts to return Perl arrays or hashes when the function's declared result type is not an array or composite type, respectively. (Pre-9.1 versions rather uselessly returned strings like <TT CLASS="LITERAL" >ARRAY(0x221a9a0)</TT > or <TT CLASS="LITERAL" >HASH(0x221aa90)</TT > in such cases.) </P ></LI ><LI ><P > Ensure PL/Perl strings are always correctly UTF8-encoded (Amit Khandekar and Alex Hunsaker) </P ></LI ><LI ><P > Use the preferred version of <SPAN CLASS="APPLICATION" >xsubpp</SPAN > to build PL/Perl, not necessarily the operating system's main copy (David Wheeler and Alex Hunsaker) </P ></LI ><LI ><P > Correctly propagate SQLSTATE in PL/Python exceptions (Mika Eloranta and Jan Urbanski) </P ></LI ><LI ><P > Do not install PL/Python extension files for Python major versions other than the one built against (Peter Eisentraut) </P ></LI ><LI ><P > Change all the <TT CLASS="FILENAME" >contrib</TT > extension script files to report a useful error message if they are fed to <SPAN CLASS="APPLICATION" >psql</SPAN > (Andrew Dunstan and Tom Lane) </P ><P > This should help teach people about the new method of using <TT CLASS="COMMAND" >CREATE EXTENSION</TT > to load these files. In most cases, sourcing the scripts directly would fail anyway, but with harder-to-interpret messages. </P ></LI ><LI ><P > Fix incorrect coding in <TT CLASS="FILENAME" >contrib/dict_int</TT > and <TT CLASS="FILENAME" >contrib/dict_xsyn</TT > (Tom Lane) </P ><P > Some functions incorrectly assumed that memory returned by <CODE CLASS="FUNCTION" >palloc()</CODE > is guaranteed zeroed. </P ></LI ><LI ><P > Remove <TT CLASS="FILENAME" >contrib/sepgsql</TT > tests from the regular regression test mechanism (Tom Lane) </P ><P > Since these tests require root privileges for setup, they're impractical to run automatically. Switch over to a manual approach instead, and provide a testing script to help with that. </P ></LI ><LI ><P > Fix assorted errors in <TT CLASS="FILENAME" >contrib/unaccent</TT >'s configuration file parsing (Tom Lane) </P ></LI ><LI ><P > Honor query cancel interrupts promptly in <CODE CLASS="FUNCTION" >pgstatindex()</CODE > (Robert Haas) </P ></LI ><LI ><P > Fix incorrect quoting of log file name in macOS start script (Sidar Lopez) </P ></LI ><LI ><P > Revert unintentional enabling of <TT CLASS="LITERAL" >WAL_DEBUG</TT > (Robert Haas) </P ><P > Fortunately, as debugging tools go, this one is pretty cheap; but it's not intended to be enabled by default, so revert. </P ></LI ><LI ><P > Ensure VPATH builds properly install all server header files (Peter Eisentraut) </P ></LI ><LI ><P > Shorten file names reported in verbose error messages (Peter Eisentraut) </P ><P > Regular builds have always reported just the name of the C file containing the error message call, but VPATH builds formerly reported an absolute path name. </P ></LI ><LI ><P > Fix interpretation of Windows timezone names for Central America (Tom Lane) </P ><P > Map <SPAN CLASS="QUOTE" >"Central America Standard Time"</SPAN > to <TT CLASS="LITERAL" >CST6</TT >, not <TT CLASS="LITERAL" >CST6CDT</TT >, because DST is generally not observed anywhere in Central America. </P ></LI ><LI ><P > Update time zone data files to <SPAN CLASS="APPLICATION" >tzdata</SPAN > release 2011n for DST law changes in Brazil, Cuba, Fiji, Palestine, Russia, and Samoa; also historical corrections for Alaska and British East Africa. </P ></LI ></UL ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="release-9-1-3.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="release-9-1-1.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Release 9.1.3</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="release.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Release 9.1.1</TD ></TR ></TABLE ></DIV ></BODY ></HTML >