]> granicus.if.org Git - postgresql/blob - doc/src/sgml/release.sgml
Restore information schema upgrade instructions of Peter.
[postgresql] / doc / src / sgml / release.sgml
1 <!--
2 $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.248 2003/12/17 07:07:00 momjian Exp $
3 -->
4
5 <appendix id="release">
6  <title>Release Notes</title>
7
8   <sect1 id="release-7-4-1">
9    <title>Release 7.4.1</title>
10
11    <note>
12    <title>Release date</title>
13    <simpara>2003-12-15</simpara>
14    </note>
15
16    <para>
17     This has a variety of fixes from 7.4.
18    </para>
19
20
21    <sect2>
22     <title>Migration to version 7.4</title>
23
24     <para>
25      A dump/restore is <emphasis>not</emphasis> required for those
26      running 7.4.
27     </para>
28
29     <para>
30      If you want to install the fixes in the information schema
31      concerning the bit types, you need to reload the information
32      schema.  This is either accomplished by initializing a new cluster
33      by running <command>initdb</command>, or by running the following
34      sequence of SQL commands in each database (ideally including
35      <literal>template1</literal>) as a superuser in
36      <application>psql</application>, after installing the new release:
37 <programlisting>
38 DROP SCHEMA information_schema CASCADE;
39 \i /usr/local/pgsql/share/information_schema.sql
40 </programlisting>
41      Substitute your installation path in the second command.
42     </para>
43
44    </sect2>
45
46    <sect2>
47     <title>Changes</title>
48
49 <para>Changes as of 2003-12-14</para>
50 <itemizedlist>
51 <listitem><para>Fixed bug in CREATE SCHEMA parsing (Michael)</para></listitem>
52 <listitem><para>Fix --enable-thread-safety compile error when used with --with-perl (Peter)</para></listitem>
53 <listitem><para>Fix for subqueries that used hash joins (Tom)</para>
54 <para>
55     Certain subqueries that used hash joins would crash because of
56     improperly shared structures.
57 </para></listitem>
58 <listitem><para>Fix free space map compaction bug (Tom)</para>
59 <para>
60     This fixes a bug where compaction of the free space map could lead
61     to a database server shutdown.
62 </para>
63 </listitem>
64 <listitem><para>Fix for Borland compiler build of libpq (Bruce)</para></listitem>
65 <listitem><para>Fix netmask() and hostmask() to return the maximum-length masklen (Tom)</para>
66 <para>
67     Fix these functions to return values consistent with pre-7.4
68     releases.
69 </para>
70 </listitem>
71 <listitem><para>Several /contrib/pg_autovacuum fixes</para>
72 <para>
73     Fixes include improper variable initialization, missing vacuum after
74     TRUNCATE, and duration computation overflow for long vacuums.
75 </para>
76 </listitem>
77 <listitem><para>Allow compile of /contrib/cube under Cygwin (Jason Tishler)</para></listitem>
78 <listitem><para>Fix Solaris use of password file when no passwords are defined (Tom)</para>
79 <para>
80     Fix crash on Solaris caused by use of any type of password
81     authentication when no passwords were defined.
82 </para>
83 </listitem>
84 <listitem><para>JDBC fix for thread problems, other fixes</para></listitem>
85 <listitem><para>Fix for index bytea lookups (Joe)</para></listitem>
86 <listitem><para>Fix information schema for bit data types (Peter)</para>
87 <para>
88     To enable this fix, an initdb is required.
89 </para>
90 </listitem>
91 <listitem><para>Force zero_damaged_pages to be on during recovery from WAL</para></listitem>
92 <listitem><para>Prevent some obscure cases of <quote>variable not in subplan target lists</para></listitem>
93 <listitem><para>Make PQescapeBytea and byteaout consistent with each other (Joe)</para>
94 <listitem><para>Escape bytea output for bytes > 0x7e(Joe)</para>
95 <para>
96   If different client encodings are used for bytea output and input, it
97   is possible for bytea values to be corrupted by the differing
98   encodings.  This fix escapes all bytes that might be affected.
99 </para>
100 </listitem>
101 <listitem><para>Added missing SPI_finish() calls to dblink's get_tuple_of_interest() (Joe)</para></listitem>
102 </itemizedlist>
103
104   </sect2>
105  </sect1>
106
107  <sect1 id="release-7-4">
108   <title>Release 7.4</title>
109
110   <note>
111    <title>Release date</title>
112    <simpara>2003-11-17</simpara>
113   </note>
114
115   <sect2>
116    <title>Overview</title>
117
118    <para>
119     Major changes in this release:
120
121     <variablelist>
122      <varlistentry>
123       <term>
124        <literal>IN</literal> / <literal>NOT IN</literal> subqueries are
125        now much more efficient
126       </term>
127
128       <listitem>
129        <para>
130         In previous releases, <literal>IN</literal>/<literal>NOT
131         IN</literal> subqueries were joined to the upper query by
132         sequentially scanning the subquery looking for a match.  The
133         7.4 code uses the same sophisticated techniques used by
134         ordinary joins and so is much faster.  An
135         <literal>IN</literal> will now usually be as fast as or faster
136         than an equivalent <literal>EXISTS</literal> subquery; this
137         reverses the conventional wisdom that applied to previous
138         releases.
139        </para>
140       </listitem>
141      </varlistentry>
142
143      <varlistentry>
144       <term>
145        Improved <literal>GROUP BY</literal> processing by using hash buckets
146       </term>
147
148       <listitem>
149        <para>
150         In previous releases, rows to be grouped had to be sorted
151         first.  The 7.4 code can do <literal>GROUP BY</literal>
152         without sorting, by accumulating results into a hash table
153         with one entry per group.  It will still use the sort
154         technique, however, if the hash table is estimated to be too
155         large to fit in <varname>sort_mem</>.
156        </para>
157       </listitem>
158      </varlistentry>
159
160      <varlistentry>
161       <term>
162        New multikey hash join capability
163       </term>
164
165       <listitem>
166        <para>
167         In previous releases, hash joins could only occur on single
168         keys.  This release allows multicolumn hash joins.
169        </para>
170       </listitem>
171      </varlistentry>
172
173      <varlistentry>
174       <term>
175        Queries using the explicit <literal>JOIN</literal> syntax are
176        now better optimized
177       </term>
178
179       <listitem>
180        <para>
181         Prior releases evaluated queries using the explicit
182         <literal>JOIN</literal> syntax only in the order implied by
183         the syntax. 7.4 allows full optimization of these queries,
184         meaning the optimizer considers all possible join orderings
185         and chooses the most efficient.  Outer joins, however, must
186         still follow the declared ordering.
187        </para>
188       </listitem>
189      </varlistentry>
190
191      <varlistentry>
192       <term>
193        Faster and more powerful regular expression code
194       </term>
195
196       <listitem>
197        <para>
198         The entire regular expression module has been replaced with a
199         new version by Henry Spencer, originally written for Tcl.  The
200         code greatly improves performance and supports several flavors
201         of regular expressions.
202        </para>
203       </listitem>
204      </varlistentry>
205
206      <varlistentry>
207       <term>
208        Function-inlining for simple SQL functions
209       </term>
210
211       <listitem>
212        <para>
213         Simple SQL functions can now be inlined by including their SQL
214         in the main query.  This improves performance by eliminating
215         per-call overhead.  That means simple SQL functions now
216         behave like macros.
217        </para>
218       </listitem>
219      </varlistentry>
220
221      <varlistentry>
222       <term>
223        Full support for IPv6 connections and IPv6 address data types
224       </term>
225
226       <listitem>
227        <para>
228         Previous releases allowed only IPv4 connections, and the IP
229         data types only supported IPv4 addresses. This release adds
230         full IPv6 support in both of these areas.
231        </para>
232       </listitem>
233      </varlistentry>
234
235      <varlistentry>
236       <term>
237        Major improvements in SSL performance and reliability
238       </term>
239
240       <listitem>
241        <para>
242         Several people very familiar with the SSL API have overhauled
243         our SSL code to improve SSL key negotiation and error
244         recovery.
245        </para>
246       </listitem>
247      </varlistentry>
248
249      <varlistentry>
250       <term>
251        Make free space map efficiently reuse empty index pages,
252        and other free space management improvements
253       </term>
254
255       <listitem>
256        <para>
257         In previous releases, B-tree index pages that were left empty
258         because of deleted rows could only be reused by rows with
259         index values similar to the rows originally indexed on that
260         page. In 7.4, <command>VACUUM</command> records empty index
261         pages and allows them to be reused for any future index rows.
262        </para>
263       </listitem>
264      </varlistentry>
265
266      <varlistentry>
267       <term>
268        SQL-standard information schema
269       </term>
270
271       <listitem>
272        <para>
273         The information schema provides a standardized and stable way
274         to access information about the schema objects defined in a
275         database.
276        </para>
277       </listitem>
278      </varlistentry>
279
280      <varlistentry>
281       <term>
282        Cursors conform more closely to the SQL standard
283       </term>
284
285       <listitem>
286        <para>
287         The commands <command>FETCH</command> and
288         <command>MOVE</command> have been overhauled to conform more
289         closely to the SQL standard.
290        </para>
291       </listitem>
292      </varlistentry>
293
294      <varlistentry>
295       <term>
296        Cursors can exist outside transactions
297       </term>
298
299       <listitem>
300        <para>
301         These cursors are also called holdable cursors.
302        </para>
303       </listitem>
304      </varlistentry>
305
306      <varlistentry>
307       <term>
308        New client-to-server protocol
309       </term>
310
311       <listitem>
312        <para>
313         The new protocol adds error codes, more status information,
314         faster startup, better support for binary data transmission,
315         parameter values separated from SQL commands, prepared
316         statements available at the protocol level, and cleaner
317         recovery from <command>COPY</command> failures.  The older
318         protocol is still supported by both server and clients.
319        </para>
320       </listitem>
321      </varlistentry>
322
323      <varlistentry>
324       <term>
325        <application>libpq</application> and
326        <application>ECPG</application> applications are now fully
327        thread-safe
328       </term>
329
330       <listitem>
331        <para>
332         While previous <application>libpq</application> releases
333         already supported threads, this release improves thread safety
334         by fixing some non-thread-safe code that was used during
335         database connection startup.  The <command>configure</command>
336         option <option>--enable-thread-safety</option> must be used to
337         enable this feature.
338        </para>
339       </listitem>
340      </varlistentry>
341
342      <varlistentry>
343       <term>
344        New version of full-text indexing
345       </term>
346
347       <listitem>
348        <para>
349         A new full-text indexing suite is available in
350         <filename>contrib/tsearch2</filename>.
351        </para>
352       </listitem>
353      </varlistentry>
354
355      <varlistentry>
356       <term>
357        New autovacuum tool
358       </term>
359
360       <listitem>
361        <para>
362         The new autovacuum tool in
363         <filename>contrib/autovacuum</filename> monitors the database
364         statistics tables for
365         <command>INSERT</command>/<command>UPDATE</command>/<command>DELETE</command>
366         activity and automatically vacuums tables when needed.
367        </para>
368       </listitem>
369      </varlistentry>
370
371      <varlistentry>
372       <term>
373        Array handling has been improved and moved into the server core
374       </term>
375
376       <listitem>
377        <para>
378         Many array limitations have been removed, and arrays behave
379         more like fully-supported data types.
380        </para>
381       </listitem>
382      </varlistentry>
383     </variablelist>
384    </para>
385   </sect2>
386
387   <sect2>
388    <title>Migration to version 7.4</title>
389                                       
390    <para>
391     A dump/restore using <application>pg_dump</application> is
392     required for those wishing to migrate data from any previous
393     release.
394    </para>
395    
396    <para>
397     Observe the following incompatibilities:
398
399     <itemizedlist>
400      <listitem>
401       <para>
402        The server-side autocommit setting was removed and
403        reimplemented in client applications and languages.
404        Server-side autocommit was causing too many problems with
405        languages and applications that wanted to control their own
406        autocommit behavior, so autocommit was removed from the server
407        and added to individual client APIs as appropriate.
408       </para>
409      </listitem>
410
411      <listitem>
412       <para>
413        Error message wording has changed substantially in this
414        release.  Significant effort was invested to make the messages
415        more consistent and user-oriented.  If your applications try to
416        detect different error conditions by parsing the error message,
417        you are strongly encouraged to use the new error code facility instead.
418       </para>
419      </listitem>
420
421      <listitem>
422       <para>
423        Inner joins using the explicit <literal>JOIN</literal> syntax
424        may behave differently because they are now better
425        optimized.
426       </para>
427      </listitem>
428
429      <listitem>
430       <para>
431        A number of server configuration parameters have been renamed
432        for clarity, primarily those related to
433        logging.
434       </para>
435      </listitem>
436
437      <listitem>
438       <para>
439        <literal>FETCH 0</literal> or <literal>MOVE 0</literal> now
440        does nothing.  In prior releases, <literal>FETCH 0</literal>
441        would fetch all remaining rows, and <literal>MOVE 0</literal>
442        would move to the end of the cursor.
443       </para>
444      </listitem>
445  
446      <listitem>
447       <para>
448        <command>FETCH</command> and <command>MOVE</command> now return
449        the actual number of rows fetched/moved, or zero if at the
450        beginning/end of the cursor.  Prior releases would return the
451        row count passed to the command, not the number of rows
452        actually fetched or moved.
453       </para>
454      </listitem>
455
456      <listitem>
457       <para>
458        <command>COPY</command> now can process files that use
459        carriage-return or carriage-return/line-feed end-of-line
460        sequences. Literal carriage-returns and line-feeds are no
461        longer accepted in data values; use <literal>\r</literal> and
462        <literal>\n</literal> instead.
463       </para>
464      </listitem>
465
466      <listitem>
467       <para>
468        Trailing spaces are now trimmed when converting from type
469        <type>char(<replaceable>n</>)</type> to
470        <type>varchar(<replaceable>n</>)</type> or <type>text</type>.
471        This is what most people always expected to happen anyway.
472       </para>
473      </listitem>
474
475      <listitem>
476       <para>
477        The data type <type>float(<replaceable>p</>)</type> now
478        measures <replaceable>p</> in binary digits, not decimal
479        digits.  The new behavior follows the SQL standard.
480       </para>
481      </listitem>
482
483      <listitem>
484       <para>
485        Ambiguous date values now must match the ordering specified by
486        the <varname>datestyle</varname> setting.  In prior releases, a
487        date specification of <literal>10/20/03</> was interpreted as a
488        date in October even if <varname>datestyle</> specified that
489        the day should be first.  7.4 will throw an error if a date
490        specification is invalid for the current setting of
491        <varname>datestyle</>.
492       </para>
493      </listitem>
494
495      <listitem>
496       <para>
497        The functions <function>oidrand</function>,
498        <function>oidsrand</function>, and
499        <function>userfntest</function> have been removed.  These
500        functions were determined to be no longer useful.
501       </para>
502      </listitem>
503
504      <listitem>
505       <para>
506        String literals specifying time-varying date/time values, such
507        as <literal>'now'</literal> or <literal>'today'</literal> will
508        no longer work as expected in column default expressions; they
509        now cause the time of the table creation to be the default, not
510        the time of the insertion.  Functions such as
511        <function>now()</>, <function>current_timestamp</>, or
512        <function>current_date</function> should be used instead.
513       </para>
514
515       <para>
516        In previous releases, there was special code so that strings
517        such as <literal>'now'</literal> were interpreted at
518        <command>INSERT</> time and not at table creation time, but
519        this work around didn't cover all cases.  Release 7.4 now
520        requires that defaults be defined properly using functions such
521        as <function>now()</> or <function>current_timestamp</>. These
522        will work in all situations.
523       </para>
524      </listitem>
525
526      <listitem>
527       <para>
528        The dollar sign (<literal>$</>) is no longer allowed in
529        operator names.  It can instead be a non-first character in
530        identifiers.  This was done to improve compatibility with other
531        database systems, and to avoid syntax problems when parameter
532        placeholders (<literal>$<replaceable>n</></>) are written
533        adjacent to operators.
534       </para>
535      </listitem>
536     </itemizedlist>
537    </para>
538   </sect2>
539
540   <sect2>
541    <title>Changes</title>
542
543    <para>
544     Below you will find a detailed account of the changes between
545     release 7.4 and the previous major release.
546    </para>
547
548   <sect3>
549    <title>Server Operation Changes</title>
550
551    <itemizedlist>
552     <listitem>
553      <para>
554       Allow IPv6 server connections (Nigel Kukard, Johan Jordaan,
555       Bruce, Tom, Kurt Roeckx, Andrew Dunstan)
556      </para>
557     </listitem>
558
559     <listitem>
560      <para>
561       Fix SSL to handle errors cleanly (Nathan Mueller)
562      </para>
563      <para>
564       In prior releases, certain SSL API error reports were not
565       handled correctly.  This release fixes those problems.
566      </para>
567     </listitem>
568
569     <listitem>
570      <para>
571       SSL protocol security and performance improvements (Sean Chittenden)
572      </para>
573      <para>
574       SSL key renegotiation was happening too frequently, causing poor
575       SSL performance.  Also, initial key handling was improved.
576      </para>
577     </listitem>
578
579     <listitem>
580      <para>
581       Print lock information when a deadlock is detected (Tom)
582      </para>
583      <para>
584       This allows easier debugging of deadlock situations.
585      </para>
586     </listitem>
587
588     <listitem>
589      <para>
590       Update <filename>/tmp</filename> socket modification times
591       regularly to avoid their removal (Tom)
592      </para>
593      <para>
594       This should help prevent <filename>/tmp</filename> directory
595       cleaner administration scripts from removing server socket
596       files.
597      </para>
598     </listitem>
599
600     <listitem><para>Enable PAM for Mac OS X (Aaron Hillegass)</para></listitem>
601
602     <listitem>
603      <para>Make B-tree indexes fully WAL-safe (Tom)</para>
604      <para>
605       In prior releases, under certain rare cases, a server crash
606       could cause B-tree indexes to become corrupt. This release
607       removes those last few rare cases.
608      </para>
609     </listitem>
610
611     <listitem><para>Allow B-tree index compaction and empty page reuse (Tom)</para></listitem>
612
613     <listitem>
614      <para>
615       Fix inconsistent index lookups during split of first root page (Tom)
616      </para>
617      <para>
618       In prior releases, when a single-page index split into two
619       pages, there was a brief period when another database session
620       could miss seeing an index entry.  This release fixes that rare
621       failure case.
622      </para>
623     </listitem>
624
625     <listitem><para>Improve free space map allocation logic (Tom)</para></listitem>
626
627     <listitem>
628      <para>Preserve free space information between server restarts (Tom)</para>
629      <para>
630       In prior releases, the free space map was not saved when the
631       postmaster was stopped, so newly started servers had no free
632       space information. This release saves the free space map, and
633       reloads it when the server is restarted.
634      </para>
635     </listitem>
636
637     <listitem><para>Add start time to <literal>pg_stat_activity</literal> (Neil)</para></listitem>
638     <listitem><para>New code to detect corrupt disk pages; erase with <varname>zero_damaged_pages</varname> (Tom)</para></listitem>
639     <listitem><para>New client/server protocol: faster, no username length limit, allow clean exit from <command>COPY</command> (Tom)</para></listitem>
640     <listitem><para>Add transaction status, table ID, column ID to client/server protocol (Tom)</para></listitem>
641     <listitem><para>Add binary I/O to client/server protocol (Tom)</para></listitem>
642     <listitem><para>Remove autocommit server setting; move to client applications (Tom)</para></listitem>
643     <listitem><para>New error message wording, error codes, and three levels of error detail (Tom, Joe, Peter)</para></listitem>
644    </itemizedlist>
645   </sect3>
646
647   <sect3>
648    <title>Performance Improvements</title>
649
650    <itemizedlist>
651     <listitem><para>Add hashing for <literal>GROUP BY</literal> aggregates (Tom)</para></listitem>
652     <listitem><para>Make nested-loop joins be smarter about multicolumn indexes (Tom)</para></listitem>
653     <listitem><para>Allow multikey hash joins (Tom)</para></listitem>
654     <listitem><para>Improve constant folding (Tom)</para></listitem>
655     <listitem><para>Add ability to inline simple SQL functions (Tom)</para></listitem>
656
657     <listitem>
658      <para>Reduce memory usage for queries using complex functions (Tom)</para>
659      <para>
660       In prior releases, functions returning allocated memory would
661       not free it until the query completed. This release allows the
662       freeing of function-allocated memory when the function call
663       completes, reducing the total memory used by functions.
664      </para>
665     </listitem>
666
667     <listitem>
668      <para>Improve GEQO optimizer performance (Tom)</para>
669      <para>
670       This release fixes several inefficiencies in the way the GEQO optimizer
671       manages potential query paths.
672      </para>
673     </listitem>
674
675     <listitem>
676      <para>
677       Allow <literal>IN</>/<literal>NOT IN</> to be handled via hash
678       tables (Tom)
679      </para>
680     </listitem>
681
682     <listitem>
683      <para>
684       Improve <literal>NOT IN (<replaceable>subquery</>)</literal>
685       performance (Tom)
686      </para>
687     </listitem>
688
689     <listitem>
690      <para>
691       Allow most <literal>IN</literal> subqueries to be processed as
692       joins (Tom)
693      </para>
694     </listitem>
695
696     <listitem>
697      <para>
698       Pattern matching operations can use indexes regardless of
699       locale (Peter)
700      </para>
701      <para>
702       There is no way for non-ASCII locales to use the standard
703       indexes for <literal>LIKE</literal> comparisons. This release
704       adds a way to create a special index for
705       <literal>LIKE</literal>.
706      </para>
707     </listitem>
708
709     <listitem>
710      <para>Allow the postmaster to preload libraries using <varname>preload_libraries</varname> (Joe)</para>
711      <para>
712       For shared libraries that require a long time to load, this
713       option is available so the library can be preloaded in the
714       postmaster and inherited by all database sessions.
715      </para>
716     </listitem>
717
718     <listitem>
719      <para>
720       Improve optimizer cost computations, particularly for subqueries (Tom)
721      </para>
722     </listitem>
723
724     <listitem>
725      <para>
726       Avoid sort when subquery <literal>ORDER BY</literal> matches upper query (Tom)
727      </para>
728     </listitem>
729
730     <listitem>
731      <para>
732       Deduce that <literal>WHERE a.x = b.y AND b.y = 42</literal> also
733       means <literal>a.x = 42</literal> (Tom)
734      </para>
735     </listitem>
736
737     <listitem>
738      <para>
739       Allow hash/merge joins on complex joins (Tom)
740      </para>
741     </listitem>
742
743     <listitem>
744      <para>
745       Allow hash joins for more data types (Tom)
746      </para>
747     </listitem>
748
749     <listitem>
750      <para>
751       Allow join optimization of explicit inner joins, disable with
752       <varname>join_collapse_limit</varname> (Tom)
753      </para>
754     </listitem>
755
756     <listitem>
757      <para>
758       Add parameter <varname>from_collapse_limit</varname> to control
759       conversion of subqueries to joins (Tom)
760      </para>
761     </listitem>
762
763     <listitem>
764      <para>
765       Use faster and more powerful regular expression code from Tcl
766       (Henry Spencer, Tom)
767      </para>
768     </listitem>
769
770     <listitem>
771      <para>
772       Use bit-mapped relation sets in the optimizer (Tom)
773      </para>
774     </listitem>
775
776     <listitem>
777      <para>Improve connection startup time (Tom)</para>
778      <para>
779       The new client/server protocol requires fewer network packets to
780       start a database session.
781      </para>
782     </listitem>
783
784     <listitem>
785      <para>
786       Improve trigger/constraint performance (Stephan)
787      </para>
788     </listitem>
789
790     <listitem>
791      <para>
792       Improve speed of <literal>col IN (const, const, const, ...)</literal> (Tom)
793      </para>
794     </listitem>
795
796     <listitem>
797      <para>
798       Fix hash indexes which were broken in rare cases (Tom)
799      </para>
800     </listitem>
801
802     <listitem><para>Improve hash index concurrency and speed (Tom)</para>
803      <para>
804       Prior releases suffered from poor hash index performance,
805       particularly for high concurrency situations. This release fixes
806       that, and the development group is interested in reports
807       comparing B-tree and hash index performance.
808      </para>
809     </listitem>
810
811     <listitem>
812      <para>Align shared buffers on 32-byte boundary for copy speed improvement (Manfred Spraul)</para>
813      <para>
814       Certain CPU's perform faster data copies when addresses are
815       32-byte aligned.
816      </para>
817     </listitem>
818
819     <listitem>
820      <para>Data type <type>numeric</type> reimplemented for better performance (Tom)</para>
821      <para>
822       <type>numeric</type> used to be stored in base 100. The new code
823       uses base 10000, for significantly better performance.
824      </para>
825     </listitem>
826    </itemizedlist>
827   </sect3>
828
829   <sect3>
830    <title>Server Configuration Changes</title>
831
832    <itemizedlist>
833     <listitem>
834      <para>Rename server parameter <varname>server_min_messages</> to <varname>log_min_messages</> (Bruce)</para>
835      <para>
836       This was done so most parameters that control the server logs
837       begin with <literal>log_</>.
838      </para>
839     </listitem>
840
841     <listitem><para>Rename <varname>show_*_stats</> to <varname>log_*_stats</> (Bruce)</para></listitem>
842     <listitem><para>Rename <varname>show_source_port</> to <varname>log_source_port</> (Bruce)</para></listitem>
843     <listitem><para>Rename <varname>hostname_lookup</> to <varname>log_hostname</> (Bruce)</para></listitem>
844
845     <listitem>
846      <para>Add <varname>checkpoint_warning</> to warn of excessive checkpointing (Bruce)</para>
847      <para>
848       In prior releases, it was difficult to determine if checkpoint
849       was happening too frequently. This feature adds a warning to the
850       server logs when excessive checkpointing happens.
851      </para>
852     </listitem>
853
854     <listitem><para>New read-only server parameters for localization (Tom)</para></listitem>
855
856     <listitem>
857      <para>
858       Change debug server log messages to output as <literal>DEBUG</>
859       rather than <literal>LOG</> (Bruce)
860      </para>
861     </listitem>
862
863     <listitem>
864      <para>Prevent server log variables from being turned off by non-superusers (Bruce)</para>
865      <para>
866       This is a security feature so non-superusers cannot disable
867       logging that was enabled by the administrator.
868      </para>
869     </listitem>
870
871     <listitem>
872      <para>
873       <varname>log_min_messages</>/<varname>client_min_messages</> now
874       controls <varname>debug_*</> output (Bruce)
875      </para>
876      <para>
877       This centralizes client debug information so all debug output
878       can be sent to either the client or server logs.
879      </para>
880     </listitem>
881
882     <listitem>
883      <para>Add Mac OS X Rendezvous server support (Chris Campbell)</para>
884      <para>
885       This allows Mac OS X hosts to query the network for available
886       PostgreSQL servers.
887      </para>
888     </listitem>
889
890     <listitem>
891      <para>
892       Add ability to print only slow statements using
893       <varname>log_min_duration_statement</varname>
894       (Christopher)
895      </para>
896      <para>
897       This is an often requested debugging feature that allows
898       administrators to see only slow queries in their server logs.
899      </para>
900     </listitem>
901
902     <listitem>
903      <para>Allow <filename>pg_hba.conf</filename> to accept netmasks in CIDR format (Andrew Dunstan)</para>
904      <para>
905       This allows administrators to merge the host IP address and
906       netmask fields into a single CIDR field in <filename>pg_hba.conf</filename>.
907      </para>
908     </listitem>
909
910     <listitem><para>New read-only parameter <varname>is_superuser</varname> (Tom)</para></listitem>
911
912     <listitem>
913      <para>New parameter <varname>log_error_verbosity</varname> to control error detail (Tom)</para>
914      <para>
915       This works with the new error reporting feature to supply
916       additional error information like hints, file names and line
917       numbers.
918      </para>
919     </listitem>
920
921     <listitem>
922      <para><literal>postgres --describe-config</literal> now dumps server config variables (Aizaz Ahmed, Peter)</para>
923      <para>
924       This option is useful for administration tools that need to know
925       the configuration variable names and their minimums, maximums,
926       defaults, and descriptions.
927      </para>
928     </listitem>
929
930     <listitem>
931      <para>
932       Add new columns in <literal>pg_settings</literal>:
933       <literal>context</>, <literal>type</>, <literal>source</>,
934       <literal>min_val</>, <literal>max_val</> (Joe)
935      </para>
936     </listitem>
937
938     <listitem>
939      <para>
940       Make default <varname>shared_buffers</> 1000 and
941       <varname>max_connections</> 100, if possible (Tom)
942      </para>
943      <para>
944       Prior versions defaulted to 64 shared buffers so PostgreSQL
945       would start on even very old systems. This release tests the
946       amount of shared memory allowed by the platform and selects more
947       reasonable default values if possible.  Of course, users are
948       still encouraged to evaluate their resource load and size
949       <varname>shared_buffers</varname> accordingly.
950      </para>
951     </listitem>
952
953     <listitem>
954      <para>
955       New <filename>pg_hba.conf</filename> record type
956       <literal>hostnossl</> to prevent SSL connections (Jon
957       Jensen)
958      </para>
959      <para>
960       In prior releases, there was no way to prevent SSL connections
961       if both the client and server supported SSL. This option allows
962       that capability.
963      </para>
964     </listitem>
965
966     <listitem>
967      <para>
968       Remove parameter <varname>geqo_random_seed</varname>
969       (Tom)
970      </para>
971     </listitem>
972
973     <listitem>
974      <para>
975       Add server parameter <varname>regex_flavor</varname> to control regular expression processing (Tom)
976      </para>
977     </listitem>
978
979     <listitem>
980      <para>
981       Make <command>pg_ctl</command> better handle nonstandard ports (Greg)
982      </para>
983     </listitem>
984    </itemizedlist>
985   </sect3>
986
987   <sect3>
988    <title>Query Changes</title>
989
990    <itemizedlist>
991     <listitem><para>New SQL-standard information schema (Peter)</para></listitem>
992     <listitem><para>Add read-only transactions (Peter)</para></listitem>
993     <listitem><para>Print key name and value in foreign-key violation messages (Dmitry Tkach)</para></listitem>
994
995     <listitem>
996      <para>Allow users to see their own queries in <literal>pg_stat_activity</literal> (Kevin Brown)</para>
997      <para>
998       In prior releases, only the superuser could see query strings
999       using <literal>pg_stat_activity</literal>. Now ordinary users
1000       can see their own query strings.
1001      </para>
1002     </listitem>
1003
1004     <listitem>
1005      <para>Fix aggregates in subqueries to match SQL standard (Tom)</para>
1006      <para>
1007       The SQL standard says that an aggregate function appearing
1008       within a nested subquery belongs to the outer query if its
1009       argument contains only outer-query variables.  Prior PostgreSQL
1010       releases did not handle this fine point correctly.
1011      </para>
1012     </listitem>
1013
1014     <listitem>
1015      <para>Add option to prevent auto-addition of tables referenced in query (Nigel J. Andrews)</para>
1016      <para>
1017       By default, tables mentioned in the query are automatically
1018       added to the <literal>FROM</> clause if they are not already
1019       there.  This is compatible with historic POSTGRES behavior but
1020       is contrary to the SQL standard.  This option allows selecting
1021       standard-compatible behavior.
1022      </para>
1023     </listitem>
1024
1025     <listitem>
1026      <para>Allow <literal>UPDATE ... SET col = DEFAULT</literal> (Rod)</para>
1027      <para>
1028       This allows <command>UPDATE</command> to set a column to its
1029       declared default value.
1030      </para>
1031     </listitem>
1032
1033     <listitem>
1034      <para>Allow expressions to be used in <literal>LIMIT</>/<literal>OFFSET</> (Tom)</para>
1035      <para>
1036       In prior releases, <literal>LIMIT</>/<literal>OFFSET</> could
1037       only use constants, not expressions.
1038      </para>
1039     </listitem>
1040
1041     <listitem>
1042      <para>Implement <literal>CREATE TABLE AS EXECUTE</literal> (Neil, Peter)</para>
1043     </listitem>
1044    </itemizedlist>
1045   </sect3>
1046
1047   <sect3>
1048    <title>Object Manipulation Changes</title>
1049
1050    <itemizedlist>
1051     <listitem>
1052      <para>Make <command>CREATE SEQUENCE</command> grammar more conforming to SQL 2003 (Neil)</para>
1053     </listitem>
1054
1055     <listitem>
1056      <para>Add statement-level triggers (Neil)</para>
1057      <para>
1058       While this allows a trigger to fire at the end of a statement,
1059       it does not allow the trigger to access all rows modified by the
1060       statement.  This capability is planned for a future release.
1061      </para>
1062     </listitem>
1063
1064     <listitem>
1065      <para>Add check constraints for domains (Rod)</para>
1066      <para>
1067       This greatly increases the usefulness of domains by allowing
1068       them to use check constraints.
1069      </para>
1070     </listitem>
1071
1072     <listitem>
1073      <para>Add <command>ALTER DOMAIN</command> (Rod)</para>
1074      <para>
1075       This allows manipulation of existing domains.
1076      </para>
1077     </listitem>
1078
1079     <listitem>
1080      <para>Fix several zero-column table bugs (Tom)</para>
1081      <para>
1082       PostgreSQL supports zero-column tables. This fixes various bugs
1083       that occur when using such tables.
1084      </para>
1085     </listitem>
1086
1087     <listitem>
1088      <para>Have <literal>ALTER TABLE ... ADD PRIMARY KEY</literal> add not-null constraint (Rod)</para>
1089      <para>
1090       In prior releases, <literal>ALTER TABLE ... ADD
1091       PRIMARY</literal> would add a unique index, but not a not-null
1092       constraint.  That is fixed in this release.
1093      </para>
1094     </listitem>
1095
1096     <listitem><para>Add <literal>ALTER TABLE ... WITHOUT OIDS</literal> (Rod)</para>
1097      <para>
1098       This allows control over whether new and updated rows will have
1099       an OID column.  This is most useful for saving storage space.
1100      </para>
1101     </listitem>
1102
1103     <listitem>
1104      <para>
1105       Add <literal>ALTER SEQUENCE</literal> to modify minimum, maximum,
1106       increment, cache, cycle values (Rod)
1107      </para>
1108     </listitem>
1109
1110     <listitem>
1111      <para>Add <literal>ALTER TABLE ... CLUSTER ON</literal> (Alvaro Herrera)</para>
1112      <para>
1113       This command is used by <command>pg_dump</command> to record the
1114       cluster column for each table previously clustered. This
1115       information is used by database-wide cluster to cluster all
1116       previously clustered tables.
1117      </para>
1118     </listitem>
1119
1120     <listitem><para>Improve automatic type casting for domains (Rod, Tom)</para></listitem>
1121     <listitem><para>Allow dollar signs in identifiers, except as first character (Tom)</para></listitem>
1122     <listitem><para>Disallow dollar signs in operator names, so <literal>x=$1</> works (Tom)</para></listitem>
1123
1124     <listitem>
1125      <para>
1126       Allow copying table schema using <literal>LIKE
1127       <replaceable>subtable</replaceable></literal>, also SQL 2003
1128       feature <literal>INCLUDING DEFAULTS</literal> (Rod)
1129      </para>
1130     </listitem>
1131
1132     <listitem>
1133      <para>
1134       Add <literal>WITH GRANT OPTION</literal> clause to
1135       <command>GRANT</command> (Peter)
1136      </para>
1137      <para>
1138       This enabled <command>GRANT</command> to give other users the
1139       ability to grant privileges on a object.
1140      </para>
1141     </listitem>
1142    </itemizedlist>
1143   </sect3>
1144
1145   <sect3>
1146    <title>Utility Command Changes</title>
1147
1148    <itemizedlist>
1149     <listitem>
1150      <para>Add <literal>ON COMMIT</literal> clause to <command>CREATE TABLE</command> for temporary tables (Gavin)</para>
1151      <para>
1152       This adds the ability for a table to be dropped or all rows
1153       deleted on transaction commit.
1154      </para>
1155     </listitem>
1156
1157     <listitem>
1158      <para>Allow cursors outside transactions using <literal>WITH HOLD</literal> (Neil)</para>
1159      <para>
1160       In previous releases, cursors were removed at the end of the
1161       transaction that created them. Cursors can now be created with
1162       the <literal>WITH HOLD</literal> option, which allows them to
1163       continue to be accessed after the creating transaction has
1164       committed.
1165      </para>
1166     </listitem>
1167
1168     <listitem>
1169      <para><literal>FETCH 0</literal> and <literal>MOVE 0 </literal> now do nothing (Bruce)</para>
1170      <para>
1171       In previous releases, <literal>FETCH 0</literal> fetched all
1172       remaining rows, and <literal>MOVE 0</literal> moved to the end
1173       of the cursor.
1174      </para>
1175     </listitem>
1176
1177     <listitem>
1178      <para>
1179       Cause <command>FETCH</command> and <command>MOVE</command> to
1180       return the number of rows fetched/moved, or zero if at the
1181       beginning/end of cursor, per SQL standard (Bruce)
1182      </para>
1183      <para>
1184       In prior releases, the row count returned by
1185       <command>FETCH</command> and <command>MOVE</command> did not
1186       accurately reflect the number of rows processed.
1187      </para>
1188     </listitem>
1189
1190     <listitem>
1191      <para>Properly handle <literal>SCROLL</literal> with cursors, or
1192      report an error (Neil)</para>
1193      <para>
1194       Allowing random access (both forward and backward scrolling) to
1195       some kinds of queries cannot be done without some additional
1196       work. If <literal>SCROLL</literal> is specified when the cursor
1197       is created, this additional work will be performed. Furthermore,
1198       if the cursor has been created with <literal>NO SCROLL</literal>,
1199       no random access is allowed.
1200      </para>
1201     </listitem>
1202
1203     <listitem>
1204      <para>
1205       Implement SQL-compatible options <literal>FIRST</>,
1206       <literal>LAST</>, <literal>ABSOLUTE <replaceable>n</></>,
1207       <literal>RELATIVE <replaceable>n</></> for
1208       <command>FETCH</command> and <command>MOVE</command> (Tom)
1209      </para>
1210     </listitem>
1211
1212     <listitem>
1213      <para>Allow <command>EXPLAIN</command> on <command>DECLARE CURSOR</command> (Tom)</para>
1214     </listitem>
1215
1216     <listitem>
1217      <para>Allow <command>CLUSTER</command> to use index marked as pre-clustered by default (Alvaro Herrera)</para>
1218     </listitem>
1219
1220     <listitem>
1221      <para>Allow <command>CLUSTER</command> to cluster all tables (Alvaro Herrera)</para>
1222      <para>
1223       This allows all previously clustered tables in a database to be
1224       reclustered with a single command.
1225      </para>
1226     </listitem>
1227
1228     <listitem><para>Prevent <command>CLUSTER</command> on partial indexes (Tom)</para></listitem>
1229
1230     <listitem><para>Allow DOS and Mac line-endings in <command>COPY</> files (Bruce)</para></listitem>
1231
1232     <listitem>
1233      <para>
1234       Disallow literal carriage return as a data value,
1235       backslash-carriage-return and <literal>\r</> are still allowed
1236       (Bruce)
1237      </para>
1238     </listitem>
1239
1240     <listitem>
1241      <para><command>COPY</> changes (binary, <literal>\.</>) (Tom)</para>
1242     </listitem>
1243
1244     <listitem>
1245      <para>Recover from <command>COPY</command> failure cleanly (Tom)</para>
1246     </listitem>
1247
1248     <listitem>
1249      <para>Prevent possible memory leaks in <command>COPY</command> (Tom)</para>
1250     </listitem>
1251
1252     <listitem>
1253      <para>Make <command>TRUNCATE</command> transaction-safe (Rod)</para>
1254      <para>
1255       <command>TRUNCATE</command> can now be used inside a
1256       transaction. If the transaction aborts, the changes made by the
1257       <command>TRUNCATE</command> are automatically rolled back.
1258      </para>
1259     </listitem>
1260
1261     <listitem>
1262      <para>
1263       Allow prepare/bind of utility commands like
1264       <command>FETCH</command> and <command>EXPLAIN</command> (Tom)
1265      </para>
1266     </listitem>
1267
1268     <listitem>
1269      <para>Add <command>EXPLAIN EXECUTE</command> (Neil)</para>
1270     </listitem>
1271
1272     <listitem>
1273      <para>Improve <command>VACUUM</command> performance on indexes by reducing WAL traffic (Tom)</para>
1274     </listitem>
1275
1276     <listitem>
1277      <para>Functional indexes have been generalized into indexes on expressions (Tom)</para>
1278      <para>
1279       In prior releases, functional indexes only supported a simple
1280       function applied to one or more column names.  This release
1281       allows any type of scalar expression.
1282      </para>
1283     </listitem>
1284
1285     <listitem>
1286      <para>
1287       Have <command>SHOW TRANSACTION ISOLATION</command> match input
1288       to <command>SET TRANSACTION ISOLATION</command>
1289       (Tom)
1290      </para>
1291     </listitem>
1292
1293     <listitem>
1294      <para>Have <command>COMMENT ON DATABASE</command> on nonlocal database generate a warning (Rod)</para>
1295      <para>
1296       Database comments are stored in database-local tables so
1297       comments on a database have to be stored in each database.
1298      </para>
1299     </listitem>
1300
1301     <listitem>
1302      <para>
1303       Improve reliability of <command>LISTEN</>/<command>NOTIFY</> (Tom)
1304      </para>
1305     </listitem>
1306
1307     <listitem>
1308      <para>Allow <command>REINDEX</command> to reliably reindex nonshared system catalog indexes (Tom)</para>
1309      <para>
1310       This allows system tables to be reindexed without the
1311       requirement of a standalone session, which was necessary in
1312       previous releases. The only tables that now require a standalone
1313       session for reindexing are the global system tables
1314       <literal>pg_database</>, <literal>pg_shadow</>, and
1315       <literal>pg_group</>.
1316      </para>
1317     </listitem>
1318    </itemizedlist>
1319   </sect3>
1320
1321   <sect3>
1322    <title>Data Type and Function Changes</title>
1323
1324    <itemizedlist>
1325     <listitem>
1326      <para>
1327       New server parameter <varname>extra_float_digits</varname> to
1328       control precision display of floating-point numbers (Pedro
1329       Ferreira, Tom)
1330      </para>
1331      <para>
1332       This controls output precision which was causing regression
1333       testing problems.
1334      </para>
1335     </listitem>
1336
1337     <listitem><para>Allow <literal>+1300</literal> as a numeric time-zone specifier, for FJST (Tom)</para></listitem>
1338
1339     <listitem>
1340      <para>
1341       Remove rarely used functions <function>oidrand</>,
1342       <function>oidsrand</>, and <function>userfntest</> functions
1343       (Neil)
1344      </para>
1345     </listitem>
1346
1347     <listitem>
1348      <para>Add <function>md5()</> function to main server, already in <filename>contrib/pgcrypto</filename> (Joe)</para>
1349      <para>
1350       An MD5 function was frequently requested. For more complex
1351       encryption capabilities, use
1352       <filename>contrib/pgcrypto</filename>.
1353      </para>
1354     </listitem>
1355
1356     <listitem><para>Increase date range of <type>timestamp</type> (John Cochran)</para></listitem>
1357
1358     <listitem>
1359      <para>
1360       Change <literal>EXTRACT(EPOCH FROM timestamp)</literal> so
1361       <type>timestamp without time zone</type> is assumed to be in
1362       local time, not GMT (Tom)
1363      </para>
1364     </listitem>
1365
1366     <listitem><para>Trap division by zero in case the operating system doesn't prevent it (Tom)</para></listitem>
1367     <listitem><para>Change the <type>numeric</type> data type internally to base 10000 (Tom)</para></listitem>
1368     <listitem><para>New <function>hostmask()</function> function (Greg Wickham)</para></listitem>
1369     <listitem><para>Fixes for <function>to_char()</function> and <function>to_timestamp()</function> (Karel)</para></listitem>
1370
1371     <listitem>
1372      <para>
1373       Allow functions that can take any argument data type and return
1374       any data type, using <type>anyelement</type> and
1375       <type>anyarray</type> (Joe)
1376      </para>
1377      <para>
1378       This allows the creation of functions that can work with any
1379       data type.
1380      </para>
1381     </listitem>
1382
1383     <listitem>
1384      <para>
1385       Arrays may now be specified as <literal>ARRAY[1,2,3]</literal>,
1386       <literal>ARRAY[['a','b'],['c','d']]</literal>, or
1387       <literal>ARRAY[ARRAY[ARRAY[2]]]</literal> (Joe)
1388      </para>
1389     </listitem>
1390
1391     <listitem>
1392      <para>
1393       Allow proper comparisons for arrays, including <literal>ORDER
1394       BY</literal> and <literal>DISTINCT</literal> support
1395       (Joe)
1396      </para>
1397     </listitem>
1398
1399     <listitem><para>Allow indexes on array columns (Joe)</para></listitem>
1400     <listitem><para>Allow array concatenation with <literal>||</literal> (Joe)</para></listitem>
1401
1402     <listitem>
1403      <para>
1404       Allow <literal>WHERE</literal> qualification
1405       <literal><replaceable>expr</> <replaceable>op</> ANY/SOME/ALL
1406       (<replaceable>array_expr</>)</literal> (Joe)
1407      </para>
1408      <para>
1409       This allows arrays to behave like a list of values, for purposes
1410       like <literal>SELECT * FROM tab WHERE col IN
1411       (array_val)</literal>.
1412      </para>
1413     </listitem>
1414
1415     <listitem>
1416      <para>
1417       New array functions <function>array_append</>,
1418       <function>array_cat</>, <function>array_lower</>,
1419       <function>array_prepend</>, <function>array_to_string</>,
1420       <function>array_upper</>, <function>string_to_array</> (Joe)
1421      </para>
1422     </listitem>
1423
1424     <listitem><para>Allow user defined aggregates to use polymorphic functions (Joe)</para></listitem>
1425     <listitem><para>Allow assignments to empty arrays (Joe)</para></listitem>
1426
1427     <listitem>
1428      <para>
1429       Allow 60 in seconds fields of <type>time</type>,
1430       <type>timestamp</type>, and <type>interval</type> input values
1431       (Tom)
1432      </para>
1433      <para>
1434       Sixty-second values are needed for leap seconds.
1435      </para>
1436     </listitem>
1437
1438     <listitem><para>Allow <type>cidr</type> data type to be cast to <type>text</type> (Tom)</para></listitem>
1439
1440     <listitem><para>Disallow invalid time zone names in SET TIMEZONE</para></listitem>
1441
1442     <listitem>
1443      <para>
1444       Trim trailing spaces when <type>char</type> is cast to
1445       <type>varchar</> or <type>text</> (Tom)
1446      </para>
1447     </listitem>
1448
1449     <listitem>
1450      <para>
1451       Make <type>float(<replaceable>p</>)</> measure the precision
1452       <replaceable>p</> in binary digits, not decimal digits
1453       (Tom)
1454      </para>
1455     </listitem>
1456
1457     <listitem>
1458      <para>Add IPv6 support to the <type>inet</type> and <type>cidr</type> data types (Michael Graff)</para>
1459     </listitem>
1460
1461     <listitem>
1462      <para>Add <function>family()</function> function to report whether address is IPv4 or IPv6 (Michael Graff)</para>
1463     </listitem>
1464
1465     <listitem>
1466      <para>
1467       Have <literal>SHOW datestyle</literal> generate output similar
1468       to that used by <literal>SET datestyle</literal> (Tom)
1469      </para>
1470     </listitem>
1471
1472     <listitem>
1473      <para>
1474       Make <literal>EXTRACT(TIMEZONE)</literal> and <literal>SET/SHOW
1475       TIME ZONE</literal> follow the SQL convention for the sign of
1476       time zone offsets, i.e., positive is east from UTC (Tom)
1477      </para>
1478     </listitem>
1479
1480     <listitem>
1481      <para>Fix <literal>date_trunc('quarter', ...)</literal> (Böjthe Zoltán)</para>
1482      <para>
1483       Prior releases returned an incorrect value for this function call.
1484      </para>
1485     </listitem>
1486
1487     <listitem>
1488      <para>Make <function>initcap()</function> more compatible with Oracle (Mike Nolan)</para>
1489      <para>
1490       <function>initcap()</function> now uppercases a letter appearing
1491       after any non-alphanumeric character, rather than only after
1492       whitespace.
1493      </para>
1494     </listitem>
1495
1496     <listitem>
1497      <para>Allow only <varname>datestyle</varname> field order for date values not in ISO-8601 format (Greg)</para>
1498     </listitem>
1499
1500     <listitem>
1501      <para>
1502       Add new <varname>datestyle</varname> values <literal>MDY</>,
1503       <literal>DMY</>, and <literal>YMD</> to set input field order;
1504       honor <literal>US</> and <literal>European</> for backward
1505       compatibility (Tom)
1506      </para>
1507     </listitem>
1508
1509     <listitem>
1510      <para>
1511       String literals like <literal>'now'</literal> or
1512       <literal>'today'</literal> will no longer work as a column
1513       default. Use functions such as <function>now()</function>,
1514       <function>current_timestamp</function> instead.  (change
1515       required for prepared statements) (Tom)
1516      </para>
1517     </listitem>
1518
1519     <listitem>
1520      <para>Treat NaN as larger than any other value in <function>min()</>/<function>max()</> (Tom)</para>
1521      <para>
1522       NaN was already sorted after ordinary numeric values for most
1523       purposes, but <function>min()</> and <function>max()</> didn't
1524       get this right.
1525      </para>
1526     </listitem>
1527
1528     <listitem>
1529      <para>Prevent interval from suppressing <literal>:00</literal>
1530      seconds display</para>
1531     </listitem>
1532
1533     <listitem>
1534      <para>
1535       New function <function>pg_get_triggerdef(prettyprint)</function>
1536       and <function>pg_constraint_is_visible()</function>
1537      </para>
1538     </listitem>
1539
1540     <listitem>
1541      <para>Allow time to be specified as <literal>040506</> or <literal>0405</> (Tom)</para>
1542     </listitem>
1543
1544     <listitem>
1545      <para>
1546       Input date order must now be <literal>YYYY-MM-DD</literal> (with 4-digit year) or
1547       match <varname>datestyle</varname>
1548      </para>
1549     </listitem>
1550
1551     <listitem>
1552      <para>
1553       Make <function>pg_get_constraintdef</function> to support
1554       unique, primary-key, and check constraints (Christopher)
1555      </para>
1556     </listitem>
1557    </itemizedlist>
1558   </sect3>
1559
1560   <sect3>
1561    <title>Server-Side Language Changes</title>
1562
1563    <itemizedlist>
1564     <listitem>
1565      <para>
1566       Prevent PL/pgSQL crash when <literal>RETURN NEXT</literal> is
1567       used on a zero-row record variable (Tom)
1568      </para>
1569     </listitem>
1570
1571     <listitem>
1572      <para>
1573       Make PL/Python's <function>spi_execute</function> interface
1574       handle null values properly (Andrew Bosma)
1575      </para>
1576     </listitem>
1577
1578     <listitem>
1579      <para>Allow PL/pgSQL to declare variables of composite types without <literal>%ROWTYPE</literal> (Tom)</para>
1580     </listitem>
1581
1582     <listitem>
1583      <para>Fix PL/Python's <function>_quote()</function> function to handle big integers</para>
1584     </listitem>
1585
1586     <listitem>
1587      <para>Make PL/Python an untrusted language, now called <literal>plpythonu</literal> (Kevin Jacobs, Tom)</para>
1588      <para>
1589       The Python language no longer supports a restricted execution
1590       environment, so the trusted version of PL/Python was removed. If
1591       this situation changes, a version of PL/python that can be used
1592       by non-superusers will be readded.
1593      </para>
1594     </listitem>
1595
1596     <listitem>
1597      <para>Allow polymorphic PL/pgSQL functions (Joe, Tom)</para>
1598     </listitem>
1599
1600     <listitem>
1601      <para>Allow polymorphic SQL functions (Joe)</para>
1602     </listitem>
1603
1604     <listitem>
1605      <para>
1606       Improved compiled function caching mechanism in PL/pgSQL with
1607       full support for polymorphism (Joe)
1608      </para>
1609     </listitem>
1610
1611     <listitem>
1612      <para>
1613       Add new parameter <literal>$0</> in PL/pgSQL representing the
1614       function's actual return type (Joe)
1615      </para>
1616     </listitem>
1617
1618     <listitem>
1619      <para>
1620       Allow PL/Tcl and PL/Python to use the same trigger on multiple tables (Tom)
1621      </para>
1622     </listitem>
1623
1624     <listitem>
1625      <para>
1626       Fixed PL/Tcl's <function>spi_prepare</function> to accept fully
1627       qualified type names in the parameter type list
1628       (Jan)
1629      </para>
1630     </listitem>
1631    </itemizedlist>
1632   </sect3>
1633
1634   <sect3>
1635    <title>psql Changes</title>
1636
1637    <itemizedlist>
1638     <listitem>
1639      <para>Add <literal>\pset pager always</literal> to always use pager (Greg)</para>
1640      <para>
1641       This forces the pager to be used even if the number of rows is
1642       less than the screen height.  This is valuable for rows that
1643       wrap across several screen rows.
1644      </para>
1645     </listitem>
1646
1647     <listitem><para>Improve tab completion (Rod, Ross Reedstrom, Ian Barwick)</para></listitem>
1648     <listitem><para>Reorder <literal>\?</> help into groupings (Harald Armin Massa, Bruce)</para></listitem>
1649     <listitem><para>Add backslash commands for listing schemas, casts, and conversions (Christopher)</para></listitem>
1650
1651     <listitem>
1652      <para>
1653       <command>\encoding</> now changes based on the server parameter
1654       <varname>client_encoding server</varname> (Tom)
1655      </para>
1656      <para>
1657       In previous versions, <command>\encoding</command> was not aware
1658       of encoding changes made using <literal>SET
1659       client_encoding</literal>.
1660      </para>
1661     </listitem>
1662
1663     <listitem>
1664      <para>Save editor buffer into readline history (Ross)</para>
1665      <para>
1666       When <command>\e</> is used to edit a query, the result is saved
1667       in the readline history for retrieval using the up arrow.
1668      </para>
1669     </listitem>
1670
1671     <listitem><para>Improve <command>\d</command> display (Christopher)</para></listitem>
1672     <listitem><para>Enhance HTML mode to be more standards-conforming (Greg)</para></listitem>
1673
1674     <listitem>
1675      <para>New <command>\set AUTOCOMMIT off</command> capability (Tom)</para>
1676      <para>
1677       This takes the place of the removed server parameter <varname>autocommit</varname>.
1678      </para>
1679     </listitem>
1680
1681     <listitem>
1682      <para>New <command>\set VERBOSITY</command> to control error detail (Tom)</para>
1683      <para>
1684       This controls the new error reporting details.
1685      </para>
1686     </listitem>
1687
1688     <listitem><para>New prompt escape sequence <literal>%x</literal> to show transaction status (Tom)</para></listitem>
1689     <listitem><para>Long options for <application>psql</application> are now available on all platforms</para></listitem>
1690    </itemizedlist>
1691   </sect3>
1692
1693   <sect3>
1694    <title>pg_dump Changes</title>
1695
1696    <itemizedlist>
1697     <listitem><para>Multiple pg_dump fixes, including tar format and large objects</para></listitem>
1698     <listitem><para>Allow pg_dump to dump specific schemas (Neil)</para></listitem>
1699
1700     <listitem>
1701      <para>Make pg_dump preserve column storage characteristics (Christopher)</para>
1702      <para>
1703       This preserves <literal>ALTER TABLE ... SET STORAGE</literal> information.
1704      </para>
1705     </listitem>
1706
1707     <listitem><para>Make pg_dump preserve <command>CLUSTER</command> characteristics (Christopher)</para></listitem>
1708
1709     <listitem>
1710      <para>
1711       Have pg_dumpall use <command>GRANT</>/<command>REVOKE</> to dump database-level privleges (Tom)
1712      </para>
1713     </listitem>
1714
1715     <listitem>
1716      <para>
1717       Allow pg_dumpall to support the options <option>-a</>,
1718       <option>-s</>, <option>-x</> of pg_dump (Tom)
1719      </para>
1720     </listitem>
1721
1722     <listitem><para>Prevent pg_dump from lowercasing identifiers specified on the command line (Tom)</para></listitem>
1723
1724     <listitem>
1725      <para>
1726       pg_dump options <option>--use-set-session-authorization</option>
1727       and <option>--no-reconnect</option> now do nothing, all dumps
1728       use <command>SET SESSION AUTHORIZATION</command>
1729      </para>
1730      <para>
1731       pg_dump no longer reconnects to switch users, but instead always
1732       uses <command>SET SESSION AUTHORIZATION</command>. This will
1733       reduce password prompting during restores.
1734      </para>
1735     </listitem>
1736
1737     <listitem>
1738      <para>Long options for <application>pg_dump</application> are now available on all platforms</para>
1739      <para>
1740       PostgreSQL now includes its own long-option processing routines.
1741      </para>
1742     </listitem>
1743    </itemizedlist>
1744   </sect3>
1745
1746   <sect3>
1747    <title>libpq Changes</title>
1748
1749    <itemizedlist>
1750     <listitem>
1751      <para>
1752       Add function <function>PQfreemem</function> for freeing memory on
1753       Windows, suggested for <command>NOTIFY</command> (Bruce)
1754      </para>
1755      <para>
1756       Windows requires that memory allocated in a library be freed by
1757       a function in the same library, hence
1758       <function>free()</function> doesn't work for freeing memory
1759       allocated by libpq. <function>PQfreemem</function> is the proper
1760       way to free libpq memory, especially on Windows, and is
1761       recommended for other platforms as well.
1762      </para>
1763     </listitem>
1764
1765     <listitem>
1766      <para>Document service capability, and add sample file (Bruce)</para>
1767      <para>
1768       This allows clients to look up connection information in a
1769       central file on the client machine.
1770      </para>
1771     </listitem>
1772
1773     <listitem>
1774      <para>
1775       Make <function>PQsetdbLogin</function> have the same defaults as
1776       <function>PQconnectdb</function> (Tom)
1777      </para>
1778     </listitem>
1779
1780     <listitem><para>Allow libpq to cleanly fail when result sets are too large (Tom)</para></listitem>
1781
1782     <listitem>
1783      <para>
1784       Improve performance of function <function>PGunescapeBytea</function> (Ben Lamb)
1785      </para>
1786     </listitem>
1787
1788     <listitem>
1789      <para>
1790       Allow thread-safe libpq with <filename>configure</filename>
1791       option <option>--enable-thread-safety</option> (Lee Kindness,
1792       Philip Yarra)
1793      </para>
1794     </listitem>
1795
1796     <listitem>
1797      <para>
1798       Allow function <function>pqInternalNotice</function> to accept a
1799       format string and arguments instead of just a preformatted
1800       message (Tom, Sean Chittenden)
1801      </para>
1802     </listitem>
1803
1804     <listitem>
1805      <para>
1806       Control SSL negotiation with <literal>sslmode</literal> values
1807       <literal>disable</literal>, <literal>allow</literal>,
1808       <literal>prefer</literal>, and <literal>require</literal> (Jon
1809       Jensen)
1810      </para>
1811     </listitem>
1812
1813     <listitem>
1814      <para>Allow new error codes and levels of text (Tom)</para>
1815     </listitem>
1816
1817     <listitem>
1818      <para>Allow access to the underlying table and column of a query result (Tom)</para>
1819      <para>
1820       This is helpful for query-builder applications that want to know
1821       the underlying table and column names associated with a specific
1822       result set.
1823      </para>
1824     </listitem>
1825
1826     <listitem><para>Allow access to the current transaction status (Tom)</para></listitem>
1827     <listitem><para>Add ability to pass binary data directly to the server (Tom)</para></listitem>
1828
1829     <listitem>
1830      <para>
1831       Add function <function>PQexecPrepared</function> and
1832       <function>PQsendQueryPrepared</function> functions which perform
1833       bind/execute of previously prepared statements (Tom)
1834       </para>
1835      </listitem>
1836    </itemizedlist>
1837   </sect3>
1838
1839   <sect3>
1840    <title>JDBC Changes</title>
1841
1842    <itemizedlist>
1843     <listitem><para>Allow <function>setNull</function> on updateable result sets</para></listitem>
1844     <listitem><para>Allow <function>executeBatch</function> on a prepared statement (Barry)</para></listitem>
1845     <listitem><para>Support SSL connections (Barry)</para></listitem>
1846     <listitem><para>Handle schema names in result sets (Paul Sorenson)</para></listitem>
1847     <listitem><para>Add refcursor support (Nic Ferrier)</para></listitem>
1848    </itemizedlist>
1849   </sect3>
1850
1851   <sect3>
1852    <title>Miscellaneous Interface Changes</title>
1853
1854    <itemizedlist>
1855     <listitem>
1856      <para>Prevent possible memory leak or core dump during libpgtcl shutdown (Tom)</para>
1857     </listitem>
1858     <listitem>
1859      <para>Add Informix compatibility to ECPG (Michael)</para>
1860      <para>
1861       This allows ECPG to process embedded C programs that were
1862       written using certain Informix extensions.
1863      </para>
1864     </listitem>
1865
1866     <listitem>
1867      <para>Add type <type>decimal</type> to ECPG that is fixed length, for Informix (Michael)</para>
1868     </listitem>
1869
1870     <listitem>
1871      <para>
1872       Allow thread-safe embedded SQL programs with
1873       <filename>configure</filename> option
1874       <option>--enable-thread-safety</option> (Lee Kindness, Bruce)
1875      </para>
1876      <para>
1877       This allows multiple threads to access the database at the same
1878       time.
1879      </para>
1880     </listitem>
1881
1882     <listitem>
1883      <para>Moved Python client PyGreSQL to <ulink url="http://www.pygresql.org"></ulink> (Marc)</para>
1884     </listitem>
1885    </itemizedlist>
1886   </sect3>
1887
1888   <sect3>
1889    <title>Source Code Changes</title>
1890
1891    <itemizedlist>
1892     <listitem><para>Prevent need for separate platform geometry regression result files (Tom)</para></listitem>
1893     <listitem><para>Improved PPC locking primitive (Reinhard Max)</para></listitem>
1894     <listitem><para>New function <function>palloc0</function> to allocate and clear memory (Bruce)</para></listitem>
1895     <listitem><para>Fix locking code for s390x CPU (64-bit) (Tom)</para></listitem>
1896     <listitem><para>Allow OpenBSD to use local ident credentials (William Ahern)</para></listitem>
1897     <listitem><para>Make query plan trees read-only to executor (Tom)</para></listitem>
1898     <listitem><para>Add Darwin startup scripts (David Wheeler)</para></listitem>
1899     <listitem><para>Allow libpq to compile with Borland C++ compiler (Lester Godwin, Karl Waclawek)</para></listitem>
1900     <listitem><para>Use our own version of <function>getopt_long()</function> if needed (Peter)</para></listitem>
1901     <listitem><para>Convert administration scripts to C (Peter)</para></listitem>
1902     <listitem><para>Bison >= 1.85 is now required to build the PostgreSQL grammar, if building from CVS</para></listitem>
1903     <listitem><para>Merge documentation into one book (Peter)</para></listitem>
1904     <listitem><para>Add Windows compatibility functions (Bruce)</para></listitem>
1905     <listitem><para>Allow client interfaces to compile under MinGW (Bruce)</para></listitem>
1906     <listitem><para>New <function>ereport()</function> function for error reporting (Tom)</para></listitem>
1907     <listitem><para>Support Intel compiler on Linux (Peter)</para></listitem>
1908     <listitem><para>Improve Linux startup scripts (Slawomir Sudnik, Darko Prenosil)</para></listitem>
1909     <listitem><para>Add support for AMD Opteron and Itanium (Jeffrey W. Baker, Bruce)</para></listitem>
1910     <listitem>
1911      <para>Remove <option>--enable-recode</option> option from <command>configure</command></para>
1912      <para>
1913       This was no longer needed now that we have <command>CREATE CONVERSION</command>.
1914      </para>
1915     </listitem>
1916     <listitem>
1917      <para>Generate a compile error if spinlock code is not found (Bruce)</para>
1918      <para>
1919       Platforms without spinlock code will now fail to compile, rather
1920       than silently using semaphores. This failure can be disabled
1921       with a new <command>configure</command> option.
1922      </para>
1923     </listitem>
1924    </itemizedlist>
1925   </sect3>
1926
1927   <sect3>
1928    <title>Contrib Changes</title>
1929
1930    <itemizedlist>
1931     <listitem><para>Change dbmirror license to BSD</para></listitem>
1932     <listitem><para>Improve earthdistance (Bruno Wolff III)</para></listitem>
1933     <listitem><para>Portability improvements to pgcrypto (Marko Kreen)</para></listitem>
1934     <listitem><para>Prevent crash in xml (John Gray, Michael Richards)</para></listitem>
1935     <listitem><para>Update oracle</para></listitem>
1936     <listitem><para>Update mysql</para></listitem>
1937     <listitem><para>Update cube (Bruno Wolff III)</para></listitem>
1938     <listitem><para>Update earthdistance to use cube (Bruno Wolff III)</para></listitem>
1939     <listitem><para>Update btree_gist (Oleg)</para></listitem>
1940     <listitem><para>New tsearch2 full-text search module (Oleg, Teodor)</para></listitem>
1941     <listitem><para>Add hash-based crosstab function to tablefuncs (Joe)</para></listitem>
1942     <listitem><para>Add serial column to order <function>connectby()</> siblings in tablefuncs (Nabil Sayegh,Joe)</para></listitem>
1943     <listitem><para>Add named persistent connections to dblink (Shridhar Daithanka)</para></listitem>
1944     <listitem><para>New pg_autovacuum allows automatic <command>VACUUM</command> (Matthew T. O'Connor)</para></listitem>
1945     <listitem><para>Make pgbench honor environment variables <envar>PGHOST</>, <envar>PGPORT</>, <envar>PGUSER</> (Tatsuo)</para></listitem>
1946     <listitem><para>Improve intarray (Teodor Sigaev)</para></listitem>
1947     <listitem><para>Improve pgstattuple (Rod)</para></listitem>
1948     <listitem><para>Fix bug in <function>metaphone()</function> in fuzzystrmatch</para></listitem>
1949     <listitem><para>Improve adddepend (Rod)</para></listitem>
1950     <listitem><para>Update spi/timetravel (Böjthe Zoltán)</para></listitem>
1951     <listitem><para>Fix dbase <option>-s</> option and improve non-ASCII handling (Thomas Behr, Márcio Smiderle)</para></listitem>
1952     <listitem><para>Remove array module because features now included by default (Joe)</para></listitem>
1953    </itemizedlist>
1954   </sect3>
1955   </sect2>
1956  </sect1>
1957
1958   <sect1 id="release-7-3-5">
1959    <title>Release 7.3.5</title>
1960
1961    <note>
1962    <title>Release date</title>
1963    <simpara>2003-12-03</simpara>
1964    </note>
1965
1966    <para>
1967     This has a variety of fixes from 7.3.4.
1968    </para>
1969
1970
1971    <sect2>
1972     <title>Migration to version 7.3.5</title>
1973
1974     <para>
1975      A dump/restore is <emphasis>not</emphasis> required for those
1976      running 7.3.*.
1977     </para>
1978    </sect2>
1979
1980    <sect2>
1981     <title>Changes</title>
1982
1983 <itemizedlist>
1984 <listitem><para>Force zero_damaged_pages to be on during recovery from WAL</para></listitem>
1985 <listitem><para>Prevent some obscure cases of <quote>variable not in subplan target lists</para></listitem>
1986 <listitem><para>Force stats processes to detach from shared memory, ensuring cleaner shutdown</para></listitem>
1987 <listitem><para>Make PQescapeBytea and byteaout consistent with each other (Joe)</para></listitem>
1988 <listitem><para>Added missing SPI_finish() calls to dblink's get_tuple_of_interest() (Joe)</para></listitem>
1989 <listitem><para>Fix for possible foreign key violation when rule rewrites INSERT (Jan)</para></listitem>
1990 <listitem><para>Support qualified type names in PL/Tcl's spi_prepare command (Jan)</para></listitem>
1991 <listitem><para>Make pg_dump handle a procedural language handler located in pg_catalog</para></listitem>
1992 <listitem><para>Make pg_dump handle cases where a custom opclass is in another schema</para></listitem>
1993 <listitem><para>Make pg_dump dump binary-compatible casts correctly (Jan)</para></listitem>
1994 <listitem><para>Fix insertion of expressions containing subqueries into rule bodies</para></listitem>
1995 <listitem><para>Fix incorrect argument processing in clusterdb script (Anand Ranganathan)</para></listitem>
1996 <listitem><para>Fix problems with dropped columns in plpython triggers</para></listitem>
1997 <listitem><para>Repair problems with to_char() reading past end of its input string (Karel)</para></listitem>
1998 <listitem><para>Fix GB18030 mapping errors (Tatsuo)</para></listitem>
1999 <listitem><para>Fix several problems with SSL error handling and asynchronous SSL I/O</para></listitem>
2000 <listitem><para>Remove ability to bind a list of values to a single parameter in JDBC
2001 (prevents possible SQL-injection attacks)</para></listitem>
2002 <listitem><para>Fix some errors in HAVE_INT64_TIMESTAMP code paths</para></listitem>
2003 <listitem><para>Fix corner case for btree search in parallel with first root page split</para></listitem>
2004 </itemizedlist>
2005
2006   </sect2>
2007  </sect1>
2008
2009   <sect1 id="release-7-3-4">
2010    <title>Release 7.3.4</title>
2011
2012    <note>
2013    <title>Release date</title>
2014    <simpara>2003-07-24</simpara>
2015    </note>
2016
2017    <para>
2018     This has a variety of fixes from 7.3.3.
2019    </para>
2020
2021
2022    <sect2>
2023     <title>Migration to version 7.3.4</title>
2024
2025     <para>
2026      A dump/restore is <emphasis>not</emphasis> required for those
2027      running 7.3.*.
2028     </para>
2029    </sect2>
2030
2031    <sect2>
2032     <title>Changes</title>
2033
2034 <itemizedlist>
2035 <listitem><para>Repair breakage in timestamp-to-date conversion for dates before 2000</para></listitem>
2036 <listitem><para>Prevent rare possibility of server startup failure (Tom)</para></listitem>
2037 <listitem><para>Fix bugs in interval-to-time conversion (Tom)</para></listitem>
2038 <listitem><para>Add constraint names in a few places in pg_dump (Rod)</para></listitem>
2039 <listitem><para>Improve performance of functions with many parameters (Tom)</para></listitem>
2040 <listitem><para>Fix to_ascii() buffer overruns (Tom)</para></listitem>
2041 <listitem><para>Prevent restore of database comments from throwing an error (Tom)</para></listitem>
2042 <listitem><para>Work around buggy strxfrm() present in some Solaris releases (Tom)</para></listitem>
2043 <listitem><para>Properly escape jdbc setObject() strings to improve security (Barry)</para></listitem>
2044 </itemizedlist>
2045    </sect2>
2046   </sect1>
2047
2048
2049  <sect1 id="release-7-3-3">
2050   <title>Release 7.3.3</title>
2051
2052   <note>
2053    <title>Release date</title>
2054    <simpara>2003-05-22</simpara>
2055   </note>
2056
2057   <para>
2058    This release contains of variety of fixes for version 7.3.2.
2059   </para>
2060
2061   <sect2>
2062    <title>Migration to version 7.3.3</title>
2063
2064    <para>
2065     A dump/restore is <emphasis>not</emphasis> required for those
2066     running version 7.3.*.
2067    </para>
2068   </sect2>
2069
2070   <sect2>
2071    <title>Changes</title>
2072
2073 <itemizedlist>
2074 <listitem><para>Repair sometimes-incorrect computation of StartUpID after a crash</para></listitem>
2075 <listitem><para>Avoid slowness with lots of deferred triggers in one transaction (Stephan)</para></listitem>
2076 <listitem><para>Don't lock referenced row when <command>UPDATE</command> doesn't change foreign key's value (Jan)</para></listitem>
2077 <listitem><para>Use <command>-fPIC</command> not <command>-fpic</command> on Sparc (Tom Callaway)</para></listitem>
2078 <listitem><para>Repair lack of schema-awareness in contrib/reindexdb</para></listitem>
2079 <listitem><para>Fix contrib/intarray error for zero-element result array (Teodor)</para></listitem>
2080 <listitem><para>Ensure createuser script will exit on control-C (Oliver)</para></listitem>
2081 <listitem><para>Fix errors when the type of a dropped column has itself been dropped</para></listitem>
2082 <listitem><para><command>CHECKPOINT</command> does not cause database panic on failure in noncritical steps</para></listitem>
2083 <listitem><para>Accept 60 in seconds fields of timestamp, time, interval input values</para></listitem>
2084 <listitem><para>Issue notice, not error, if <type>TIMESTAMP</type>,
2085 <type> TIME</type>, or <type>INTERVAL</type> precision too large</para></listitem>
2086 <listitem><para>Fix <function>abstime-to-time</function> cast function (fix is
2087        not applied unless you <application>initdb</application>)</para></listitem>
2088 <listitem><para>Fix <application>pg_proc</application> entry for
2089       <type>timestampt_izone</type> (fix is not applied unless you
2090         <application>initdb</application>)</para></listitem>
2091 <listitem><para>Make <function>EXTRACT(EPOCH FROM timestamp without time zone)</function> treat input as local time</para></listitem>
2092 <listitem><para><command>'now'::timestamptz</command> gave wrong answer if timezone changed earlier in transaction</para></listitem>
2093 <listitem><para><envar>HAVE_INT64_TIMESTAMP</envar> code for time with timezone overwrote its input</para></listitem>
2094 <listitem><para>Accept <command>GLOBAL TEMP/TEMPORARY</command> as a
2095        synonym for <command>TEMPORARY</command></para></listitem>
2096 <listitem><para>Avoid improper schema-privilege-check failure in foreign-key triggers</para></listitem>
2097 <listitem><para>Fix bugs in foreign-key triggers for <command>SET DEFAULT</command> action</para></listitem>
2098 <listitem><para>Fix incorrect time-qual check in row fetch for
2099        <command>UPDATE</command> and <command>DELETE</command> triggers</para></listitem>
2100 <listitem><para>Foreign-key clauses were parsed but ignored in
2101        <command>ALTER TABLE ADD COLUMN</command></para></listitem>
2102 <listitem><para>Fix createlang script breakage for case where handler function already exists</para></listitem>
2103 <listitem><para>Fix misbehavior on zero-column tables in <application>pg_dump</application>, COPY, ANALYZE, other places</para></listitem>
2104 <listitem><para>Fix misbehavior of <function>func_error()</function> on type names containing '%'</para></listitem>
2105 <listitem><para>Fix misbehavior of <function>replace()</function> on strings containing '%'</para></listitem>
2106 <listitem><para>Regular-expression patterns containing certain multibyte characters failed</para></listitem>
2107 <listitem><para>Account correctly for <command>NULL</command>s in more cases in join size estimation</para></listitem>
2108 <listitem><para>Avoid conflict with system definition of <function>isblank()</function> function or macro</para></listitem>
2109 <listitem><para>Fix failure to convert large code point values in EUC_TW conversions (Tatsuo)</para></listitem>
2110 <listitem><para>Fix error recovery for <function>SSL_read</function>/<function>SSL_write</function> calls</para></listitem>
2111 <listitem><para>Don't do early constant-folding of type coercion expressions</para></listitem>
2112 <listitem><para>Validate page header fields immediately after reading in any page</para></listitem>
2113 <listitem><para>Repair incorrect check for ungrouped variables in unnamed joins</para></listitem>
2114 <listitem><para>Fix buffer overrun in <function>to_ascii</function> (Guido Notari)</para></listitem>
2115 <listitem><para>contrib/ltree fixes (Teodor)</para></listitem>
2116 <listitem><para>Fix core dump in deadlock detection on machines where char is unsigned</para></listitem>
2117 <listitem><para>Avoid running out of buffers in many-way indexscan (bug introduced in 7.3)</para></listitem>
2118 <listitem><para>Fix planner's selectivity estimation functions to handle domains properly</para></listitem>
2119 <listitem><para>Fix <application>dbmirror</application> memory-allocation bug (Steven Singer)</para></listitem>
2120 <listitem><para>Prevent infinite loop in <function>ln(numeric)</function> due to roundoff error</para></listitem>
2121 <listitem><para><command>GROUP BY</command> got confused if there were multiple equal GROUP BY items</para></listitem>
2122 <listitem><para>Fix bad plan when inherited <command>UPDATE</command>/<command>DELETE</command> references another inherited table</para></listitem>
2123 <listitem><para>Prevent clustering on incomplete (partial or non-NULL-storing) indexes</para></listitem>
2124 <listitem><para>Service shutdown request at proper time if it arrives while still starting up</para></listitem>
2125 <listitem><para>Fix left-links in temporary indexes (could make backwards scans miss entries)</para></listitem>
2126 <listitem><para>Fix incorrect handling of client_encoding setting in postgresql.conf (Tatsuo)</para></listitem>
2127 <listitem><para>Fix failure to respond to <command>pg_ctl stop -m fast</command> after Async_NotifyHandler runs</para></listitem>
2128 <listitem><para>Fix SPI for case where rule contains multiple statements of the same type</para></listitem>
2129 <listitem><para>Fix problem with checking for wrong type of access privilege in rule query</para></listitem>
2130 <listitem><para>Fix problem with <command>EXCEPT</command> in <command>CREATE RULE</command></para></listitem>
2131 <listitem><para>Prevent problem with dropping temp tables having serial columns</para></listitem>
2132 <listitem><para>Fix replace_vars_with_subplan_refs failure in complex views</para></listitem>
2133 <listitem><para>Fix regexp slowness in single-byte encodings (Tatsuo)</para></listitem>
2134 <listitem><para>Allow qualified type names in <command>CREATE CAST</command>
2135        and <command> DROP CAST</command></para></listitem>
2136 <listitem><para>Accept <function>SETOF type[]</function>, which formerly had to
2137        be written <function>SETOF _type</function></para></listitem>
2138 <listitem><para>Fix <application>pg_dump</application> core dump in some cases with procedural languages</para></listitem>
2139 <listitem><para>Force ISO datestyle in <application>pg_dump</application> output, for portability (Oliver)</para></listitem>
2140 <listitem><para><application>pg_dump</application> failed to handle error return
2141        from <function>lo_read</function> (Oleg Drokin)</para></listitem>
2142 <listitem><para><application>pg_dumpall</application> failed with groups having no members (Nick Eskelinen)</para></listitem>
2143 <listitem><para><application>pg_dumpall</application> failed to recognize --globals-only switch</para></listitem>
2144 <listitem><para>pg_restore failed to restore blobs if -X disable-triggers is specified</para></listitem>
2145 <listitem><para>Repair intrafunction memory leak in plpgsql</para></listitem>
2146 <listitem><para>pltcl's <command>elog</command> command dumped core if given wrong parameters (Ian Harding)</para></listitem>
2147 <listitem><para>plpython used wrong value of <envar>atttypmod</envar> (Brad McLean)</para></listitem>
2148 <listitem><para>Fix improper quoting of boolean values in Python interface (D'Arcy)</para></listitem>
2149 <listitem><para>Added <function>addDataType()</function> method to PGConnection interface for JDBC</para></listitem>
2150 <listitem><para>Fixed various problems with updateable ResultSets for JDBC (Shawn Green)</para></listitem>
2151 <listitem><para>Fixed various problems with DatabaseMetaData for JDBC (Kris Jurka, Peter Royal)</para></listitem>
2152 <listitem><para>Fixed problem with parsing table ACLs in JDBC</para></listitem>
2153 <listitem><para>Better error message for character set conversion problems in JDBC</para></listitem>
2154 </itemizedlist>
2155   </sect2>
2156  </sect1>
2157
2158
2159  <sect1 id="release-7-3-2">
2160   <title>Release 7.3.2</title>
2161
2162   <note>
2163    <title>Release date</title>
2164    <simpara>2003-02-04</simpara>
2165   </note>
2166
2167   <para>
2168    This release contains a variety of fixes for version 7.3.1.
2169   </para>
2170
2171
2172   <sect2>
2173    <title>Migration to version 7.3.2</title>
2174
2175    <para>
2176     A dump/restore is <emphasis>not</emphasis> required for those
2177     running version 7.3.*.
2178    </para>
2179   </sect2>
2180
2181   <sect2>
2182    <title>Changes</title>
2183
2184 <itemizedlist>
2185 <listitem><para>Restore creation of OID column in CREATE TABLE AS / SELECT INTO</para></listitem>
2186 <listitem><para>Fix <application>pg_dump</> core dump when dumping views having comments</para></listitem>
2187 <listitem><para>Dump DEFERRABLE/INITIALLY DEFERRED constraints properly</para></listitem>
2188 <listitem><para>Fix UPDATE when child table's column numbering differs from parent</para></listitem>
2189 <listitem><para>Increase default value of max_fsm_relations</para></listitem>
2190 <listitem><para>Fix problem when fetching backwards in a cursor for a single-row query</para></listitem>
2191 <listitem><para>Make backward fetch work properly with cursor on SELECT DISTINCT query</para></listitem>
2192 <listitem><para>Fix problems with loading <application>pg_dump</> files containing contrib/lo usage</para></listitem>
2193 <listitem><para>Fix problem with all-numeric user names</para></listitem>
2194 <listitem><para>Fix possible memory leak and core dump during disconnect in libpgtcl</para></listitem>
2195 <listitem><para>Make plpython's spi_execute command handle nulls properly (Andrew Bosma)</para></listitem>
2196 <listitem><para>Adjust plpython error reporting so that its regression test passes again</para></listitem>
2197 <listitem><para>Work with bison 1.875</para></listitem>
2198 <listitem><para>Handle mixed-case names properly in plpgsql's %type (Neil)</para></listitem>
2199 <listitem><para>Fix core dump in pltcl when executing a query rewritten by a rule</para></listitem>
2200 <listitem><para>Repair array subscript overruns (per report from Yichen Xie)</para></listitem>
2201 <listitem><para>Reduce MAX_TIME_PRECISION from 13 to 10 in floating-point case</para></listitem>
2202 <listitem><para>Correctly case-fold variable names in per-database and per-user settings</para></listitem>
2203 <listitem><para>Fix coredump in plpgsql's RETURN NEXT when SELECT into record returns no rows</para></listitem>
2204 <listitem><para>Fix outdated use of pg_type.typprtlen in python client interface</para></listitem>
2205 <listitem><para>Correctly handle fractional seconds in timestamps in JDBC driver</para></listitem>
2206 <listitem><para>Improve performance of getImportedKeys() in JDBC</para></listitem>
2207 <listitem><para>Make shared-library symlinks work standardly on HPUX (Giles)</para></listitem>
2208 <listitem><para>Repair inconsistent rounding behavior for timestamp, time, interval</para></listitem>
2209 <listitem><para>SSL negotiation fixes (Nathan Mueller)</para></listitem>
2210 <listitem><para>Make libpq's ~/.pgpass feature work when connecting with PQconnectDB</para></listitem>
2211 <listitem><para>Update my2pg, ora2pg</para></listitem>
2212 <listitem><para>Translation updates</para></listitem>
2213 <listitem><para>Add casts between types lo and oid in contrib/lo</para></listitem>
2214 <listitem><para>fastpath code now checks for privilege to call function</para></listitem>
2215 </itemizedlist>
2216   </sect2>
2217  </sect1>
2218
2219
2220  <sect1 id="release-7-3-1">
2221   <title>Release 7.3.1</title>
2222
2223   <note>
2224    <title>Release date</title>
2225    <simpara>2002-12-18</simpara>
2226   </note>
2227
2228   <para>
2229    This release contains a variety of fixes for version 7.3.
2230   </para>
2231
2232
2233   <sect2>
2234    <title>Migration to version 7.3.1</title>
2235
2236    <para>
2237     A dump/restore is <emphasis>not</emphasis> required for those
2238     running version 7.3. However, it should be noted that the main
2239     PostgreSQL interface library, libpq, has a new major version
2240     number for this release, which may require recompilation of client
2241     code in certain cases.
2242    </para>
2243   </sect2>
2244
2245   <sect2>
2246    <title>Changes</title>
2247
2248 <itemizedlist>
2249 <listitem><para>Fix a core dump of COPY TO when client/server encodings don't match (Tom)</para></listitem>
2250 <listitem><para>Allow <application>pg_dump</> to work with pre-7.2 servers (Philip)</para></listitem>
2251 <listitem><para>contrib/adddepend fixes (Tom)</para></listitem>
2252 <listitem><para>Fix problem with deletion of per-user/per-database config settings (Tom)</para></listitem>
2253 <listitem><para>contrib/vacuumlo fix (Tom)</para></listitem>
2254 <listitem><para>Allow 'password' encryption even when pg_shadow contains MD5 passwords (Bruce)</para></listitem>
2255 <listitem><para>contrib/dbmirror fix (Steven Singer)</para></listitem>
2256 <listitem><para>Optimizer fixes (Tom)</para></listitem>
2257 <listitem><para>contrib/tsearch fixes (Teodor Sigaev, Magnus)</para></listitem>
2258 <listitem><para>Allow locale names to be mixed case (Nicolai Tufar)</para></listitem>
2259 <listitem><para>Increment libpq library's major version number (Bruce)</para></listitem>
2260 <listitem><para>pg_hba.conf error reporting fixes (Bruce, Neil)</para></listitem>
2261 <listitem><para>Add SCO Openserver 5.0.4 as a supported platform (Bruce)</para></listitem>
2262 <listitem><para>Prevent EXPLAIN from crashing server (Tom)</para></listitem>
2263 <listitem><para>SSL fixes (Nathan Mueller)</para></listitem>
2264 <listitem><para>Prevent composite column creation via ALTER TABLE (Tom)</para></listitem>
2265 </itemizedlist>
2266   </sect2>
2267  </sect1>
2268   
2269   
2270  <sect1 id="release-7-3">
2271   <title>Release 7.3</title>
2272
2273   <note>
2274    <title>Release date</title>
2275    <simpara>2002-11-27</simpara>
2276   </note>
2277
2278   <sect2>
2279    <title>Overview</title>
2280
2281    <para>
2282     Major changes in this release:
2283
2284     <variablelist>
2285      <varlistentry>
2286       <term>Schemas</term>
2287       <listitem>
2288        <para>
2289         Schemas allow users to create objects in separate namespaces,
2290         so two people or applications can have tables with the same
2291         name. There is also a public schema for shared tables.
2292         Table/index creation can be restricted by removing privileges
2293         on the public schema.
2294        </para>
2295       </listitem>
2296      </varlistentry>
2297
2298      <varlistentry>
2299       <term>Drop Column</term>
2300       <listitem>
2301        <para>
2302         PostgreSQL now supports the <literal>ALTER TABLE ... DROP
2303         COLUMN</literal> functionality.
2304        </para>
2305       </listitem>
2306      </varlistentry>
2307
2308      <varlistentry>
2309       <term>Table Functions</term>
2310       <listitem>
2311        <para>
2312         Functions returning multiple rows and/or multiple columns are
2313         now much easier to use than before.  You can call such a
2314         <quote>table function</quote> in the <literal>SELECT</literal>
2315         <literal>FROM</literal> clause, treating its output like a
2316         table. Also, <application>PL/pgSQL</application> functions can
2317         now return sets.
2318        </para>
2319       </listitem>
2320      </varlistentry>
2321
2322      <varlistentry>
2323       <term>Prepared Queries</term>
2324       <listitem>
2325        <para>
2326         PostgreSQL now supports prepared queries, for improved
2327         performance.
2328        </para>
2329       </listitem>
2330      </varlistentry>
2331
2332      <varlistentry>
2333       <term>Dependency Tracking</term>
2334       <listitem>
2335        <para>
2336         PostgreSQL now records object dependencies, which allows
2337         improvements in many areas.  <command>DROP</command>
2338         statements now take either <literal>CASCADE</> or
2339         <literal>RESTRICT</> to control whether dependent objects are
2340         also dropped.
2341        </para>
2342       </listitem>
2343      </varlistentry>
2344
2345      <varlistentry>
2346       <term>Privileges</term>
2347       <listitem>
2348        <para>
2349         Functions and procedural languages now have privileges, and
2350         functions can be defined to run with the privileges of their
2351         creator.
2352        </para>
2353       </listitem>
2354      </varlistentry>
2355
2356      <varlistentry>
2357       <term>Internationalization</term>
2358       <listitem>
2359        <para>
2360         Both multibyte and locale support are now always enabled.
2361        </para>
2362       </listitem>
2363      </varlistentry>
2364
2365      <varlistentry>
2366       <term>Logging</term>
2367       <listitem>
2368        <para>
2369         A variety of logging options have been enhanced.
2370        </para>
2371       </listitem>
2372      </varlistentry>
2373
2374      <varlistentry>
2375       <term>Interfaces</term>
2376       <listitem>
2377        <para>
2378         A large number of interfaces have been moved to <ulink
2379         url="http://gborg.postgresql.org">http://gborg.postgresql.org</>
2380         where they can be developed and released independently.
2381        </para>
2382       </listitem>
2383      </varlistentry>
2384
2385      <varlistentry>
2386       <term>Functions/Identifiers</term>
2387       <listitem>
2388        <para>
2389         By default, functions can now take up to 32 parameters, and
2390         identifiers can be up to 63 bytes long.  Also, <literal>OPAQUE</>
2391         is now deprecated: there are specific <quote>pseudo-datatypes</>
2392         to represent each of the former meanings of <literal>OPAQUE</>
2393         in function argument and result types.
2394        </para>
2395       </listitem>
2396      </varlistentry>
2397
2398     </variablelist>
2399    </para>
2400   </sect2>
2401
2402   <sect2>
2403    <title>Migration to version 7.3</title>
2404
2405    <para>
2406     A dump/restore using <application>pg_dump</> is required for those
2407     wishing to migrate data from any previous release. If your
2408     application examines the system catalogs, additional changes will
2409     be required due to the introduction of schemas in 7.3; for more
2410     information, see: <ulink
2411     url="http://developer.postgresql.org/~momjian/upgrade_tips_7.3">
2412     http://developer.postgresql.org/~momjian/upgrade_tips_7.3</>.
2413    </para>
2414
2415    <para>
2416     Observe the following incompatibilities:
2417
2418     <itemizedlist>
2419      <listitem>
2420       <para>
2421        Pre-6.3 clients are no longer supported.
2422       </para>
2423      </listitem>
2424
2425      <listitem>
2426       <para>
2427        <filename>pg_hba.conf</filename> now has a column for the user
2428        name and additional features.  Existing files need to be
2429        adjusted.
2430       </para>
2431      </listitem>
2432
2433      <listitem>
2434       <para>
2435        Several <filename>postgresql.conf</filename> logging parameters
2436        have been renamed.
2437       </para>
2438      </listitem>
2439
2440      <listitem>
2441       <para>
2442        <literal>LIMIT #,#</literal> has been disabled; use
2443        <literal>LIMIT # OFFSET #</literal>.
2444       </para>
2445      </listitem>
2446
2447      <listitem>
2448       <para>
2449        <command>INSERT</command> statements with column lists must
2450        specify a value for each specified column. For example,
2451        <literal>INSERT INTO tab (col1, col2) VALUES ('val1')</literal>
2452        is now invalid.  It's still allowed to supply fewer columns than
2453        expected if the <command>INSERT</command> does not have a column list.
2454       </para>
2455      </listitem>
2456
2457      <listitem>
2458       <para>
2459        <type>serial</type> columns are no longer automatically
2460        <literal>UNIQUE</>; thus, an index will not automatically be
2461        created.
2462       </para>
2463      </listitem>
2464
2465      <listitem>
2466       <para>
2467        A <command>SET</command> command inside an aborted transaction
2468        is now rolled back.
2469       </para>
2470      </listitem>
2471
2472      <listitem>
2473       <para>
2474        <command>COPY</command> no longer considers missing trailing
2475        columns to be null.  All columns need to be specified.
2476        (However, one may achieve a similar effect by specifying a
2477        column list in the <command>COPY</command> command.)
2478       </para>
2479      </listitem>
2480
2481      <listitem>
2482       <para>
2483        The data type <type>timestamp</type> is now equivalent to
2484        <type>timestamp without time zone</type>, instead of
2485        <type>timestamp with time zone</type>.
2486       </para>
2487      </listitem>
2488
2489      <listitem>
2490       <para>
2491        Pre-7.3 databases loaded into 7.3 will not have the new object
2492        dependencies for <type>serial</type> columns, unique
2493        constraints, and foreign keys. See the directory
2494        <filename>contrib/adddepend/</filename> for a detailed
2495        description and a script that will add such dependencies.
2496       </para>
2497      </listitem>
2498
2499      <listitem>
2500       <para>
2501        An empty string (<literal>''</literal>) is no longer allowed as
2502        the input into an integer field.  Formerly, it was silently
2503        interpreted as 0.
2504       </para>
2505      </listitem>
2506
2507     </itemizedlist>
2508    </para>
2509
2510   </sect2>
2511
2512   <sect2>
2513    <title>Changes</title>
2514
2515    <sect3>
2516     <title>Server Operation</title>
2517 <itemizedlist>
2518 <listitem><para>Add pg_locks view to show locks (Neil)</para></listitem>
2519 <listitem><para>Security fixes for password negotiation memory allocation (Neil)</para></listitem>
2520 <listitem><para>Remove support for version 0 FE/BE protocol (PostgreSQL 6.2 and earlier) (Tom)</para></listitem>
2521 <listitem><para>Reserve the last few backend slots for superusers, add parameter superuser_reserved_connections to control this (Nigel J. Andrews)</para></listitem>
2522 </itemizedlist>
2523    </sect3>
2524
2525    <sect3>
2526     <title>Performance</title>
2527 <itemizedlist>
2528 <listitem><para>Improve startup by calling localtime() only once (Tom)</para></listitem>
2529 <listitem><para>Cache system catalog information in flat files for faster startup (Tom)</para></listitem>
2530 <listitem><para>Improve caching of index information (Tom)</para></listitem>
2531 <listitem><para>Optimizer improvements (Tom, Fernando Nasser)</para></listitem>
2532 <listitem><para>Catalog caches now store failed lookups (Tom)</para></listitem>
2533 <listitem><para>Hash function improvements (Neil)</para></listitem>
2534 <listitem><para>Improve performance of query tokenization and network handling (Peter)</para></listitem>
2535 <listitem><para>Speed improvement for large object restore (Mario Weilguni)</para></listitem>
2536 <listitem><para>Mark expired index entries on first lookup, saving later heap fetches (Tom)</para></listitem>
2537 <listitem><para>Avoid excessive NULL bitmap padding (Manfred Koizar)</para></listitem>
2538 <listitem><para>Add BSD-licensed qsort() for Solaris, for performance (Bruce)</para></listitem>
2539 <listitem><para>Reduce per-row overhead by four bytes (Manfred Koizar)</para></listitem>
2540 <listitem><para>Fix GEQO optimizer bug (Neil Conway)</para></listitem>
2541 <listitem><para>Make WITHOUT OID actually save four bytes per row (Manfred Koizar)</para></listitem>
2542 <listitem><para>Add default_statistics_target variable to specify ANALYZE buckets (Neil)</para></listitem>
2543 <listitem><para>Use local buffer cache for temporary tables so no WAL overhead (Tom)</para></listitem>
2544 <listitem><para>Improve free space map performance on large tables (Stephen Marshall, Tom)</para></listitem>
2545 <listitem><para>Improved WAL write concurrency (Tom)</para></listitem>
2546 </itemizedlist>
2547    </sect3>
2548
2549    <sect3>
2550     <title>Privileges</title>
2551 <itemizedlist>
2552 <listitem><para>Add privileges on functions and procedural languages (Peter)</para></listitem>
2553 <listitem><para>Add OWNER to CREATE DATABASE so superusers can create databases on behalf of unprivileged users (Gavin Sherry, Tom)</para></listitem>
2554 <listitem><para>Add new object privilege bits EXECUTE and USAGE (Tom)</para></listitem>
2555 <listitem><para>Add SET SESSION AUTHORIZATION DEFAULT and RESET SESSION AUTHORIZATION (Tom)</para></listitem>
2556 <listitem><para>Allow functions to be executed with the privilege of the function owner (Peter)</para></listitem>
2557 </itemizedlist>
2558    </sect3>
2559
2560    <sect3>
2561     <title>Server Configuration</title>
2562 <itemizedlist>
2563 <listitem><para>Server log messages now tagged with LOG, not DEBUG (Bruce)</para></listitem>
2564 <listitem><para>Add user column to pg_hba.conf (Bruce)</para></listitem>
2565 <listitem><para>Have log_connections output two lines in log file (Tom)</para></listitem>
2566 <listitem><para>Remove debug_level from postgresql.conf, now server_min_messages (Bruce)</para></listitem>
2567 <listitem><para>New ALTER DATABASE/USER ... SET command for per-user/database initialization (Peter)</para></listitem>
2568 <listitem><para>New parameters server_min_messages and client_min_messages to control which messages are sent to the server logs or client applications (Bruce)</para></listitem>
2569 <listitem><para>Allow pg_hba.conf to specify lists of users/databases separated by commas, group names prepended with +, and file names prepended with @ (Bruce)</para></listitem>
2570 <listitem><para>Remove secondary password file capability and pg_password utility (Bruce)</para></listitem>
2571 <listitem><para>Add variable db_user_namespace for database-local user names (Bruce)</para></listitem>
2572 <listitem><para>SSL improvements (Bear Giles)</para></listitem>
2573 <listitem><para>Make encryption of stored passwords the default (Bruce)</para></listitem>
2574 <listitem><para>Allow pg_statistics to be reset by calling pg_stat_reset() (Christopher)</para></listitem>
2575 <listitem><para>Add log_duration parameter (Bruce)</para></listitem>
2576 <listitem><para>Rename debug_print_query to log_statement (Bruce)</para></listitem>
2577 <listitem><para>Rename show_query_stats to show_statement_stats (Bruce)</para></listitem>
2578 <listitem><para>Add param log_min_error_statement to print commands to logs on error (Gavin)</para></listitem>
2579 </itemizedlist>
2580    </sect3>
2581
2582    <sect3>
2583     <title>Queries</title>
2584 <itemizedlist>
2585 <listitem><para>Make cursors insensitive, meaning their contents do not change (Tom)</para></listitem>
2586 <listitem><para>Disable LIMIT #,# syntax; now only LIMIT # OFFSET # supported (Bruce)</para></listitem>
2587 <listitem><para>Increase identifier length to 63 (Neil, Bruce)</para></listitem>
2588 <listitem><para>UNION fixes for merging >= 3 columns of different lengths (Tom)</para></listitem>
2589 <listitem><para>Add DEFAULT key word to INSERT, e.g., INSERT ... (..., DEFAULT, ...) (Rod)</para></listitem>
2590 <listitem><para>Allow views to have default values using ALTER COLUMN ... SET DEFAULT (Neil)</para></listitem>
2591 <listitem><para>Fail on INSERTs with column lists that don't supply all column values, e.g., INSERT INTO tab (col1, col2) VALUES ('val1');  (Rod)</para></listitem>
2592 <listitem><para>Fix for join aliases (Tom)</para></listitem>
2593 <listitem><para>Fix for FULL OUTER JOINs (Tom)</para></listitem>
2594 <listitem><para>Improve reporting of invalid identifier and location (Tom, Gavin)</para></listitem>
2595 <listitem><para>Fix OPEN cursor(args) (Tom)</para></listitem>
2596 <listitem><para>Allow 'ctid' to be used in a view and currtid(viewname) (Hiroshi)</para></listitem>
2597 <listitem><para>Fix for CREATE TABLE AS with UNION (Tom)</para></listitem>
2598 <listitem><para>SQL99 syntax improvements (Thomas)</para></listitem>
2599 <listitem><para>Add statement_timeout variable to cancel queries (Bruce)</para></listitem>
2600 <listitem><para>Allow prepared queries with PREPARE/EXECUTE (Neil)</para></listitem>
2601 <listitem><para>Allow FOR UPDATE to appear after LIMIT/OFFSET (Bruce)</para></listitem>
2602 <listitem><para>Add variable autocommit (Tom, David Van Wie)</para></listitem>
2603 </itemizedlist>
2604    </sect3>
2605
2606    <sect3>
2607     <title>Object Manipulation</title>
2608 <itemizedlist>
2609 <listitem><para>Make equals signs optional in CREATE DATABASE (Gavin Sherry)</para></listitem>
2610 <listitem><para>Make ALTER TABLE OWNER change index ownership too (Neil)</para></listitem>
2611 <listitem><para>New ALTER TABLE tabname ALTER COLUMN colname SET STORAGE controls TOAST storage, compression (John Gray)</para></listitem>
2612 <listitem><para>Add schema support, CREATE/DROP SCHEMA (Tom)</para></listitem>
2613 <listitem><para>Create schema for temporary tables (Tom)</para></listitem>
2614 <listitem><para>Add variable search_path for schema search (Tom)</para></listitem>
2615 <listitem><para>Add ALTER TABLE SET/DROP NOT NULL (Christopher)</para></listitem>
2616 <listitem><para>New CREATE FUNCTION volatility levels (Tom)</para></listitem>
2617 <listitem><para>Make rule names unique only per table (Tom)</para></listitem>
2618 <listitem><para>Add 'ON tablename' clause to DROP RULE and COMMENT ON RULE (Tom)</para></listitem>
2619 <listitem><para>Add ALTER TRIGGER RENAME (Joe)</para></listitem>
2620 <listitem><para>New current_schema() and current_schemas() inquiry functions (Tom)</para></listitem>
2621 <listitem><para>Allow functions to return multiple rows (table functions) (Joe)</para></listitem>
2622 <listitem><para>Make WITH optional in CREATE DATABASE, for consistency (Bruce)</para></listitem>
2623 <listitem><para>Add object dependency tracking (Rod, Tom)</para></listitem>
2624 <listitem><para>Add RESTRICT/CASCADE to DROP commands (Rod)</para></listitem>
2625 <listitem><para>Add ALTER TABLE DROP for non-CHECK CONSTRAINT (Rod)</para></listitem>
2626 <listitem><para>Autodestroy sequence on DROP of table with SERIAL (Rod)</para></listitem>
2627 <listitem><para>Prevent column dropping if column is used by foreign key (Rod)</para></listitem>
2628 <listitem><para>Automatically drop constraints/functions when object is dropped (Rod)</para></listitem>
2629 <listitem><para>Add CREATE/DROP OPERATOR CLASS (Bill Studenmund, Tom)</para></listitem>
2630 <listitem><para>Add ALTER TABLE DROP COLUMN (Christopher, Tom, Hiroshi)</para></listitem>
2631 <listitem><para>Prevent inherited columns from being removed or renamed (Alvaro Herrera)</para></listitem>
2632 <listitem><para>Fix foreign key constraints to not error on intermediate database states (Stephan)</para></listitem>
2633 <listitem><para>Propagate column or table renaming to foreign key constraints</para></listitem>
2634 <listitem><para>Add CREATE OR REPLACE VIEW (Gavin, Neil, Tom)</para></listitem>
2635 <listitem><para>Add CREATE OR REPLACE RULE (Gavin, Neil, Tom)</para></listitem>
2636 <listitem><para>Have rules execute alphabetically, returning more predictable values (Tom)</para></listitem>
2637 <listitem><para>Triggers are now fired in alphabetical order (Tom)</para></listitem>
2638 <listitem><para>Add /contrib/adddepend to handle pre-7.3 object dependencies (Rod)</para></listitem>
2639 <listitem><para>Allow better casting when inserting/updating values (Tom)</para></listitem>
2640 </itemizedlist>
2641    </sect3>
2642
2643    <sect3>
2644     <title>Utility Commands</title>
2645 <itemizedlist>
2646 <listitem><para>Have COPY TO output embedded carriage returns and newlines as \r and \n (Tom)</para></listitem>
2647 <listitem><para>Allow DELIMITER in COPY FROM to be 8-bit clean (Tatsuo)</para></listitem>
2648 <listitem><para>Make <application>pg_dump</> use ALTER TABLE ADD PRIMARY KEY, for performance (Neil)</para></listitem>
2649 <listitem><para>Disable brackets in multistatement rules (Bruce)</para></listitem>
2650 <listitem><para>Disable VACUUM from being called inside a function (Bruce)</para></listitem>
2651 <listitem><para>Allow dropdb and other scripts to use identifiers with spaces (Bruce)</para></listitem>
2652 <listitem><para>Restrict database comment changes to the current database</para></listitem>
2653 <listitem><para>Allow comments on operators, independent of the underlying function (Rod)</para></listitem>
2654 <listitem><para>Rollback SET commands in aborted transactions (Tom)</para></listitem>
2655 <listitem><para>EXPLAIN now outputs as a query (Tom)</para></listitem>
2656 <listitem><para>Display condition expressions and sort keys in EXPLAIN (Tom)</para></listitem>
2657 <listitem><para>Add 'SET LOCAL var = value' to set configuration variables for a single transaction (Tom)</para></listitem>
2658 <listitem><para>Allow ANALYZE to run in a transaction (Bruce)</para></listitem>
2659 <listitem><para>Improve COPY syntax using new WITH clauses, keep backward compatibility (Bruce)</para></listitem>
2660 <listitem><para>Fix <application>pg_dump</> to consistently output tags in non-ASCII dumps (Bruce)</para></listitem>
2661 <listitem><para>Make foreign key constraints clearer in dump file (Rod)</para></listitem>
2662 <listitem><para>Add COMMENT ON CONSTRAINT (Rod)</para></listitem>
2663 <listitem><para>Allow COPY TO/FROM to specify column names (Brent Verner)</para></listitem>
2664 <listitem><para>Dump UNIQUE and PRIMARY KEY constraints as ALTER TABLE (Rod)</para></listitem>
2665 <listitem><para>Have SHOW output a query result (Joe)</para></listitem>
2666 <listitem><para>Generate failure on short COPY lines rather than pad NULLs (Neil)</para></listitem>
2667 <listitem><para>Fix CLUSTER to preserve all table attributes (Alvaro Herrera)</para></listitem>
2668 <listitem><para>New pg_settings table to view/modify GUC settings (Joe)</para></listitem>
2669 <listitem><para>Add smart quoting, portability improvements to <application>pg_dump</> output (Peter)</para></listitem>
2670 <listitem><para>Dump serial columns out as SERIAL (Tom)</para></listitem>
2671 <listitem><para>Enable large file support, >2G for <application>pg_dump</> (Peter, Philip Warner, Bruce)</para></listitem>
2672 <listitem><para>Disallow TRUNCATE on tables that are involved in referential constraints (Rod)</para></listitem>
2673 <listitem><para>Have TRUNCATE also auto-truncate the toast table of the relation (Tom)</para></listitem>
2674 <listitem><para>Add clusterdb utility that will auto-cluster an entire database based on previous CLUSTER operations (Alvaro Herrera)</para></listitem>
2675 <listitem><para>Overhaul pg_dumpall (Peter)</para></listitem>
2676 <listitem><para>Allow REINDEX of TOAST tables (Tom)</para></listitem>
2677 <listitem><para>Implemented START TRANSACTION, per SQL99 (Neil)</para></listitem>
2678 <listitem><para>Fix rare index corruption when a page split affects bulk delete (Tom)</para></listitem>
2679 <listitem><para>Fix ALTER TABLE ... ADD COLUMN for inheritance (Alvaro Herrera)</para></listitem>
2680 </itemizedlist>
2681    </sect3>
2682
2683    <sect3>
2684     <title>Data Types and Functions</title>
2685 <itemizedlist>
2686 <listitem><para>Fix factorial(0) to return 1 (Bruce)</para></listitem>
2687 <listitem><para>Date/time/timezone improvements (Thomas)</para></listitem>
2688 <listitem><para>Fix for array slice extraction (Tom)</para></listitem>
2689 <listitem><para>Fix extract/date_part to report proper microseconds for timestamp (Tatsuo)</para></listitem>
2690 <listitem><para>Allow text_substr() and bytea_substr() to read TOAST values more efficiently (John Gray)</para></listitem>
2691 <listitem><para>Add domain support (Rod)</para></listitem>
2692 <listitem><para>Make WITHOUT TIME ZONE the default for TIMESTAMP and TIME data types (Thomas)</para></listitem>
2693 <listitem><para>Allow alternate storage scheme of 64-bit integers for date/time types using --enable-integer-datetimes in configure (Thomas)</para></listitem>
2694 <listitem><para>Make timezone(timestamptz) return timestamp rather than a string (Thomas)</para></listitem>
2695 <listitem><para>Allow fractional seconds in date/time types for dates prior to 1BC (Thomas)</para></listitem>
2696 <listitem><para>Limit timestamp data types to 6 decimal places of precision (Thomas)</para></listitem>
2697 <listitem><para>Change timezone conversion functions from timetz() to timezone() (Thomas)</para></listitem>
2698 <listitem><para>Add configuration variables datestyle and timezone (Tom)</para></listitem>
2699 <listitem><para>Add OVERLAY(), which allows substitution of a substring in a string (Thomas)</para></listitem>
2700 <listitem><para>Add SIMILAR TO (Thomas, Tom)</para></listitem>
2701 <listitem><para>Add regular expression SUBSTRING(string FROM pat FOR escape) (Thomas)</para></listitem>
2702 <listitem><para>Add LOCALTIME and LOCALTIMESTAMP functions (Thomas)</para></listitem>
2703 <listitem><para>Add named composite types using CREATE TYPE typename AS (column) (Joe)</para></listitem>
2704 <listitem><para>Allow composite type definition in the table alias clause (Joe)</para></listitem>
2705 <listitem><para>Add new API to simplify creation of C language table functions (Joe)</para></listitem>
2706 <listitem><para>Remove ODBC-compatible empty parentheses from calls to SQL99 functions for which these parentheses do not match the standard (Thomas)</para></listitem>
2707 <listitem><para>Allow macaddr data type to accept 12 hex digits with no separators (Mike Wyer)</para></listitem>
2708 <listitem><para>Add CREATE/DROP CAST (Peter)</para></listitem>
2709 <listitem><para>Add IS DISTINCT FROM operator (Thomas)</para></listitem>
2710 <listitem><para>Add SQL99 TREAT() function, synonym for CAST() (Thomas)</para></listitem>
2711 <listitem><para>Add pg_backend_pid() to output backend pid (Bruce)</para></listitem>
2712 <listitem><para>Add IS OF / IS NOT OF type predicate (Thomas)</para></listitem>
2713 <listitem><para>Allow bit string constants without fully-specified length (Thomas)</para></listitem>
2714 <listitem><para>Allow conversion between 8-byte integers and bit strings (Thomas)</para></listitem>
2715 <listitem><para>Implement hex literal conversion to bit string literal (Thomas)</para></listitem>
2716 <listitem><para>Allow table functions to appear in the FROM clause (Joe)</para></listitem>
2717 <listitem><para>Increase maximum number of function parameters to 32 (Bruce)</para></listitem>
2718 <listitem><para>No longer automatically create index for SERIAL column (Tom)</para></listitem>
2719 <listitem><para>Add current_database() (Rod)</para></listitem>
2720 <listitem><para>Fix cash_words() to not overflow buffer (Tom)</para></listitem>
2721 <listitem><para>Add functions replace(), split_part(), to_hex() (Joe)</para></listitem>
2722 <listitem><para>Fix LIKE for bytea as a right-hand argument (Joe)</para></listitem>
2723 <listitem><para>Prevent crashes caused by SELECT cash_out(2) (Tom)</para></listitem>
2724 <listitem><para>Fix to_char(1,'FM999.99') to return a period (Karel)</para></listitem>
2725 <listitem><para>Fix trigger/type/language functions returning OPAQUE to return proper type (Tom)</para></listitem>
2726 </itemizedlist>
2727    </sect3>
2728
2729    <sect3>
2730     <title>Internationalization</title>
2731 <itemizedlist>
2732 <listitem><para>Add additional encodings: Korean (JOHAB), Thai (WIN874), Vietnamese (TCVN), Arabic (WIN1256), Simplified Chinese (GBK), Korean (UHC) (Eiji Tokuya)</para></listitem>
2733 <listitem><para>Enable locale support by default (Peter)</para></listitem>
2734 <listitem><para>Add locale variables (Peter)</para></listitem>
2735 <listitem><para>Escape byes >= 0x7f for multibyte in PQescapeBytea/PQunescapeBytea (Tatsuo)</para></listitem>
2736 <listitem><para>Add locale awareness to regular expression character classes</para></listitem>
2737 <listitem><para>Enable multibyte support by default (Tatsuo)</para></listitem>
2738 <listitem><para>Add GB18030 multibyte support (Bill Huang)</para></listitem>
2739 <listitem><para>Add CREATE/DROP CONVERSION, allowing loadable encodings (Tatsuo, Kaori)</para></listitem>
2740 <listitem><para>Add pg_conversion table (Tatsuo)</para></listitem>
2741 <listitem><para>Add SQL99 CONVERT() function (Tatsuo)</para></listitem>
2742 <listitem><para>pg_dumpall, pg_controldata, and pg_resetxlog now national-language aware (Peter)</para></listitem>
2743 <listitem><para>New and updated translations</para></listitem>
2744 </itemizedlist>
2745    </sect3>
2746
2747    <sect3>
2748     <title>Server-side Languages</title>
2749 <itemizedlist>
2750 <listitem><para>Allow recursive SQL function (Peter)</para></listitem>
2751 <listitem><para>Change PL/Tcl build to use configured compiler and Makefile.shlib (Peter)</para></listitem>
2752 <listitem><para>Overhaul the PL/pgSQL FOUND variable to be more Oracle-compatible (Neil, Tom)</para></listitem>
2753 <listitem><para>Allow PL/pgSQL to handle quoted identifiers (Tom)</para></listitem>
2754 <listitem><para>Allow set-returning PL/pgSQL functions (Neil)</para></listitem>
2755 <listitem><para>Make PL/pgSQL schema-aware (Joe)</para></listitem>
2756 <listitem><para>Remove some memory leaks (Nigel J. Andrews, Tom)</para></listitem>
2757 </itemizedlist>
2758    </sect3>
2759
2760    <sect3>
2761     <title>psql</title>
2762 <itemizedlist>
2763 <listitem><para>Don't lowercase psql \connect database name for 7.2.0 compatibility (Tom)</para></listitem>
2764 <listitem><para>Add psql \timing to time user queries (Greg Sabino Mullane)</para></listitem>
2765 <listitem><para>Have psql \d show index information (Greg Sabino Mullane)</para></listitem>
2766 <listitem><para>New psql \dD shows domains (Jonathan Eisler)</para></listitem>
2767 <listitem><para>Allow psql to show rules on views (Paul ?)</para></listitem>
2768 <listitem><para>Fix for psql variable substitution (Tom)</para></listitem>
2769 <listitem><para>Allow psql \d to show temporary table structure (Tom)</para></listitem>
2770 <listitem><para>Allow psql \d to show foreign keys (Rod)</para></listitem>
2771 <listitem><para>Fix \? to honor \pset pager (Bruce)</para></listitem>
2772 <listitem><para>Have psql reports its version number on startup (Tom)</para></listitem>
2773 <listitem><para>Allow \copy to specify column names (Tom)</para></listitem>
2774 </itemizedlist>
2775    </sect3>
2776
2777    <sect3>
2778     <title>libpq</title>
2779 <itemizedlist>
2780 <listitem><para>Add $HOME/.pgpass to store host/user password combinations (Alvaro Herrera)</para></listitem>
2781 <listitem><para>Add PQunescapeBytea() function to libpq (Patrick Welche)</para></listitem>
2782 <listitem><para>Fix for sending large queries over non-blocking connections (Bernhard Herzog)</para></listitem>
2783 <listitem><para>Fix for libpq using timers on Win9X (David Ford)</para></listitem>
2784 <listitem><para>Allow libpq notify to handle servers with different-length identifiers (Tom)</para></listitem>
2785 <listitem><para>Add libpq PQescapeString() and PQescapeBytea() to Windows (Bruce)</para></listitem>
2786 <listitem><para>Fix for SSL with non-blocking connections (Jack Bates)</para></listitem>
2787 <listitem><para>Add libpq connection timeout parameter (Denis A Ustimenko)</para></listitem>
2788 </itemizedlist>
2789    </sect3>
2790
2791    <sect3>
2792     <title>JDBC</title>
2793 <itemizedlist>
2794 <listitem><para>Allow JDBC to compile with JDK 1.4 (Dave)</para></listitem>
2795 <listitem><para>Add JDBC 3 support (Barry)</para></listitem>
2796 <listitem><para>Allows JDBC to set loglevel by adding ?loglevel=X to the connection URL (Barry)</para></listitem>
2797 <listitem><para>Add Driver.info() message that prints out the version number (Barry)</para></listitem>
2798 <listitem><para>Add updateable result sets (Raghu Nidagal, Dave)</para></listitem>
2799 <listitem><para>Add support for callable statements (Paul Bethe)</para></listitem>
2800 <listitem><para>Add query cancel capability</para></listitem>
2801 <listitem><para>Add refresh row (Dave)</para></listitem>
2802 <listitem><para>Fix MD5 encryption handling for multibyte servers (Jun Kawai)</para></listitem>
2803 <listitem><para>Add support for prepared statements (Barry)</para></listitem>
2804 </itemizedlist>
2805    </sect3>
2806
2807    <sect3>
2808     <title>Miscellaneous Interfaces</title>
2809 <itemizedlist>
2810 <listitem><para>Fixed ECPG bug concerning octal numbers in single quotes (Michael)</para></listitem>
2811 <listitem><para>Move src/interfaces/libpgeasy to http://gborg.postgresql.org (Marc, Bruce)</para></listitem>
2812 <listitem><para>Improve Python interface (Elliot Lee, Andrew Johnson, Greg Copeland)</para></listitem>
2813 <listitem><para>Add libpgtcl connection close event (Gerhard Hintermayer)</para></listitem>
2814 <listitem><para>Move src/interfaces/libpq++ to http://gborg.postgresql.org (Marc, Bruce)</para></listitem>
2815 <listitem><para>Move src/interfaces/odbc to http://gborg.postgresql.org (Marc)</para></listitem>
2816 <listitem><para>Move src/interfaces/libpgeasy to http://gborg.postgresql.org (Marc, Bruce)</para></listitem>
2817 <listitem><para>Move src/interfaces/perl5 to http://gborg.postgresql.org (Marc, Bruce)</para></listitem>
2818 <listitem><para>Remove src/bin/pgaccess from main tree, now at http://www.pgaccess.org (Bruce)</para></listitem>
2819 <listitem><para>Add pg_on_connection_loss command to libpgtcl (Gerhard Hintermayer, Tom)</para></listitem>
2820 </itemizedlist>
2821    </sect3>
2822
2823    <sect3>
2824     <title>Source Code</title>
2825 <itemizedlist>
2826 <listitem><para>Fix for parallel make (Peter)</para></listitem>
2827 <listitem><para>AIX fixes for linking Tcl (Andreas Zeugswetter)</para></listitem>
2828 <listitem><para>Allow PL/Perl to build under Cygwin (Jason Tishler)</para></listitem>
2829 <listitem><para>Improve MIPS compiles (Peter, Oliver Elphick)</para></listitem>
2830 <listitem><para>Require Autoconf version 2.53 (Peter)</para></listitem>
2831 <listitem><para>Require readline and zlib by default in configure (Peter)</para></listitem>
2832 <listitem><para>Allow Solaris to use Intimate Shared Memory (ISM), for performance (Scott Brunza, P.J. Josh Rovero)</para></listitem>
2833 <listitem><para>Always enable syslog in compile, remove --enable-syslog option (Tatsuo)</para></listitem>
2834 <listitem><para>Always enable multibyte in compile, remove --enable-multibyte option (Tatsuo)</para></listitem>
2835 <listitem><para>Always enable locale in compile, remove --enable-locale option (Peter)</para></listitem>
2836 <listitem><para>Fix for Win9x DLL creation (Magnus Naeslund)</para></listitem>
2837 <listitem><para>Fix for link() usage by WAL code on Windows, BeOS (Jason Tishler)</para></listitem>
2838 <listitem><para>Add sys/types.h to c.h, remove from main files (Peter, Bruce)</para></listitem>
2839 <listitem><para>Fix AIX hang on SMP machines (Tomoyuki Niijima)</para></listitem>
2840 <listitem><para>AIX SMP hang fix (Tomoyuki Niijima)</para></listitem>
2841 <listitem><para>Fix pre-1970 date handling on newer glibc libraries (Tom)</para></listitem>
2842 <listitem><para>Fix PowerPC SMP locking (Tom)</para></listitem>
2843 <listitem><para>Prevent gcc -ffast-math from being used (Peter, Tom)</para></listitem>
2844 <listitem><para>Bison &gt;= 1.50 now required for developer builds</para></listitem>
2845 <listitem><para>Kerberos 5 support now builds with Heimdal (Peter)</para></listitem>
2846 <listitem><para>Add appendix in the User's Guide which lists SQL features (Thomas)</para></listitem>
2847 <listitem><para>Improve loadable module linking to use RTLD_NOW (Tom)</para></listitem>
2848 <listitem><para>New error levels WARNING, INFO, LOG, DEBUG[1-5] (Bruce)</para></listitem>
2849 <listitem><para>New src/port directory holds replaced libc functions (Peter, Bruce)</para></listitem>
2850 <listitem><para>New pg_namespace system catalog for schemas (Tom)</para></listitem>
2851 <listitem><para>Add pg_class.relnamespace for schemas (Tom)</para></listitem>
2852 <listitem><para>Add pg_type.typnamespace for schemas (Tom)</para></listitem>
2853 <listitem><para>Add pg_proc.pronamespace for schemas (Tom)</para></listitem>
2854 <listitem><para>Restructure aggregates to have pg_proc entries (Tom)</para></listitem>
2855 <listitem><para>System relations now have their own namespace, pg_* test not required (Fernando Nasser)</para></listitem>
2856 <listitem><para>Rename TOAST index names to be *_index rather than *_idx (Neil)</para></listitem>
2857 <listitem><para>Add namespaces for operators, opclasses (Tom)</para></listitem>
2858 <listitem><para>Add additional checks to server control file (Thomas)</para></listitem>
2859 <listitem><para>New Polish FAQ (Marcin Mazurek)</para></listitem>
2860 <listitem><para>Add Posix semaphore support (Tom)</para></listitem>
2861 <listitem><para>Document need for reindex (Bruce)</para></listitem>
2862 <listitem><para>Rename some internal identifiers to simplify Windows compile (Jan, Katherine Ward)</para></listitem>
2863 <listitem><para>Add documentation on computing disk space (Bruce)</para></listitem>
2864 <listitem><para>Remove KSQO from GUC (Bruce)</para></listitem>
2865 <listitem><para>Fix memory leak in rtree (Kenneth Been)</para></listitem>
2866 <listitem><para>Modify a few error messages for consistency (Bruce)</para></listitem>
2867 <listitem><para>Remove unused system table columns (Peter)</para></listitem>
2868 <listitem><para>Make system columns NOT NULL where appropriate (Tom)</para></listitem>
2869 <listitem><para>Clean up use of sprintf in favor of snprintf() (Neil, Jukka Holappa)</para></listitem>
2870 <listitem><para>Remove OPAQUE and create specific subtypes (Tom)</para></listitem>
2871 <listitem><para>Cleanups in array internal handling (Joe, Tom)</para></listitem>
2872 <listitem><para>Disallow pg_atoi('') (Bruce)</para></listitem>
2873 <listitem><para>Remove parameter wal_files because WAL files are now recycled (Bruce)</para></listitem>
2874 <listitem><para>Add version numbers to heap pages (Tom)</para></listitem>
2875 </itemizedlist>
2876    </sect3>
2877
2878    <sect3>
2879     <title>Contrib</title>
2880 <itemizedlist>
2881 <listitem><para>Allow inet arrays in /contrib/array (Neil)</para></listitem>
2882 <listitem><para>GiST fixes (Teodor Sigaev, Neil)</para></listitem>
2883 <listitem><para>Upgrade /contrib/mysql</para></listitem>
2884 <listitem><para>Add /contrib/dbsize which shows table sizes without vacuum (Peter)</para></listitem>
2885 <listitem><para>Add /contrib/intagg, integer aggregator routines (mlw)</para></listitem>
2886 <listitem><para>Improve /contrib/oid2name (Neil, Bruce)</para></listitem>
2887 <listitem><para>Improve /contrib/tsearch (Oleg, Teodor Sigaev)</para></listitem>
2888 <listitem><para>Cleanups of /contrib/rserver (Alexey V. Borzov)</para></listitem>
2889 <listitem><para>Update /contrib/oracle conversion utility (Gilles Darold)</para></listitem>
2890 <listitem><para>Update /contrib/dblink (Joe)</para></listitem>
2891 <listitem><para>Improve options supported by /contrib/vacuumlo (Mario Weilguni)</para></listitem>
2892 <listitem><para>Improvements to /contrib/intarray (Oleg, Teodor Sigaev, Andrey Oktyabrski)</para></listitem>
2893 <listitem><para>Add /contrib/reindexdb utility (Shaun Thomas)</para></listitem>
2894 <listitem><para>Add indexing to /contrib/isbn_issn (Dan Weston)</para></listitem>
2895 <listitem><para>Add /contrib/dbmirror (Steven Singer)</para></listitem>
2896 <listitem><para>Improve /contrib/pgbench (Neil)</para></listitem>
2897 <listitem><para>Add /contrib/tablefunc table function examples (Joe)</para></listitem>
2898 <listitem><para>Add /contrib/ltree data type for tree structures (Teodor Sigaev, Oleg Bartunov)</para></listitem>
2899 <listitem><para>Move /contrib/pg_controldata, pg_resetxlog into main tree (Bruce)</para></listitem>
2900 <listitem><para>Fixes to /contrib/cube (Bruno Wolff)</para></listitem>
2901 <listitem><para>Improve /contrib/fulltextindex (Christopher)</para></listitem>
2902 </itemizedlist>
2903    </sect3>
2904
2905   </sect2>
2906  </sect1>
2907
2908
2909  <sect1 id="release-7-2-4">
2910   <title>Release 7.2.4</title>
2911
2912   <note>
2913    <title>Release date</title>
2914    <simpara>2003-01-30</simpara>
2915   </note>
2916
2917   <para>
2918    This release contains a variety of fixes for version 7.2.3,
2919    including fixes to prevent possible data loss.
2920   </para>
2921
2922   <sect2>
2923    <title>Migration to version 7.2.4</title>
2924
2925    <para>
2926     A dump/restore is <emphasis>not</emphasis> required for those
2927     running version 7.2.*.
2928    </para>
2929   </sect2>
2930
2931   <sect2>
2932    <title>Changes</title>
2933
2934 <itemizedlist>
2935 <listitem><para>Fix some additional cases of VACUUM "No one parent tuple was found" error</para></listitem>
2936 <listitem><para>Prevent VACUUM from being called inside a function  (Bruce)</para></listitem>
2937 <listitem><para>Ensure pg_clog updates are sync'd to disk before marking checkpoint complete</para></listitem>
2938 <listitem><para>Avoid integer overflow during large hash joins</para></listitem>
2939 <listitem><para>Make GROUP commands work when pg_group.grolist is large enough to be toasted</para></listitem>
2940 <listitem><para>Fix errors in datetime tables; some timezone names weren't being recognized</para></listitem>
2941 <listitem><para>Fix integer overflows in circle_poly(), path_encode(), path_add()  (Neil)</para></listitem>
2942 <listitem><para>Repair long-standing logic errors in lseg_eq(), lseg_ne(), lseg_center()</para></listitem>
2943 </itemizedlist>
2944   </sect2>
2945  </sect1>
2946
2947
2948  <sect1 id="release-7-2-3">
2949   <title>Release 7.2.3</title>
2950
2951   <note>
2952    <title>Release date</title>
2953    <simpara>2002-10-01</simpara>
2954   </note>
2955
2956   <para>
2957    This release contains a variety of fixes for version 7.2.2,
2958    including fixes to prevent possible data loss.
2959   </para>
2960
2961   <sect2>
2962    <title>Migration to version 7.2.3</title>
2963
2964    <para>
2965     A dump/restore is <emphasis>not</emphasis> required for those
2966     running version 7.2.*.
2967    </para>
2968   </sect2>
2969
2970   <sect2>
2971    <title>Changes</title>
2972
2973 <itemizedlist>
2974 <listitem><para>Prevent possible compressed transaction log loss (Tom)</para></listitem>
2975 <listitem><para>Prevent non-superuser from increasing most recent vacuum info (Tom)</para></listitem>
2976 <listitem><para>Handle pre-1970 date values in newer versions of glibc (Tom)</para></listitem>
2977 <listitem><para>Fix possible hang during server shutdown</para></listitem>
2978 <listitem><para>Prevent spinlock hangs on SMP PPC machines (Tomoyuki Niijima)</para></listitem>
2979 <listitem><para>Fix <application>pg_dump</> to properly dump FULL JOIN USING (Tom)</para></listitem>
2980 </itemizedlist>
2981   </sect2>
2982  </sect1>
2983   
2984   
2985  <sect1 id="release-7-2-2">
2986   <title>Release 7.2.2</title>
2987
2988   <note>
2989    <title>Release date</title>
2990    <simpara>2002-08-23</simpara>
2991   </note>
2992
2993   <para>
2994    This release contains a variety of fixes for version 7.2.1.
2995   </para>
2996
2997   <sect2>
2998    <title>Migration to version 7.2.2</title>
2999
3000    <para>
3001     A dump/restore is <emphasis>not</emphasis> required for those
3002     running version 7.2.*.
3003    </para>
3004   </sect2>
3005
3006   <sect2>
3007    <title>Changes</title>
3008
3009 <itemizedlist>
3010 <listitem><para>Allow EXECUTE of "CREATE TABLE AS ... SELECT" in PL/pgSQL (Tom)</para></listitem>
3011 <listitem><para>Fix for compressed transaction log id wraparound (Tom)</para></listitem>
3012 <listitem><para>Fix PQescapeBytea/PQunescapeBytea so that they handle bytes > 0x7f (Tatsuo)</para></listitem>
3013 <listitem><para>Fix for psql and <application>pg_dump</> crashing when invoked with non-existent long options (Tatsuo)</para></listitem>
3014 <listitem><para>Fix crash when invoking geometric operators (Tom)</para></listitem>
3015 <listitem><para>Allow OPEN cursor(args) (Tom)</para></listitem>
3016 <listitem><para>Fix for rtree_gist index build (Teodor)</para></listitem>
3017 <listitem><para>Fix for dumping user-defined aggregates (Tom)</para></listitem>
3018 <listitem><para>contrib/intarray fixes (Oleg)</para></listitem>
3019 <listitem><para>Fix for complex UNION/EXCEPT/INTERSECT queries using parens (Tom)</para></listitem>
3020 <listitem><para>Fix to pg_convert (Tatsuo)</para></listitem>
3021 <listitem><para>Fix for crash with long DATA strings (Thomas, Neil)</para></listitem>
3022 <listitem><para>Fix for repeat(), lpad(), rpad() and long strings (Neil)</para></listitem>
3023 </itemizedlist>
3024   </sect2>
3025  </sect1>
3026   
3027   
3028  <sect1 id="release-7-2-1">
3029   <title>Release 7.2.1</title>
3030
3031   <note>
3032    <title>Release date</title>
3033    <simpara>2002-03-21</simpara>
3034   </note>
3035
3036   <para>
3037    This release contains a variety of fixes for version 7.2.
3038   </para>
3039
3040   <sect2>
3041    <title>Migration to version 7.2.1</title>
3042
3043    <para>
3044     A dump/restore is <emphasis>not</emphasis> required for those
3045     running version 7.2.
3046    </para>
3047   </sect2>
3048
3049   <sect2>
3050    <title>Changes</title>
3051
3052 <itemizedlist>
3053 <listitem><para>Ensure that sequence counters do not go backwards after a crash (Tom)</para></listitem>
3054 <listitem><para>Fix pgaccess kanji-conversion key binding (Tatsuo)</para></listitem>
3055 <listitem><para>Optimizer improvements (Tom)</para></listitem>
3056 <listitem><para>Cash I/O improvements (Tom)</para></listitem>
3057 <listitem><para>New Russian FAQ</para></listitem>
3058 <listitem><para>Compile fix for missing AuthBlockSig (Heiko)</para></listitem>
3059 <listitem><para>Additional time zones and time zone fixes (Thomas)</para></listitem>
3060 <listitem><para>Allow psql \connect to handle mixed case database and user names (Tom)</para></listitem>
3061 <listitem><para>Return proper OID on command completion even with ON INSERT rules (Tom)</para></listitem>
3062 <listitem><para>Allow COPY FROM to use 8-bit DELIMITERS (Tatsuo)</para></listitem>
3063 <listitem><para>Fix bug in extract/date_part for milliseconds/microseconds (Tatsuo)</para></listitem>
3064 <listitem><para>Improve handling of multiple UNIONs with different lengths (Tom)</para></listitem>
3065 <listitem><para>contrib/btree_gist improvements (Teodor Sigaev)</para></listitem>
3066 <listitem><para>contrib/tsearch dictionary improvements, see README.tsearch for an additional installation step (Thomas T. Thai, Teodor Sigaev)</para></listitem>
3067 <listitem><para>Fix for array subscripts handling (Tom)</para></listitem>
3068 <listitem><para>Allow EXECUTE of "CREATE TABLE AS ... SELECT" in PL/pgSQL (Tom)</para></listitem>
3069 </itemizedlist>
3070   </sect2>
3071  </sect1>
3072
3073
3074  <sect1 id="release-7-2">
3075   <title>Release 7.2</title>
3076
3077   <note>
3078    <title>Release date</title>
3079    <simpara>2002-02-04</simpara>
3080   </note>
3081
3082   <sect2>
3083    <title>Overview</title>
3084
3085    <para>
3086     This release improves <productname>PostgreSQL</> for use in
3087     high-volume applications.
3088    </para>
3089
3090    <para>
3091     Major changes in this release:
3092
3093     <variablelist>
3094      <varlistentry>
3095       <term>VACUUM</term>
3096       <listitem>
3097        <para>
3098         Vacuuming no longer locks tables, thus allowing normal user
3099         access during the vacuum.  A new <command>VACUUM FULL</>
3100         command does old-style vacuum by locking the table and
3101         shrinking the on-disk copy of the table.
3102        </para>
3103       </listitem>
3104      </varlistentry>
3105  
3106      <varlistentry>
3107       <term>Transactions</term>
3108       <listitem>
3109        <para>
3110         There is no longer a problem with installations that exceed
3111         four billion transactions.
3112        </para>
3113       </listitem>
3114      </varlistentry>
3115  
3116      <varlistentry>
3117       <term>OIDs</term>
3118       <listitem>
3119        <para>
3120         OIDs are now optional.  Users can now create tables without
3121         OIDs for cases where OID usage is excessive.
3122        </para>
3123       </listitem>
3124      </varlistentry>
3125  
3126      <varlistentry>
3127       <term>Optimizer</term>
3128       <listitem>
3129        <para>
3130         The system now computes histogram column statistics during
3131         <command>ANALYZE</>, allowing much better optimizer choices.
3132        </para>
3133       </listitem>
3134      </varlistentry>
3135  
3136      <varlistentry>
3137       <term>Security</term>
3138       <listitem>
3139        <para>
3140         A new MD5 encryption option allows more secure storage and
3141         transfer of passwords.  A new Unix-domain socket
3142         authentication option is available on Linux and BSD systems.
3143        </para>
3144       </listitem>
3145      </varlistentry>
3146  
3147      <varlistentry>
3148       <term>Statistics</term>
3149       <listitem>
3150        <para>
3151         Administrators can use the new table access statistics module
3152         to get fine-grained information about table and index usage.
3153        </para>
3154       </listitem>
3155      </varlistentry>
3156
3157      <varlistentry>
3158       <term>Internationalization</term>
3159       <listitem>
3160        <para>
3161         Program and library messages can now be displayed in several
3162         languages.
3163        </para>
3164       </listitem>
3165      </varlistentry>
3166     </variablelist>
3167    </para>
3168   </sect2>
3169
3170   <sect2>
3171    <title>Migration to version 7.2</title>
3172
3173    <para>
3174     A dump/restore using <command>pg_dump</command> is required for
3175     those wishing to migrate data from any previous release.
3176    </para>
3177
3178    <para>
3179     Observe the following incompatibilities:
3180
3181     <itemizedlist>
3182      <listitem>
3183       <para>
3184        The semantics of the <command>VACUUM</command> command have
3185        changed in this release.  You may wish to update your
3186        maintenance procedures accordingly.
3187       </para>
3188      </listitem>
3189
3190      <listitem>
3191       <para>
3192        In this release, comparisons using <literal>= NULL</literal>
3193        will always return false (or NULL, more precisely).  Previous
3194        releases automatically transformed this syntax to <literal>IS
3195        NULL</literal>.  The old behavior can be re-enabled using a
3196        <filename>postgresql.conf</filename> parameter.
3197       </para>
3198      </listitem>
3199
3200      <listitem>
3201       <para>
3202        The <filename>pg_hba.conf</> and <filename>pg_ident.conf</>
3203        configuration is now only reloaded after receiving a
3204        <systemitem>SIGHUP</> signal, not with each connection.
3205       </para>
3206      </listitem>
3207
3208      <listitem>
3209       <para>
3210        The function <filename>octet_length()</> now returns the uncompressed data length.
3211       </para>
3212      </listitem>
3213
3214      <listitem>
3215       <para>
3216        The date/time value <literal>'current'</literal> is no longer
3217        available.  You will need to rewrite your applications.
3218       </para>
3219      </listitem>
3220
3221      <listitem>
3222       <para>
3223        The <literal>timestamp()</literal>, <literal>time()</literal>,
3224        and <literal>interval()</literal> functions are no longer
3225        available.  Instead of <literal>timestamp()</literal>, use 
3226        <literal>timestamp 'string'</literal> or <literal>CAST</literal>.
3227       </para>
3228      </listitem>
3229     </itemizedlist>
3230    </para>
3231
3232    <para>
3233     The <literal>SELECT ... LIMIT #,#</literal> syntax will be removed
3234     in the next release. You should change your queries to use
3235     separate LIMIT and OFFSET clauses, e.g. <literal>LIMIT 10 OFFSET
3236     20</literal>.
3237    </para>
3238   </sect2>
3239
3240   <sect2>
3241    <title>Changes</title>
3242
3243    <sect3>
3244     <title>Server Operation</title>
3245 <itemizedlist>
3246 <listitem><para>Create temporary files in a separate directory (Bruce)</para></listitem>
3247 <listitem><para>Delete orphaned temporary files on postmaster startup (Bruce)</para></listitem>
3248 <listitem><para>Added unique indexes to some system tables (Tom)</para></listitem>
3249 <listitem><para>System table operator reorganization (Oleg Bartunov, Teodor Sigaev, Tom)</para></listitem>
3250 <listitem><para>Renamed pg_log to pg_clog (Tom)</para></listitem>
3251 <listitem><para>Enable SIGTERM, SIGQUIT to kill backends (Jan)</para></listitem>
3252 <listitem><para>Removed compile-time limit on number of backends (Tom)</para></listitem>
3253 <listitem><para>Better cleanup for semaphore resource failure (Tatsuo, Tom)</para></listitem>
3254 <listitem><para>Allow safe transaction ID wraparound (Tom)</para></listitem>
3255 <listitem><para>Removed OIDs from some system tables (Tom)</para></listitem>
3256 <listitem><para>Removed "triggered data change violation" error check (Tom)</para></listitem>
3257 <listitem><para>SPI portal creation of prepared/saved plans (Jan)</para></listitem>
3258 <listitem><para>Allow SPI column functions to work for system columns (Tom)</para></listitem>
3259 <listitem><para>Long value compression improvement (Tom)</para></listitem>
3260 <listitem><para>Statistics collector for table, index access (Jan)</para></listitem>
3261 <listitem><para>Truncate extra-long sequence names to a reasonable value (Tom)</para></listitem>
3262 <listitem><para>Measure transaction times in milliseconds (Thomas)</para></listitem>
3263 <listitem><para>Fix TID sequential scans (Hiroshi)</para></listitem>
3264 <listitem><para>Superuser ID now fixed at 1 (Peter E)</para></listitem>
3265 <listitem><para>New pg_ctl "reload" option (Tom)</para></listitem>
3266 </itemizedlist>
3267    </sect3>
3268
3269    <sect3>
3270     <title>Performance</title>
3271 <itemizedlist>
3272 <listitem><para>Optimizer improvements (Tom)</para></listitem>
3273 <listitem><para>New histogram column statistics for optimizer (Tom)</para></listitem>
3274 <listitem><para>Reuse write-ahead log files rather than discarding them (Tom)</para></listitem>
3275 <listitem><para>Cache improvements (Tom)</para></listitem>
3276 <listitem><para>IS NULL, IS NOT NULL optimizer improvement (Tom)</para></listitem>
3277 <listitem><para>Improve lock manager to reduce lock contention (Tom)</para></listitem>
3278 <listitem><para>Keep relcache entries for index access support functions (Tom)</para></listitem>
3279 <listitem><para>Allow better selectivity with NaN and infinities in NUMERIC (Tom)</para></listitem>
3280 <listitem><para>R-tree performance improvements (Kenneth Been)</para></listitem>
3281 <listitem><para>B-tree splits more efficient (Tom)</para></listitem>
3282 </itemizedlist>
3283    </sect3>
3284
3285    <sect3>
3286     <title>Privileges</title>
3287 <itemizedlist>
3288 <listitem><para>Change UPDATE, DELETE privileges to be distinct (Peter E)</para></listitem>
3289 <listitem><para>New REFERENCES, TRIGGER privileges (Peter E)</para></listitem>
3290 <listitem><para>Allow GRANT/REVOKE to/from more than one user at a time (Peter E)</para></listitem>
3291 <listitem><para>New has_table_privilege() function (Joe Conway)</para></listitem>
3292 <listitem><para>Allow non-superuser to vacuum database (Tom)</para></listitem>
3293 <listitem><para>New SET SESSION AUTHORIZATION command (Peter E)</para></listitem>
3294 <listitem><para>Fix bug in privilege modifications on newly created tables (Tom)</para></listitem>
3295 <listitem><para>Disallow access to pg_statistic for non-superuser, add user-accessible views (Tom)</para></listitem>
3296 </itemizedlist>
3297    </sect3>
3298
3299    <sect3>
3300     <title>Client Authentication</title>
3301 <itemizedlist>
3302 <listitem><para>Fork postmaster before doing authentication to prevent hangs (Peter E)</para></listitem>
3303 <listitem><para>Add ident authentication over Unix domain sockets on Linux, *BSD (Helge Bahmann, Oliver Elphick, Teodor Sigaev, Bruce)</para></listitem>
3304 <listitem><para>Add a password authentication method that uses MD5 encryption (Bruce)</para></listitem>
3305 <listitem><para>Allow encryption of stored passwords using MD5 (Bruce)</para></listitem>
3306 <listitem><para>PAM authentication (Dominic J. Eidson)</para></listitem>
3307 <listitem><para>Load pg_hba.conf and pg_ident.conf only on startup and SIGHUP (Bruce)</para></listitem>
3308 </itemizedlist>
3309    </sect3>
3310
3311    <sect3>
3312     <title>Server Configuration</title>
3313 <itemizedlist>
3314 <listitem><para>Interpretation of some time zone abbreviations as Australian rather than North American now settable at run time (Bruce)</para></listitem>
3315 <listitem><para>New parameter to set default transaction isolation level (Peter E)</para></listitem>
3316 <listitem><para>New parameter to enable conversion of "expr = NULL" into "expr IS NULL", off by default (Peter E)</para></listitem>
3317 <listitem><para>New parameter to control memory usage by VACUUM (Tom)</para></listitem>
3318 <listitem><para>New parameter to set client authentication timeout (Tom)</para></listitem>
3319 <listitem><para>New parameter to set maximum number of open files (Tom)</para></listitem>
3320 </itemizedlist>
3321    </sect3>
3322
3323    <sect3>
3324     <title>Queries</title>
3325 <itemizedlist>
3326 <listitem><para>Statements added by INSERT rules now execute after the INSERT (Jan)</para></listitem>
3327 <listitem><para>Prevent unadorned relation names in target list (Bruce)</para></listitem>
3328 <listitem><para>NULLs now sort after all normal values in ORDER BY (Tom)</para></listitem>
3329 <listitem><para>New IS UNKNOWN, IS NOT UNKNOWN Boolean tests (Tom)</para></listitem>
3330 <listitem><para>New SHARE UPDATE EXCLUSIVE lock mode (Tom)</para></listitem>
3331 <listitem><para>New EXPLAIN ANALYZE command that shows run times and row counts (Martijn van Oosterhout)</para></listitem>
3332 <listitem><para>Fix problem with LIMIT and subqueries (Tom)</para></listitem>
3333 <listitem><para>Fix for LIMIT, DISTINCT ON pushed into subqueries (Tom)</para></listitem>
3334 <listitem><para>Fix nested EXCEPT/INTERSECT (Tom)</para></listitem>
3335 </itemizedlist>
3336    </sect3>
3337
3338    <sect3>
3339     <title>Schema Manipulation</title>
3340 <itemizedlist>
3341 <listitem><para>Fix SERIAL in temporary tables (Bruce)</para></listitem>
3342 <listitem><para>Allow temporary sequences (Bruce)</para></listitem>
3343 <listitem><para>Sequences now use int8 internally (Tom)</para></listitem>
3344 <listitem><para>New SERIAL8 creates int8 columns with sequences, default still SERIAL4 (Tom)</para></listitem>
3345 <listitem><para>Make OIDs optional using WITHOUT OIDS (Tom)</para></listitem>
3346 <listitem><para>Add %TYPE syntax to CREATE TYPE (Ian Lance Taylor)</para></listitem>
3347 <listitem><para>Add ALTER TABLE / DROP CONSTRAINT for CHECK constraints (Christopher Kings-Lynne)</para></listitem>
3348 <listitem><para>New CREATE OR REPLACE FUNCTION to alter existing function (preserving the function OID) (Gavin Sherry)</para></listitem>
3349 <listitem><para>Add ALTER TABLE / ADD [ UNIQUE | PRIMARY ] (Christopher Kings-Lynne)</para></listitem>
3350 <listitem><para>Allow column renaming in views</para></listitem>
3351 <listitem><para>Make ALTER TABLE / RENAME COLUMN update column names of indexes (Brent Verner)</para></listitem>
3352 <listitem><para>Fix for ALTER TABLE / ADD CONSTRAINT ... CHECK with inherited tables (Stephan Szabo)</para></listitem>
3353 <listitem><para>ALTER TABLE RENAME update foreign-key trigger arguments correctly (Brent Verner)</para></listitem>
3354 <listitem><para>DROP AGGREGATE and COMMENT ON AGGREGATE now accept an aggtype (Tom)</para></listitem>
3355 <listitem><para>Add automatic return type data casting for SQL functions (Tom)</para></listitem>
3356 <listitem><para>Allow GiST indexes to handle NULLs and multikey indexes (Oleg Bartunov, Teodor Sigaev, Tom)</para></listitem>
3357 <listitem><para>Enable partial indexes (Martijn van Oosterhout)</para></listitem>
3358 </itemizedlist>
3359    </sect3>
3360
3361    <sect3>
3362     <title>Utility Commands</title>
3363 <itemizedlist>
3364 <listitem><para>Add RESET ALL, SHOW ALL (Marko Kreen)</para></listitem>
3365 <listitem><para>CREATE/ALTER USER/GROUP now allow options in any order (Vince)</para></listitem>
3366 <listitem><para>Add LOCK A, B, C functionality (Neil Padgett)</para></listitem>
3367 <listitem><para>New ENCRYPTED/UNENCRYPTED option to CREATE/ALTER USER (Bruce)</para></listitem>
3368 <listitem><para>New light-weight VACUUM does not lock table; old semantics are available as VACUUM FULL (Tom)</para></listitem>
3369 <listitem><para>Disable COPY TO/FROM on views (Bruce)</para></listitem>
3370 <listitem><para>COPY DELIMITERS string must be exactly one character (Tom)</para></listitem>
3371 <listitem><para>VACUUM warning about index tuples fewer than heap now only appears when appropriate (Martijn van Oosterhout)</para></listitem>
3372 <listitem><para>Fix privilege checks for CREATE INDEX (Tom)</para></listitem>
3373 <listitem><para>Disallow inappropriate use of CREATE/DROP INDEX/TRIGGER/VIEW (Tom)</para></listitem>
3374 </itemizedlist>
3375    </sect3>
3376
3377    <sect3>
3378     <title>Data Types and Functions</title>
3379 <itemizedlist>
3380 <listitem><para>SUM(), AVG(), COUNT() now uses int8 internally for speed (Tom)</para></listitem>
3381 <listitem><para>Add convert(), convert2() (Tatsuo)</para></listitem>
3382 <listitem><para>New function bit_length() (Peter E)</para></listitem>
3383 <listitem><para>Make the "n" in CHAR(n)/VARCHAR(n) represents letters, not bytes (Tatsuo)</para></listitem>
3384 <listitem><para>CHAR(), VARCHAR() now reject strings that are too long (Peter E)</para></listitem>
3385 <listitem><para>BIT VARYING now rejects bit strings that are too long (Peter E)</para></listitem>
3386 <listitem><para>BIT now rejects bit strings that do not match declared size (Peter E)</para></listitem>
3387 <listitem><para>INET, CIDR text conversion functions (Alex Pilosov)</para></listitem>
3388 <listitem><para>INET, CIDR operators &lt;&lt; and &lt;&lt;= indexable (Alex Pilosov)</para></listitem>
3389 <listitem><para>Bytea \### now requires valid three digit octal number</para></listitem>
3390 <listitem><para>Bytea comparison improvements, now supports =, &lt;&gt;, &gt;, &gt;=, &lt;, and &lt;=</para></listitem>
3391 <listitem><para>Bytea now supports B-tree indexes</para></listitem>
3392 <listitem><para>Bytea now supports LIKE, LIKE...ESCAPE, NOT LIKE, NOT LIKE...ESCAPE</para></listitem>
3393 <listitem><para>Bytea now supports concatenation</para></listitem>
3394 <listitem><para>New bytea functions: position, substring, trim, btrim, and length</para></listitem>
3395 <listitem><para>New encode() function mode, "escaped", converts minimally escaped bytea to/from text</para></listitem>
3396 <listitem><para>Add pg_database_encoding_max_length() (Tatsuo)</para></listitem>
3397 <listitem><para>Add pg_client_encoding() function (Tatsuo)</para></listitem>
3398 <listitem><para>now() returns time with millisecond precision (Thomas)</para></listitem>
3399 <listitem><para>New TIMESTAMP WITHOUT TIMEZONE data type (Thomas)</para></listitem>
3400 <listitem><para>Add ISO date/time specification with "T", yyyy-mm-ddThh:mm:ss (Thomas)</para></listitem>
3401 <listitem><para>New xid/int comparison functions (Hiroshi)</para></listitem>
3402 <listitem><para>Add precision to TIME, TIMESTAMP, and INTERVAL data types (Thomas)</para></listitem>
3403 <listitem><para>Modify type coercion logic to attempt binary-compatible functions first (Tom)</para></listitem>
3404 <listitem><para>New encode() function installed by default (Marko Kreen)</para></listitem>
3405 <listitem><para>Improved to_*() conversion functions (Karel Zak)</para></listitem>
3406 <listitem><para>Optimize LIKE/ILIKE when using single-byte encodings (Tatsuo)</para></listitem>
3407 <listitem><para>New functions in contrib/pgcrypto: crypt(), hmac(), encrypt(), gen_salt() (Marko Kreen)</para></listitem>
3408 <listitem><para>Correct description of translate() function (Bruce)</para></listitem>
3409 <listitem><para>Add INTERVAL argument for SET TIME ZONE (Thomas)</para></listitem>
3410 <listitem><para>Add INTERVAL YEAR TO MONTH (etc.) syntax (Thomas)</para></listitem>
3411 <listitem><para>Optimize length functions when using single-byte encodings (Tatsuo)</para></listitem>
3412 <listitem><para>Fix path_inter, path_distance, path_length, dist_ppath to handle closed paths (Curtis Barrett, Tom)</para></listitem>
3413 <listitem><para>octet_length(text) now returns non-compressed length (Tatsuo, Bruce)</para></listitem>
3414 <listitem><para>Handle "July" full name in date/time literals (Greg Sabino Mullane)</para></listitem>
3415 <listitem><para>Some datatype() function calls now evaluated differently</para></listitem>
3416 <listitem><para>Add support for Julian and ISO time specifications (Thomas)</para></listitem>
3417 </itemizedlist>
3418    </sect3>
3419
3420    <sect3>
3421     <title>Internationalization</title>
3422 <itemizedlist>
3423 <listitem><para>National language support in psql, <application>pg_dump</>, libpq, and server (Peter E)</para></listitem>
3424 <listitem><para>Message translations in Chinese (simplified, traditional), Czech, French, German, Hungarian, Russian, Swedish (Peter E, Serguei A. Mokhov, Karel Zak, Weiping He, Zhenbang Wei, Kovacs Zoltan)</para></listitem>
3425 <listitem><para>Make trim, ltrim, rtrim, btrim, lpad, rpad, translate multibyte aware (Tatsuo)</para></listitem>
3426 <listitem><para>Add LATIN5,6,7,8,9,10 support (Tatsuo)</para></listitem>
3427 <listitem><para>Add ISO 8859-5,6,7,8 support (Tatsuo)</para></listitem>
3428 <listitem><para>Correct LATIN5 to mean ISO-8859-9, not ISO-8859-5 (Tatsuo)</para></listitem>
3429 <listitem><para>Make mic2ascii() non-ASCII aware (Tatsuo)</para></listitem>
3430 <listitem><para>Reject invalid multibyte character sequences (Tatsuo)</para></listitem>
3431 </itemizedlist>
3432    </sect3>
3433
3434    <sect3>
3435     <title><application>PL/pgSQL</></title>
3436 <itemizedlist>
3437 <listitem><para>Now uses portals for SELECT loops, allowing huge result sets (Jan)</para></listitem>
3438 <listitem><para>CURSOR and REFCURSOR support (Jan)</para></listitem>
3439 <listitem><para>Can now return open cursors (Jan)</para></listitem>
3440 <listitem><para>Add ELSEIF (Klaus Reger)</para></listitem>
3441 <listitem><para>Improve PL/pgSQL error reporting, including location of error (Tom)</para></listitem>
3442 <listitem><para>Allow IS or FOR key words in cursor declaration, for compatibility (Bruce)</para></listitem>
3443 <listitem><para>Fix for SELECT ... FOR UPDATE (Tom)</para></listitem>
3444 <listitem><para>Fix for PERFORM returning multiple rows (Tom)</para></listitem>
3445 <listitem><para>Make PL/pgSQL use the server's type coercion code (Tom)</para></listitem>
3446 <listitem><para>Memory leak fix (Jan, Tom)</para></listitem>
3447 <listitem><para>Make trailing semicolon optional (Tom)</para></listitem>
3448 </itemizedlist>
3449    </sect3>
3450
3451    <sect3>
3452     <title>PL/Perl</title>
3453 <itemizedlist>
3454 <listitem><para>New untrusted PL/Perl (Alex Pilosov)</para></listitem>
3455 <listitem><para>PL/Perl is now built on some platforms even if libperl is not shared (Peter E)</para></listitem>
3456 </itemizedlist>
3457     </sect3>
3458
3459    <sect3>
3460     <title>PL/Tcl</title>
3461 <itemizedlist>
3462 <listitem><para>Now reports errorInfo (Vsevolod Lobko)</para></listitem>
3463 <listitem><para>Add spi_lastoid function (bob@redivi.com)</para></listitem>
3464 </itemizedlist>
3465    </sect3>
3466
3467    <sect3>
3468     <title>PL/Python</title>
3469 <itemizedlist>
3470 <listitem><para>...is new (Andrew Bosma)</para></listitem>
3471 </itemizedlist>
3472    </sect3>
3473
3474    <sect3>
3475     <title><application>psql</></title>
3476 <itemizedlist>
3477 <listitem><para>\d displays indexes in unique, primary groupings (Christopher Kings-Lynne)</para></listitem>
3478 <listitem><para>Allow trailing semicolons in backslash commands (Greg Sabino Mullane)</para></listitem>
3479 <listitem><para>Read password from /dev/tty if possible</para></listitem>
3480 <listitem><para>Force new password prompt when changing user and database (Tatsuo, Tom)</para></listitem>
3481 <listitem><para>Format the correct number of columns for Unicode (Patrice)</para></listitem>
3482 </itemizedlist>
3483    </sect3>
3484
3485    <sect3>
3486     <title><application>libpq</></title>
3487 <itemizedlist>
3488 <listitem><para>New function PQescapeString() to escape quotes in command strings (Florian Weimer)</para></listitem>
3489 <listitem><para>New function PQescapeBytea() escapes binary strings for use as SQL string literals</para></listitem>
3490 </itemizedlist>
3491    </sect3>
3492
3493    <sect3>
3494     <title>JDBC</title>
3495 <itemizedlist>
3496 <listitem><para>Return OID of INSERT (Ken K)</para></listitem>
3497 <listitem><para>Handle more data types (Ken K)</para></listitem>
3498 <listitem><para>Handle single quotes and newlines in strings (Ken K)</para></listitem>
3499 <listitem><para>Handle NULL variables (Ken K)</para></listitem>
3500 <listitem><para>Fix for time zone handling (Barry Lind)</para></listitem>
3501 <listitem><para>Improved Druid support</para></listitem>
3502 <listitem><para>Allow eight-bit characters with non-multibyte server (Barry Lind)</para></listitem>
3503 <listitem><para>Support BIT, BINARY types (Ned Wolpert)</para></listitem>
3504 <listitem><para>Reduce memory usage (Michael Stephens, Dave Cramer)</para></listitem>
3505 <listitem><para>Update DatabaseMetaData (Peter E)</para></listitem>
3506 <listitem><para>Add DatabaseMetaData.getCatalogs() (Peter E)</para></listitem>
3507 <listitem><para>Encoding fixes (Anders Bengtsson)</para></listitem>
3508 <listitem><para>Get/setCatalog methods (Jason Davies)</para></listitem>
3509 <listitem><para>DatabaseMetaData.getColumns() now returns column defaults (Jason Davies)</para></listitem>
3510 <listitem><para>DatabaseMetaData.getColumns() performance improvement (Jeroen van Vianen)</para></listitem>
3511 <listitem><para>Some JDBC1 and JDBC2 merging (Anders Bengtsson)</para></listitem>
3512 <listitem><para>Transaction performance improvements (Barry Lind)</para></listitem>
3513 <listitem><para>Array fixes (Greg Zoller)</para></listitem>
3514 <listitem><para>Serialize addition </para></listitem>
3515 <listitem><para>Fix batch processing (Rene Pijlman)</para></listitem>
3516 <listitem><para>ExecSQL method reorganization (Anders Bengtsson)</para></listitem>
3517 <listitem><para>GetColumn() fixes (Jeroen van Vianen)</para></listitem>
3518 <listitem><para>Fix isWriteable() function (Rene Pijlman)</para></listitem>
3519 <listitem><para>Improved passage of JDBC2 conformance tests (Rene Pijlman)</para></listitem>
3520 <listitem><para>Add bytea type capability (Barry Lind)</para></listitem>
3521 <listitem><para>Add isNullable() (Rene Pijlman)</para></listitem>
3522 <listitem><para>JDBC date/time test suite fixes (Liam Stewart)</para></listitem>
3523 <listitem><para>Fix for SELECT 'id' AS xxx FROM table (Dave Cramer)</para></listitem>
3524 <listitem><para>Fix DatabaseMetaData to show precision properly (Mark Lillywhite)</para></listitem>
3525 <listitem><para>New getImported/getExported keys (Jason Davies)</para></listitem>
3526 <listitem><para>MD5 password encryption support (Jeremy Wohl)</para></listitem>
3527 <listitem><para>Fix to actually use type cache (Ned Wolpert)</para></listitem>
3528 </itemizedlist>
3529    </sect3>
3530
3531    <sect3>
3532     <title>ODBC</title>
3533 <itemizedlist>
3534 <listitem><para>Remove query size limit (Hiroshi)</para></listitem>
3535 <listitem><para>Remove text field size limit (Hiroshi)</para></listitem>
3536 <listitem><para>Fix for SQLPrimaryKeys in multibyte mode (Hiroshi)</para></listitem>
3537 <listitem><para>Allow ODBC procedure calls (Hiroshi)</para></listitem>
3538 <listitem><para>Improve boolean handing (Aidan Mountford)</para></listitem>
3539 <listitem><para>Most configuration options now settable via DSN (Hiroshi)</para></listitem>
3540 <listitem><para>Multibyte, performance fixes (Hiroshi)</para></listitem>
3541 <listitem><para>Allow driver to be used with iODBC or unixODBC (Peter E)</para></listitem>
3542 <listitem><para>MD5 password encryption support (Bruce)</para></listitem>
3543 <listitem><para>Add more compatibility functions to odbc.sql (Peter E)</para></listitem>
3544 </itemizedlist>
3545    </sect3>
3546
3547    <sect3>
3548     <title><application>ECPG</></title>
3549 <itemizedlist>
3550 <listitem><para>EXECUTE ... INTO implemented (Christof Petig)</para></listitem>
3551 <listitem><para>Multiple row descriptor support (e.g. CARDINALITY) (Christof Petig)</para></listitem>
3552 <listitem><para>Fix for GRANT parameters (Lee Kindness)</para></listitem>
3553 <listitem><para>Fix INITIALLY DEFERRED bug</para></listitem>
3554 <listitem><para>Various bug fixes (Michael, Christof Petig)</para></listitem>
3555 <listitem><para>Auto allocation for indicator variable arrays (int *ind_p=NULL)</para></listitem>
3556 <listitem><para>Auto allocation for string arrays (char **foo_pp=NULL)</para></listitem>
3557 <listitem><para>ECPGfree_auto_mem fixed</para></listitem>
3558 <listitem><para>All function names with external linkage are now prefixed by ECPG</para></listitem>
3559 <listitem><para>Fixes for arrays of structures (Michael)</para></listitem>
3560 </itemizedlist>
3561    </sect3>
3562
3563    <sect3>
3564     <title>Misc. Interfaces</title>
3565 <itemizedlist>
3566 <listitem><para>Python fix fetchone() (Gerhard Haring)</para></listitem>
3567 <listitem><para>Use UTF, Unicode in Tcl where appropriate (Vsevolod Lobko, Reinhard Max)</para></listitem>
3568 <listitem><para>Add Tcl COPY TO/FROM (ljb)</para></listitem>
3569 <listitem><para>Prevent output of default index op class in <application>pg_dump</> (Tom)</para></listitem>
3570 <listitem><para>Fix libpgeasy memory leak (Bruce)</para></listitem>
3571 </itemizedlist>
3572    </sect3>
3573
3574    <sect3>
3575     <title>Build and Install</title>
3576 <itemizedlist>
3577 <listitem><para>Configure, dynamic loader, and shared library fixes (Peter E)</para></listitem>
3578 <listitem><para>Fixes in QNX 4 port (Bernd Tegge)</para></listitem>
3579 <listitem><para>Fixes in Cygwin and Windows ports (Jason Tishler, Gerhard Haring, Dmitry Yurtaev, Darko Prenosil, Mikhail Terekhov)</para></listitem>
3580 <listitem><para>Fix for Windows socket communication failures (Magnus, Mikhail Terekhov)</para></listitem>
3581 <listitem><para>Hurd compile fix (Oliver Elphick)</para></listitem>
3582 <listitem><para>BeOS fixes (Cyril Velter)</para></listitem>
3583 <listitem><para>Remove configure --enable-unicode-conversion, now enabled by multibyte (Tatsuo)</para></listitem>
3584 <listitem><para>AIX fixes (Tatsuo, Andreas)</para></listitem>
3585 <listitem><para>Fix parallel make (Peter E)</para></listitem>
3586 <listitem><para>Install SQL language manual pages into OS-specific directories (Peter E)</para></listitem>
3587 <listitem><para>Rename config.h to pg_config.h (Peter E)</para></listitem>
3588 <listitem><para>Reorganize installation layout of header files (Peter E)</para></listitem>
3589 </itemizedlist>
3590    </sect3>
3591
3592    <sect3>
3593     <title>Source Code</title>
3594 <itemizedlist>
3595 <listitem><para>Remove SEP_CHAR (Bruce)</para></listitem>
3596 <listitem><para>New GUC hooks (Tom)</para></listitem>
3597 <listitem><para>Merge GUC and command line handling (Marko Kreen)</para></listitem>
3598 <listitem><para>Remove EXTEND INDEX (Martijn van Oosterhout, Tom)</para></listitem>
3599 <listitem><para>New pgjindent utility to indent java code (Bruce)</para></listitem>
3600 <listitem><para>Remove define of true/false when compiling under C++ (Leandro Fanzone, Tom)</para></listitem>
3601 <listitem><para>pgindent fixes (Bruce, Tom)</para></listitem>
3602 <listitem><para>Replace strcasecmp() with strcmp() where appropriate (Peter E)</para></listitem>
3603 <listitem><para>Dynahash portability improvements (Tom)</para></listitem>
3604 <listitem><para>Add 'volatile' usage in spinlock structures</para></listitem>
3605 <listitem><para>Improve signal handling logic (Tom)</para></listitem>
3606 </itemizedlist>
3607    </sect3>
3608
3609    <sect3>
3610     <title>Contrib</title>
3611 <itemizedlist>
3612 <listitem><para>New contrib/rtree_gist (Oleg Bartunov, Teodor Sigaev)</para></listitem>
3613 <listitem><para>New contrib/tsearch full-text indexing (Oleg, Teodor Sigaev)</para></listitem>
3614 <listitem><para>Add contrib/dblink for remote database access (Joe Conway)</para></listitem>
3615 <listitem><para>contrib/ora2pg Oracle conversion utility (Gilles Darold)</para></listitem>
3616 <listitem><para>contrib/xml XML conversion utility (John Gray)</para></listitem>
3617 <listitem><para>contrib/fulltextindex fixes (Christopher Kings-Lynne)</para></listitem>
3618 <listitem><para>New contrib/fuzzystrmatch with levenshtein and metaphone, soundex merged (Joe Conway)</para></listitem>
3619 <listitem><para>Add contrib/intarray boolean queries, binary search, fixes (Oleg Bartunov)</para></listitem>
3620 <listitem><para>New pg_upgrade utility (Bruce)</para></listitem>
3621 <listitem><para>Add new pg_resetxlog options (Bruce, Tom)</para></listitem>
3622 </itemizedlist>
3623    </sect3>
3624   </sect2>
3625  </sect1>
3626
3627
3628   <sect1 id="release-7-1-3">
3629    <title>Release 7.1.3</title>
3630
3631    <note>
3632    <title>Release date</title>
3633    <simpara>2001-08-15</simpara>
3634    </note>
3635
3636    <sect2>
3637     <title>Migration to version 7.1.3</title>
3638
3639     <para>
3640      A dump/restore is <emphasis>not</emphasis> required for those running
3641      7.1.X.
3642     </para>
3643    </sect2>
3644
3645    <sect2>
3646     <title>Changes</title>
3647
3648     <para>
3649      <programlisting>
3650 Remove unused WAL segements of large transactions (Tom)
3651 Multiaction rule fix (Tom)
3652 PL/pgSQL memory allocation fix (Jan)
3653 VACUUM buffer fix (Tom)
3654 Regression test fixes (Tom)
3655 pg_dump fixes for GRANT/REVOKE/comments on views, user-defined types (Tom)
3656 Fix subselects with DISTINCT ON or LIMIT (Tom)
3657 BeOS fix
3658 Disable COPY TO/FROM a view (Tom)
3659 Cygwin build (Jason Tishler)
3660      </programlisting>
3661     </para>
3662    </sect2>
3663   </sect1>
3664
3665
3666   <sect1 id="release-7-1-2">
3667    <title>Release 7.1.2</title>
3668
3669    <note>
3670    <title>Release date</title>
3671    <simpara>2001-05-11</simpara>
3672    </note>
3673
3674    <para>
3675     This has one fix from 7.1.1.
3676    </para>
3677
3678
3679    <sect2>
3680     <title>Migration to version 7.1.2</title>
3681
3682     <para>
3683      A dump/restore is <emphasis>not</emphasis> required for those running
3684      7.1.X.
3685     </para>
3686    </sect2>
3687
3688    <sect2>
3689     <title>Changes</title>
3690
3691     <para>
3692      <programlisting>
3693 Fix PL/pgSQL SELECTs when returning no rows
3694 Fix for psql backslash core dump
3695 Referential integrity privilege fix
3696 Optimizer fixes
3697 pg_dump cleanups 
3698      </programlisting>
3699     </para>
3700    </sect2>
3701   </sect1>
3702
3703
3704   <sect1 id="release-7-1-1">
3705    <title>Release 7.1.1</title>
3706
3707    <note>
3708    <title>Release date</title>
3709    <simpara>2001-05-05</simpara>
3710    </note>
3711
3712    <para>
3713     This has a variety of fixes from 7.1.
3714    </para>
3715
3716
3717    <sect2>
3718     <title>Migration to version 7.1.1</title>
3719
3720     <para>
3721      A dump/restore is <emphasis>not</emphasis> required for those running
3722      7.1.
3723     </para>
3724    </sect2>
3725
3726    <sect2>
3727     <title>Changes</title>
3728
3729     <para>
3730      <programlisting>
3731 Fix for numeric MODULO operator (Tom)
3732 pg_dump fixes (Philip)
3733 pg_dump can dump 7.0 databases (Philip)
3734 readline 4.2 fixes (Peter E)
3735 JOIN fixes (Tom)
3736 AIX, MSWIN, VAX, N32K fixes (Tom)
3737 Multibytes fixes (Tom)
3738 Unicode fixes (Tatsuo)
3739 Optimizer improvements (Tom)
3740 Fix for whole rows in functions (Tom)
3741 Fix for pg_ctl and option strings with spaces (Peter E)
3742 ODBC fixes (Hiroshi)
3743 EXTRACT can now take string argument (Thomas)
3744 Python fixes (Darcy)
3745      </programlisting>
3746     </para>
3747    </sect2>
3748   </sect1>
3749
3750
3751   <sect1 id="release-7-1">
3752    <title>Release 7.1</title>
3753
3754    <note>
3755    <title>Release date</title>
3756    <simpara>2001-04-13</simpara>
3757    </note>
3758
3759    <para>
3760         This release focuses on removing limitations that have existed in the
3761         PostgreSQL code for many years.
3762    </para>
3763
3764    <para>
3765     Major changes in this release:
3766
3767     <variablelist>
3768      <varlistentry>
3769       <term>
3770         Write-ahead Log (WAL)
3771       </term>
3772       <listitem>
3773        <para>
3774 To maintain database consistency in case
3775 of an operating system crash, previous releases of PostgreSQL have
3776 forced all data modifications to disk before each transaction commit. 
3777 With WAL, only one log file must be flushed to disk, greatly improving
3778 performance.  If you have been using -F in previous releases to disable
3779 disk flushes, you may want to consider discontinuing its use.
3780        </para>
3781       </listitem>
3782      </varlistentry>
3783
3784      <varlistentry>
3785       <term>
3786         TOAST
3787       </term>
3788       <listitem>
3789        <para>
3790         TOAST - Previous releases had a compiled-in row length limit,
3791 typically 8k - 32k. This limit made storage of long text fields
3792 difficult.  With TOAST, long rows of any length can be stored with good
3793 performance.
3794        </para>
3795       </listitem>
3796      </varlistentry>
3797
3798      <varlistentry>
3799       <term>
3800         Outer Joins
3801       </term>
3802       <listitem>
3803        <para>
3804 We now support outer joins.  The UNION/NOT IN
3805 workaround for outer joins is no longer required.  We use the SQL92
3806 outer join syntax.
3807        </para>
3808       </listitem>
3809      </varlistentry>
3810
3811      <varlistentry>
3812       <term>
3813         Function Manager
3814       </term>
3815       <listitem>
3816        <para>
3817 The previous C function manager did not
3818 handle null values properly, nor did it support 64-bit <acronym>CPU</acronym>'s (Alpha).  The new
3819 function manager does.  You can continue using your old custom
3820 functions, but you may want to rewrite them in the future to use the new
3821 function manager call interface.
3822        </para>
3823       </listitem>
3824      </varlistentry>
3825
3826      <varlistentry>
3827       <term>
3828         Complex Queries
3829       </term>
3830       <listitem>
3831        <para>
3832 A large number of complex queries that were
3833 unsupported in previous releases now work.  Many combinations of views,
3834 aggregates, UNION, LIMIT, cursors, subqueries, and inherited tables
3835 now work properly. Inherited tables are now accessed by default. 
3836 Subqueries in FROM are now supported.
3837        </para>
3838       </listitem>
3839      </varlistentry>
3840
3841     </variablelist>
3842    </para>
3843
3844    <sect2>
3845     <title>Migration to version 7.1</title>
3846
3847     <para>
3848         A dump/restore using pg_dump is required for those wishing to migrate
3849         data from any previous release.
3850     </para>
3851    </sect2>
3852
3853    <sect2>
3854     <title>Changes</title>
3855
3856     <para>
3857      <programlisting>
3858 Bug Fixes
3859 ---------
3860 Many multibyte/Unicode/locale fixes (Tatsuo and others)
3861 More reliable ALTER TABLE RENAME (Tom)
3862 Kerberos V fixes (David Wragg)
3863 Fix for INSERT INTO...SELECT where targetlist has subqueries (Tom)
3864 Prompt username/password on standard error (Bruce)
3865 Large objects inv_read/inv_write fixes (Tom)
3866 Fixes for to_char(), to_date(), to_ascii(), and to_timestamp() (Karel, 
3867     Daniel Baldoni)
3868 Prevent query expressions from leaking memory (Tom)
3869 Allow UPDATE of arrays elements (Tom)
3870 Wake up lock waiters during cancel (Hiroshi)
3871 Fix rare cursor crash when using hash join (Tom)
3872 Fix for DROP TABLE/INDEX in rolled-back transaction (Hiroshi)
3873 Fix psql crash from \l+ if MULTIBYTE enabled (Peter E)
3874 Fix truncation of rule names during CREATE VIEW (Ross Reedstrom)
3875 Fix PL/perl (Alex Kapranoff)
3876 Disallow LOCK on views (Mark Hollomon)
3877 Disallow INSERT/UPDATE/DELETE on views (Mark Hollomon)
3878 Disallow DROP RULE, CREATE INDEX, TRUNCATE on views (Mark Hollomon)
3879 Allow PL/pgSQL accept non-ASCII identifiers (Tatsuo)
3880 Allow views to proper handle GROUP BY, aggregates, DISTINCT (Tom)
3881 Fix rare failure with TRUNCATE command (Tom)
3882 Allow UNION/INTERSECT/EXCEPT to be used with ALL, subqueries, views, 
3883     DISTINCT, ORDER BY, SELECT...INTO (Tom)
3884 Fix parser failures during aborted transactions (Tom)
3885 Allow temporary relations to properly clean up indexes (Bruce)
3886 Fix VACUUM problem with moving rows in same page (Tom)
3887 Modify pg_dump to better handle user-defined items in template1 (Philip)
3888 Allow LIMIT in VIEW (Tom)
3889 Require cursor FETCH to honor LIMIT (Tom)
3890 Allow PRIMARY/FOREIGN Key definitions on inherited columns (Stephan)
3891 Allow ORDER BY, LIMIT in subqueries (Tom)
3892 Allow UNION in CREATE RULE (Tom)
3893 Make ALTER/DROP TABLE rollback-able (Vadim, Tom)
3894 Store initdb collation in pg_control so collation cannot be changed (Tom)
3895 Fix INSERT...SELECT with rules (Tom)
3896 Fix FOR UPDATE inside views and subselects (Tom)
3897 Fix OVERLAPS operators conform to SQL92 spec regarding NULLs (Tom)
3898 Fix lpad() and rpad() to handle length less than input string (Tom)
3899 Fix use of NOTIFY in some rules (Tom)
3900 Overhaul btree code (Tom)
3901 Fix NOT NULL use in Pl/pgSQL variables (Tom)
3902 Overhaul GIST code (Oleg)
3903 Fix CLUSTER to preserve constraints and column default (Tom)
3904 Improved deadlock detection handling (Tom)
3905 Allow multiple SERIAL columns in a table (Tom)
3906 Prevent occasional index corruption (Vadim)
3907
3908 Enhancements
3909 ------------
3910 Add OUTER JOINs (Tom)
3911 Function manager overhaul (Tom)
3912 Allow ALTER TABLE RENAME on indexes (Tom)
3913 Improve CLUSTER (Tom)
3914 Improve ps status display for more platforms (Peter E, Marc)
3915 Improve CREATE FUNCTION failure message (Ross)
3916 JDBC improvements (Peter, Travis Bauer, Christopher Cain, William Webber,
3917     Gunnar)
3918 Grand Unified Configuration scheme/GUC.  Many options can now be set in 
3919     data/postgresql.conf, postmaster/postgres flags, or SET commands (Peter E)
3920 Improved handling of file descriptor cache (Tom)
3921 New warning code about auto-created table alias entries (Bruce)
3922 Overhaul initdb process (Tom, Peter E)
3923 Overhaul of inherited tables; inherited tables now accessed by default;
3924    new ONLY key word prevents it (Chris Bitmead, Tom)
3925 ODBC cleanups/improvements (Nick Gorham, Stephan Szabo, Zoltan Kovacs, 
3926     Michael Fork)
3927 Allow renaming of temp tables (Tom)
3928 Overhaul memory manager contexts (Tom)
3929 pg_dumpall uses CREATE USER or CREATE GROUP rather using COPY (Peter E)
3930 Overhaul pg_dump (Philip Warner)
3931 Allow pg_hba.conf secondary password file to specify only username (Peter E)
3932 Allow TEMPORARY or TEMP key word when creating temporary tables (Bruce)
3933 New memory leak checker (Karel)
3934 New SET SESSION CHARACTERISTICS (Thomas)
3935 Allow nested block comments (Thomas)
3936 Add WITHOUT TIME ZONE type qualifier (Thomas)
3937 New ALTER TABLE ADD CONSTRAINT (Stephan)
3938 Use NUMERIC accumulators for INTEGER aggregates (Tom)
3939 Overhaul aggregate code (Tom)
3940 New VARIANCE and STDDEV() aggregates
3941 Improve dependency ordering of pg_dump (Philip)
3942 New pg_restore command (Philip)
3943 New pg_dump tar output option (Philip)
3944 New pg_dump of large objects  (Philip)
3945 New ESCAPE option to LIKE (Thomas)
3946 New case-insensitive LIKE - ILIKE (Thomas)
3947 Allow functional indexes to use binary-compatible type (Tom)
3948 Allow SQL functions to be used in more contexts (Tom)
3949 New pg_config utility (Peter E)
3950 New PL/pgSQL EXECUTE command which allows dynamic SQL and utility statements
3951     (Jan)
3952 New PL/pgSQL GET DIAGNOSTICS statement for SPI value access (Jan)
3953 New quote_identifiers() and quote_literal() functions (Jan)
3954 New ALTER TABLE table OWNER TO user command (Mark Hollomon)
3955 Allow subselects in FROM, i.e. FROM (SELECT ...) [AS] alias (Tom)
3956 Update PyGreSQL to version 3.1 (D'Arcy)
3957 Store tables as files named by OID (Vadim)
3958 New SQL function setval(seq,val,bool) for use in pg_dump (Philip)
3959 Require DROP VIEW to remove views, no DROP TABLE (Mark)
3960 Allow DROP VIEW view1, view2 (Mark)
3961 Allow multiple objects in DROP INDEX, DROP RULE, and DROP TYPE (Tom)
3962 Allow automatic conversion to/from Unicode (Tatsuo, Eiji)
3963 New /contrib/pgcrypto hashing functions (Marko Kreen)
3964 New pg_dumpall --globals-only option (Peter E)
3965 New CHECKPOINT command for WAL which creates new WAL log file (Vadim)
3966 New AT TIME ZONE syntax (Thomas)
3967 Allow location of Unix domain socket to be configurable (David J. MacKenzie)
3968 Allow postmaster to listen on a specific IP address (David J. MacKenzie)
3969 Allow socket path name to be specified in hostname by using leading slash
3970     (David J. MacKenzie)
3971 Allow CREATE DATABASE to specify template database (Tom)
3972 New utility to convert MySQL schema dumps to SQL92 and PostgreSQL (Thomas)
3973 New /contrib/rserv replication toolkit (Vadim)
3974 New file format for COPY BINARY (Tom)
3975 New /contrib/oid2name to map numeric files to table names (B Palmer)
3976 New "idle in transaction" ps status message (Marc)
3977 Update to pgaccess 0.98.7 (Constantin Teodorescu)
3978 pg_ctl now defaults to -w (wait) on shutdown, new -l (log) option
3979 Add rudimentary dependency checking to pg_dump (Philip)
3980
3981 Types
3982 -----
3983 Fix INET/CIDR type ordering and add new functions (Tom)
3984 Make OID behave as an unsigned type (Tom)
3985 Allow BIGINT as synonym for INT8 (Peter E)
3986 New int2 and int8 comparison operators (Tom)
3987 New BIT and BIT VARYING types (Adriaan Joubert, Tom, Peter E)
3988 CHAR() no longer faster than VARCHAR() because of TOAST (Tom)
3989 New GIST seg/cube examples (Gene Selkov)
3990 Improved round(numeric) handling (Tom)
3991 Fix CIDR output formatting (Tom)
3992 New CIDR abbrev() function (Tom)
3993
3994 Performance
3995 -----------
3996 Write-Ahead Log (WAL) to provide crash recovery with less performance 
3997     overhead (Vadim)
3998 ANALYZE stage of VACUUM no longer exclusively locks table (Bruce)
3999 Reduced file seeks (Denis Perchine)
4000 Improve BTREE code for duplicate keys (Tom)
4001 Store all large objects in a single table (Denis Perchine, Tom)
4002 Improve memory allocation performance (Karel, Tom)
4003
4004 Source Code
4005 -----------
4006 New function manager call conventions (Tom)
4007 SGI portability fixes (David Kaelbling)
4008 New configure --enable-syslog option (Peter E)
4009 New BSDI README (Bruce)
4010 configure script moved to top level, not /src (Peter E)
4011 Makefile/configuration/compilation overhaul (Peter E)
4012 New configure --with-python option (Peter E)
4013 Solaris cleanups (Peter E)
4014 Overhaul /contrib Makefiles (Karel)
4015 New OpenSSL configuration option (Magnus, Peter E)
4016 AIX fixes (Andreas)
4017 QNX fixes (Maurizio)
4018 New heap_open(), heap_openr() API (Tom)
4019 Remove colon and semi-colon operators (Thomas)
4020 New pg_class.relkind value for views (Mark Hollomon)
4021 Rename ichar() to chr() (Karel)
4022 New documentation for btrim(), ascii(), chr(), repeat() (Karel)
4023 Fixes for NT/Cygwin (Pete Forman)
4024 AIX port fixes (Andreas)
4025 New BeOS port (David Reid, Cyril Velter)
4026 Add proofreader's changes to docs (Addison-Wesley, Bruce)
4027 New Alpha spinlock code (Adriaan Joubert, Compaq)
4028 UnixWare port overhaul (Peter E)
4029 New Darwin/MacOS X port (Peter Bierman, Bruce Hartzler)
4030 New FreeBSD Alpha port (Alfred)
4031 Overhaul shared memory segments (Tom)
4032 Add IBM S/390 support (Neale Ferguson)
4033 Moved macmanuf to /contrib (Larry Rosenman)
4034 Syslog improvements (Larry Rosenman)
4035 New template0 database that contains no user additions (Tom)
4036 New /contrib/cube and /contrib/seg GIST sample code (Gene Selkov)
4037 Allow NetBSD's libedit instead of readline (Peter)
4038 Improved assembly language source code format (Bruce)
4039 New contrib/pg_logger
4040 New --template option to createdb
4041 New contrib/pg_control utility (Oliver)
4042 New FreeBSD tools ipc_check, start-scripts/freebsd
4043      </programlisting>
4044     </para>
4045    </sect2>
4046   </sect1>
4047
4048
4049   <sect1 id="release-7-0-3">
4050    <title>Release 7.0.3</title>
4051
4052    <note>
4053    <title>Release date</title>
4054    <simpara>2000-11-11</simpara>
4055    </note>
4056
4057    <para>
4058     This has a variety of fixes from 7.0.2.
4059    </para>
4060
4061
4062    <sect2>
4063     <title>Migration to version 7.0.3</title>
4064
4065     <para>
4066      A dump/restore is <emphasis>not</emphasis> required for those running
4067      7.0.*.
4068     </para>
4069    </sect2>
4070
4071    <sect2>
4072     <title>Changes</title>
4073
4074     <para>
4075      <programlisting>
4076 Jdbc fixes (Peter)
4077 Large object fix (Tom)
4078 Fix lean in COPY WITH OIDS leak (Tom)
4079 Fix backwards-index-scan (Tom)
4080 Fix SELECT ... FOR UPDATE so it checks for duplicate keys (Hiroshi)
4081 Add --enable-syslog to configure (Marc)
4082 Fix abort transaction at backend exit in rare cases (Tom)
4083 Fix for psql \l+ when multibyte enabled (Tatsuo)
4084 Allow PL/pgSQL to accept non ascii identifiers (Tatsuo)
4085 Make vacuum always flush buffers (Tom)
4086 Fix to allow cancel while waiting for a lock (Hiroshi)
4087 Fix for memory aloocation problem in user authentication code (Tom)
4088 Remove bogus use of int4out() (Tom)
4089 Fixes for multiple subqueries in COALESCE or BETWEEN (Tom)
4090 Fix for failure of triggers on heap open in certain cases (Jeroen van
4091     Vianen)
4092 Fix for erroneous selectivity of not-equals (Tom)
4093 Fix for erroneous use of strcmp() (Tom)
4094 Fix for bug where storage manager accesses items beyond end of file
4095     (Tom)
4096 Fix to include kernel errno message in all smgr elog messages (Tom)
4097 Fix for '.' not in PATH at build time (SL Baur)
4098 Fix for out-of-file-descriptors error (Tom)
4099 Fix to make pg_dump dump 'iscachable' flag for functions (Tom)
4100 Fix for subselect in targetlist of Append node (Tom)
4101 Fix for mergejoin plans (Tom)
4102 Fix TRUNCATE failure on relations with indexes (Tom)
4103 Avoid database-wide restart on write error (Hiroshi)
4104 Fix nodeMaterial to honor chgParam by recomputing its output (Tom)
4105 Fix VACUUM problem with moving chain of update row versions when source
4106     and destination of a row version lie on the same page (Tom)
4107 Fix user.c CommandCounterIncrement (Tom)
4108 Fix for AM/PM boundary problem in to_char() (Karel Zak)
4109 Fix TIME aggregate handling (Tom)
4110 Fix to_char() to avoid coredump on NULL input (Tom)
4111 Buffer fix (Tom)
4112 Fix for inserting/copying longer multibyte strings into char() data
4113     types (Tatsuo)
4114 Fix for crash of backend, on abort (Tom)
4115      </programlisting>
4116     </para>
4117    </sect2>
4118   </sect1>
4119
4120
4121   <sect1 id="release-7-0-2">
4122    <title>Release 7.0.2</title>
4123
4124    <note>
4125    <title>Release date</title>
4126    <simpara>2000-06-05</simpara>
4127    </note>
4128
4129    <para>
4130     This is a repackaging of 7.0.1 with added documentation.
4131    </para>
4132
4133
4134    <sect2>
4135     <title>Migration to version 7.0.2</title>
4136
4137     <para>
4138      A dump/restore is <emphasis>not</emphasis> required for those running
4139      7.*.
4140     </para>
4141    </sect2>
4142
4143    <sect2>
4144     <title>Changes</title>
4145
4146     <para>
4147      <programlisting>
4148 Added documentation to tarball.
4149      </programlisting>
4150     </para>
4151    </sect2>
4152   </sect1>
4153
4154
4155   <sect1 id="release-7-0-1">
4156    <title>Release 7.0.1</title>
4157
4158    <note>
4159    <title>Release date</title>
4160    <simpara>2000-06-01</simpara>
4161    </note>
4162
4163    <para>
4164     This is a cleanup release for 7.0.
4165    </para>
4166
4167    <sect2>
4168     <title>Migration to version 7.0.1</title>
4169
4170     <para>
4171      A dump/restore is <emphasis>not</emphasis> required for those running
4172      7.0.
4173     </para>
4174    </sect2>
4175
4176    <sect2>
4177     <title>Changes</title>
4178
4179     <para>
4180      <programlisting>
4181 Fix many CLUSTER failures (Tom)
4182 Allow ALTER TABLE RENAME works on indexes (Tom)
4183 Fix plpgsql to handle datetime->timestamp and timespan->interval (Bruce)
4184 New configure --with-setproctitle switch to use setproctitle() (Marc, Bruce)
4185 Fix the off by one errors in ResultSet from 6.5.3, and more.
4186 jdbc ResultSet fixes (Joseph Shraibman)
4187 optimizer tunings (Tom)
4188 Fix create user for pgaccess
4189 Fix for UNLISTEN failure
4190 IRIX fixes (David Kaelbling)
4191 QNX fixes (Andreas Kardos)
4192 Reduce COPY IN lock level (Tom)
4193 Change libpqeasy to use PQconnectdb() style parameters (Bruce)
4194 Fix pg_dump to handle OID indexes (Tom)
4195 Fix small memory leak (Tom)
4196 Solaris fix for createdb/dropdb (Tatsuo)
4197 Fix for non-blocking connections (Alfred Perlstein)
4198 Fix improper recovery after RENAME TABLE failures (Tom)
4199 Copy pg_ident.conf.sample into /lib directory in install (Bruce)
4200 Add SJIS UDC (NEC selection IBM kanji) support (Eiji Tokuya)
4201 Fix too long syslog message (Tatsuo)
4202 Fix problem with quoted indexes that are too long (Tom)
4203 JDBC ResultSet.getTimestamp() fix (Gregory Krasnow & Floyd Marinescu)
4204 ecpg changes (Michael)
4205      </programlisting>
4206     </para>
4207    </sect2>
4208   </sect1>
4209
4210   <sect1 id="release-7-0">
4211    <title>Release 7.0</title>
4212
4213    <note>
4214    <title>Release date</title>
4215    <simpara>2000-05-08</simpara>
4216    </note>
4217
4218    <para> 
4219     This release contains improvements in many areas, demonstrating
4220     the continued growth of <productname>PostgreSQL</productname>.
4221     There are more improvements and fixes in 7.0 than in any previous
4222     release. The developers have confidence that this is the best
4223     release yet; we do our best to put out only solid releases, and
4224     this one is no exception.
4225    </para>
4226
4227    <para>
4228     Major changes in this release:
4229
4230     <variablelist>
4231      <varlistentry>
4232       <term>
4233        Foreign Keys
4234       </term>
4235       <listitem>
4236        <para>
4237         Foreign keys are now implemented, with the exception of PARTIAL MATCH
4238         foreign keys. Many users have been asking for this feature, and we are
4239         pleased to offer it.
4240        </para>
4241       </listitem>
4242      </varlistentry>
4243
4244      <varlistentry>
4245       <term>
4246        Optimizer Overhaul
4247       </term>
4248       <listitem>
4249        <para>
4250         Continuing on work started a year ago, the optimizer has been
4251         improved, allowing better query plan selection and faster performance
4252         with less memory usage.
4253        </para>
4254       </listitem>
4255      </varlistentry>
4256
4257      <varlistentry>
4258       <term>
4259        Updated <application>psql</application>
4260       </term>
4261       <listitem>
4262        <para>
4263         <application>psql</application>, our interactive terminal monitor, has been
4264         updated with a variety of new features. See the <application>psql</application> manual page for details.
4265        </para>
4266       </listitem>
4267      </varlistentry>
4268
4269      <varlistentry>
4270       <term>
4271        Join Syntax
4272       </term>
4273       <listitem>
4274        <para>
4275         SQL92 join syntax is now supported, though only as
4276         <literal>INNER JOIN</> for this release. <literal>JOIN</>,
4277         <literal>NATURAL JOIN</>, <literal>JOIN</>/<literal>USING</>,
4278         and <literal>JOIN</>/<literal>ON</> are available, as are
4279         column correlation names.
4280        </para>
4281       </listitem>
4282      </varlistentry>
4283
4284 <!--
4285      <varlistentry>
4286       <term>
4287        Upcoming Features
4288       </term>
4289       <listitem>
4290        <para>
4291         In 7.1 or 7.2, we plan to have outer joins, storage for very long rows, and a
4292         write-ahead logging system.
4293        </para>
4294       </listitem>
4295      </varlistentry>
4296 -->
4297     </variablelist>
4298    </para>
4299
4300    <sect2>
4301     <title>Migration to version 7.0</title>
4302
4303     <para>
4304      A dump/restore using <application>pg_dump</application>
4305      is required for those wishing to migrate data from any
4306      previous release of <productname>PostgreSQL</productname>.
4307      For those upgrading from 6.5.*, you may instead use 
4308      <application>pg_upgrade</application> to upgrade to this
4309      release; however, a full dump/reload installation is always the
4310      most robust method for upgrades.
4311     </para>
4312
4313     <para>
4314      Interface and compatibility issues to consider for the new
4315      release include:
4316
4317      <itemizedlist>
4318       <listitem>
4319        <para>
4320         The date/time types <type>datetime</type> and
4321         <type>timespan</type> have been superseded by the
4322         SQL92-defined types <type>timestamp</type> and
4323         <type>interval</type>. Although there has been some effort to
4324         ease the transition by allowing
4325         <productname>PostgreSQL</productname> to recognize
4326         the deprecated type names and translate them to the new type
4327         names, this mechanism may not be completely transparent to
4328         your existing application.
4329        </para>
4330       </listitem>
4331
4332       <listitem>
4333        <para>
4334         The optimizer has been substantially improved in the area of
4335         query cost estimation. In some cases, this will result in
4336         decreased query times as the optimizer makes a better choice
4337         for the preferred plan. However, in a small number of cases,
4338         usually involving pathological distributions of data, your
4339         query times may go up. If you are dealing with large amounts
4340         of data, you may want to check your queries to verify
4341         performance.
4342        </para>
4343       </listitem>
4344
4345       <listitem>
4346        <para>
4347         The <acronym>JDBC</acronym> and <acronym>ODBC</acronym>
4348         interfaces have been upgraded and extended.
4349        </para>
4350       </listitem>
4351
4352       <listitem>
4353        <para>
4354         The string function <function>CHAR_LENGTH</function> is now a
4355         native function. Previous versions translated this into a call
4356         to <function>LENGTH</function>, which could result in
4357         ambiguity with other types implementing
4358         <function>LENGTH</function> such as the geometric types.
4359        </para>
4360       </listitem>
4361      </itemizedlist>
4362     </para>
4363
4364    </sect2>
4365
4366    <sect2>
4367     <title>Changes</title>
4368
4369     <para>
4370      <programlisting>
4371 Bug Fixes
4372 ---------
4373 Prevent function calls exceeding maximum number of arguments (Tom)
4374 Improve CASE construct (Tom)
4375 Fix SELECT coalesce(f1,0) FROM int4_tbl GROUP BY f1 (Tom)
4376 Fix SELECT sentence.words[0] FROM sentence GROUP BY sentence.words[0] (Tom)
4377 Fix GROUP BY scan bug (Tom)
4378 Improvements in SQL grammar processing (Tom)
4379 Fix for views involved in INSERT ... SELECT ... (Tom)
4380 Fix for SELECT a/2, a/2 FROM test_missing_target GROUP BY a/2 (Tom)
4381 Fix for subselects in INSERT ... SELECT (Tom)
4382 Prevent INSERT ... SELECT ... ORDER BY (Tom)
4383 Fixes for relations greater than 2GB, including vacuum
4384 Improve propagating system table changes to other backends (Tom)
4385 Improve propagating user table changes to other backends (Tom)
4386 Fix handling of temp tables in complex situations (Bruce, Tom)
4387 Allow table locking at table open, improving concurrent reliability (Tom)
4388 Properly quote sequence names in pg_dump (Ross J. Reedstrom)
4389 Prevent DROP DATABASE while others accessing
4390 Prevent any rows from being returned by GROUP BY if no rows processed (Tom)
4391 Fix SELECT COUNT(1) FROM table WHERE ...' if no rows matching WHERE (Tom)
4392 Fix pg_upgrade so it works for MVCC (Tom)
4393 Fix for SELECT ... WHERE x IN (SELECT ... HAVING SUM(x) &gt; 1) (Tom)
4394 Fix for "f1 datetime DEFAULT 'now'"  (Tom)
4395 Fix problems with CURRENT_DATE used in DEFAULT (Tom)
4396 Allow comment-only lines, and ;;; lines too. (Tom)
4397 Improve recovery after failed disk writes, disk full (Hiroshi)
4398 Fix cases where table is mentioned in FROM but not joined (Tom)
4399 Allow HAVING clause without aggregate functions (Tom)
4400 Fix for "--" comment and no trailing newline, as seen in perl interface
4401 Improve pg_dump failure error reports (Bruce)
4402 Allow sorts and hashes to exceed 2GB file sizes (Tom)
4403 Fix for pg_dump dumping of inherited rules (Tom)
4404 Fix for NULL handling comparisons (Tom)
4405 Fix inconsistent state caused by failed CREATE/DROP commands (Hiroshi)
4406 Fix for dbname with dash
4407 Prevent DROP INDEX from interfering with other backends (Tom)
4408 Fix file descriptor leak in verify_password()
4409 Fix for "Unable to identify an operator =$" problem
4410 Fix ODBC so no segfault if CommLog and Debug enabled (Dirk Niggemann)
4411 Fix for recursive exit call (Massimo)
4412 Fix for extra-long timezones (Jeroen van Vianen)
4413 Make pg_dump preserve primary key information (Peter E)
4414 Prevent databases with single quotes (Peter E)
4415 Prevent DROP DATABASE inside  transaction (Peter E)
4416 ecpg memory leak fixes (Stephen Birch)
4417 Fix for SELECT null::text, SELECT int4fac(null) and SELECT 2 + (null) (Tom)
4418 Y2K timestamp fix (Massimo)
4419 Fix for VACUUM 'HEAP_MOVED_IN was not expected' errors (Tom)
4420 Fix for views with tables/columns containing spaces  (Tom)
4421 Prevent privileges on indexes (Peter E)
4422 Fix for spinlock stuck problem when error is generated (Hiroshi)
4423 Fix ipcclean on Linux
4424 Fix handling of NULL constraint conditions (Tom)
4425 Fix memory leak in odbc driver (Nick Gorham)
4426 Fix for privilege check on UNION tables (Tom)
4427 Fix to allow SELECT 'a' LIKE 'a' (Tom)
4428 Fix for SELECT 1 + NULL (Tom)
4429 Fixes to CHAR
4430 Fix log() on numeric type (Tom)
4431 Deprecate ':' and ';' operators
4432 Allow vacuum of temporary tables
4433 Disallow inherited columns with the same name as new columns
4434 Recover or force failure when disk space is exhausted (Hiroshi)
4435 Fix INSERT INTO ... SELECT with AS columns matching result columns
4436 Fix INSERT ... SELECT ... GROUP BY groups by target columns not source columns (Tom)
4437 Fix CREATE TABLE test (a char(5) DEFAULT text '', b int4) with INSERT (Tom)
4438 Fix UNION with LIMIT
4439 Fix CREATE TABLE x AS SELECT 1 UNION SELECT 2
4440 Fix CREATE TABLE test(col char(2) DEFAULT user)
4441 Fix mismatched types in CREATE TABLE ... DEFAULT
4442 Fix SELECT * FROM pg_class where oid in (0,-1)
4443 Fix SELECT COUNT('asdf') FROM pg_class WHERE oid=12
4444 Prevent user who can create databases can modifying pg_database table (Peter E)
4445 Fix btree to give a useful elog when key > 1/2 (page - overhead) (Tom)
4446 Fix INSERT of 0.0 into DECIMAL(4,4) field (Tom)
4447
4448 Enhancements
4449 ------------
4450 New CLI interface include file sqlcli.h, based on SQL3/SQL98
4451 Remove all limits on query length, row length limit still exists (Tom)
4452 Update jdbc protocol to 2.0 (Jens Glaser <email>jens@jens.de</email>)
4453 Add TRUNCATE command to quickly truncate relation (Mike Mascari)
4454 Fix to give super user and createdb user proper update catalog rights (Peter E)
4455 Allow ecpg bool variables to have NULL values (Christof)
4456 Issue ecpg error if NULL value for variable with no NULL indicator (Christof)
4457 Allow ^C to cancel COPY command (Massimo)
4458 Add SET FSYNC and SHOW PG_OPTIONS commands(Massimo)
4459 Function name overloading for dynamically-loaded C functions (Frankpitt)
4460 Add CmdTuples() to libpq++(Vince)
4461 New CREATE CONSTRAINT TRIGGER and SET CONSTRAINTS commands(Jan)
4462 Allow CREATE FUNCTION/WITH clause to be used for all language types
4463 configure --enable-debug adds -g (Peter E)
4464 configure --disable-debug removes -g (Peter E)
4465 Allow more complex default expressions (Tom)
4466 First real FOREIGN KEY constraint trigger functionality (Jan)
4467 Add FOREIGN KEY ... MATCH FULL ... ON DELETE CASCADE (Jan)
4468 Add FOREIGN KEY ... MATCH &lt;unspecified&gt; referential actions (Don Baccus)
4469 Allow WHERE restriction on ctid (physical heap location) (Hiroshi)
4470 Move pginterface from contrib to interface directory, rename to pgeasy (Bruce)
4471 Change pgeasy connectdb() parameter ordering (Bruce)
4472 Require SELECT DISTINCT target list to have all ORDER BY columns (Tom)
4473 Add Oracle's COMMENT ON command (Mike Mascari <email>mascarim@yahoo.com</email>)
4474 libpq's PQsetNoticeProcessor function now returns previous hook(Peter E)
4475 Prevent PQsetNoticeProcessor from being set to NULL (Peter E)
4476 Make USING in COPY optional (Bruce)
4477 Allow subselects in the target list (Tom)
4478 Allow subselects on the left side of comparison operators (Tom)
4479 New parallel regression test (Jan)
4480 Change backend-side COPY to write files with permissions 644 not 666 (Tom)
4481 Force permissions on PGDATA directory to be secure, even if it exists (Tom)
4482 Added psql LASTOID variable to return last inserted oid (Peter E)
4483 Allow concurrent vacuum and remove pg_vlock vacuum lock file (Tom)
4484 Add privilege check for vacuum (Peter E)
4485 New libpq functions to allow asynchronous connections: PQconnectStart(), 
4486    PQconnectPoll(), PQresetStart(), PQresetPoll(), PQsetenvStart(), 
4487    PQsetenvPoll(), PQsetenvAbort (Ewan Mellor)
4488 New libpq PQsetenv() function (Ewan Mellor)
4489 create/alter user extension (Peter E)
4490 New postmaster.pid and postmaster.opts under $PGDATA (Tatsuo)
4491 New scripts for create/drop user/db (Peter E)
4492 Major psql overhaul (Peter E)
4493 Add const to libpq interface (Peter E)
4494 New libpq function PQoidValue (Peter E)
4495 Show specific non-aggregate causing problem with GROUP BY (Tom)
4496 Make changes to pg_shadow recreate pg_pwd file (Peter E)
4497 Add aggregate(DISTINCT ...) (Tom)
4498 Allow flag to control COPY input/output of NULLs (Peter E)
4499 Make postgres user have a password by default (Peter E)
4500 Add CREATE/ALTER/DROP GROUP (Peter E)
4501 All administration scripts now support --long options (Peter E, Karel)
4502 Vacuumdb script now supports --all option (Peter E)
4503 ecpg new portable FETCH syntax
4504 Add ecpg EXEC SQL IFDEF, EXEC SQL IFNDEF, EXEC SQL ELSE, EXEC SQL ELIF 
4505         and EXEC SQL ENDIF directives
4506 Add pg_ctl script to control backend start-up (Tatsuo)
4507 Add postmaster.opts.default file to store start-up flags (Tatsuo)
4508 Allow --with-mb=SQL_ASCII
4509 Increase maximum number of index keys to 16 (Bruce)
4510 Increase maximum number of function arguments to 16 (Bruce)
4511 Allow configuration of maximum number of index keys and arguments (Bruce)
4512 Allow unprivileged users to change their passwords (Peter E)
4513 Password authentication enabled; required for new users (Peter E)
4514 Disallow dropping a user who owns a database (Peter E)
4515 Change initdb option --with-mb to --enable-multibyte
4516 Add option for initdb to prompts for superuser password (Peter E)
4517 Allow complex type casts like col::numeric(9,2) and col::int2::float8 (Tom)
4518 Updated user interfaces on initdb, initlocation, pg_dump, ipcclean (Peter E)
4519 New pg_char_to_encoding() and pg_encoding_to_char() functions (Tatsuo)
4520 libpq non-blocking mode (Alfred Perlstein)
4521 Improve conversion of types in casts that don't specify a length
4522 New plperl internal programming language (Mark Hollomon)
4523 Allow COPY IN to read file that do not end with a newline (Tom)
4524 Indicate when long identifiers are truncated (Tom)
4525 Allow aggregates to use type equivalency (Peter E)
4526 Add Oracle's to_char(), to_date(), to_datetime(), to_timestamp(), to_number()
4527         conversion functions (Karel Zak &lt;zakkr@zf.jcu.cz&gt;)
4528 Add SELECT DISTINCT ON (expr [, expr ...]) targetlist ... (Tom)
4529 Check to be sure ORDER BY is compatible with the DISTINCT operation (Tom)
4530 Add NUMERIC and int8 types to ODBC
4531 Improve EXPLAIN results for Append, Group, Agg, Unique (Tom)
4532 Add ALTER TABLE ... ADD FOREIGN KEY (Stephan Szabo)
4533 Allow SELECT .. FOR UPDATE in PL/pgSQL (Hiroshi)
4534 Enable backward sequential scan even after reaching EOF (Hiroshi)
4535 Add btree indexing of boolean values, &gt;= and &lt;= (Don Baccus)
4536 Print current line number when COPY FROM fails (Massimo)
4537 Recognize POSIX time zone e.g. "PST+8" and "GMT-8" (Thomas)
4538 Add DEC as synonym for DECIMAL (Thomas)
4539 Add SESSION_USER as SQL92 key word, same as CURRENT_USER (Thomas)
4540 Implement SQL92 column aliases (aka correlation names) (Thomas)
4541 Implement SQL92 join syntax (Thomas)
4542 Make INTERVAL reserved word allowed as a column identifier (Thomas)
4543 Implement REINDEX command (Hiroshi)
4544 Accept ALL in aggregate function SUM(ALL col) (Tom)
4545 Prevent GROUP BY from using column aliases (Tom)
4546 New psql \encoding option (Tatsuo)
4547 Allow PQrequestCancel() to terminate when in waiting-for-lock state (Hiroshi)
4548 Allow negation of a negative number in all cases
4549 Add ecpg descriptors (Christof, Michael)
4550 Allow CREATE VIEW v AS SELECT f1::char(8) FROM tbl
4551 Allow casts with length, like foo::char(8)
4552 New libpq functions PQsetClientEncoding(), PQclientEncoding() (Tatsuo)
4553 Add support for SJIS user defined characters (Tatsuo)
4554 Larger views/rules supported
4555 Make libpq's PQconndefaults() thread-safe (Tom)
4556 Disable // as comment to be ANSI conforming, should use -- (Tom)
4557 Allow column aliases on views CREATE VIEW name (collist)
4558 Fixes for views with subqueries (Tom)
4559 Allow UPDATE table SET fld = (SELECT ...) (Tom)
4560 SET command options no longer require quotes
4561 Update pgaccess to 0.98.6
4562 New SET SEED command
4563 New pg_options.sample file
4564 New SET FSYNC command (Massimo)
4565 Allow pg_descriptions when creating tables
4566 Allow pg_descriptions when creating types, columns, and functions
4567 Allow psql \copy to allow delimiters (Peter E)
4568 Allow psql to print nulls as distinct from "" [null] (Peter E)
4569
4570 Types
4571 -----
4572 Many array fixes (Tom)
4573 Allow bare column names to be subscripted as arrays (Tom)
4574 Improve type casting of int and float constants (Tom)
4575 Cleanups for int8 inputs, range checking, and type conversion (Tom)
4576 Fix for SELECT timespan('21:11:26'::time) (Tom)
4577 netmask('x.x.x.x/0') is 255.255.255.255 instead of 0.0.0.0 (Oleg Sharoiko)
4578 Add btree index on NUMERIC (Jan)
4579 Perl fix for large objects containing NUL characters (Douglas Thomson) 
4580 ODBC fix for for large objects (free)
4581 Fix indexing of cidr data type
4582 Fix for Ethernet MAC addresses (macaddr type) comparisons
4583 Fix for date/time types when overflows happened in computations (Tom)
4584 Allow array on int8 (Peter E)
4585 Fix for rounding/overflow of NUMERIC type, like NUMERIC(4,4) (Tom)
4586 Allow NUMERIC arrays
4587 Fix bugs in NUMERIC ceil() and floor() functions (Tom)
4588 Make char_length()/octet_length including trailing blanks (Tom)
4589 Made abstime/reltime use int4 instead of time_t (Peter E)
4590 New lztext data type for compressed text fields
4591 Revise code to handle coercion of int and float constants (Tom)
4592 Start at new code to implement a BIT and BIT VARYING type (Adriaan Joubert)
4593 NUMERIC now accepts scientific notation (Tom)
4594 NUMERIC to int4 rounds (Tom)
4595 Convert float4/8 to NUMERIC properly (Tom)
4596 Allow type conversion with NUMERIC (Thomas)
4597 Make ISO date style (2000-02-16 09:33) the default (Thomas)
4598 Add NATIONAL CHAR [ VARYING ] (Thomas)
4599 Allow NUMERIC round and trunc to accept negative scales (Tom)
4600 New TIME WITH TIME ZONE type (Thomas)
4601 Add MAX()/MIN() on time type (Thomas)
4602 Add abs(), mod(), fac() for int8 (Thomas)
4603 Rename functions to round(), sqrt(), cbrt(), pow() for float8 (Thomas)
4604 Add transcendental math functions (e.g. sin(), acos()) for float8 (Thomas)
4605 Add exp() and ln() for NUMERIC type
4606 Rename NUMERIC power() to pow() (Thomas)
4607 Improved TRANSLATE() function (Edwin Ramirez, Tom)
4608 Allow X=-Y operators  (Tom)
4609 Allow SELECT float8(COUNT(*))/(SELECT COUNT(*) FROM t) FROM t GROUP BY f1; (Tom)
4610 Allow LOCALE to use indexes in regular expression searches (Tom)
4611 Allow creation of functional indexes to use default types
4612
4613 Performance
4614 -----------
4615 Prevent exponential space consumption with many AND's and OR's (Tom)
4616 Collect attribute selectivity values for system columns (Tom)
4617 Reduce memory usage of aggregates (Tom)
4618 Fix for LIKE optimization to use indexes with multibyte encodings (Tom)
4619 Fix r-tree index optimizer selectivity (Thomas)
4620 Improve optimizer selectivity computations and functions (Tom)
4621 Optimize btree searching for cases where many equal keys exist (Tom)
4622 Enable fast LIKE index processing only if index present (Tom)
4623 Re-use free space on index pages with duplicates (Tom)
4624 Improve hash join processing (Tom)
4625 Prevent descending sort if result is already sorted(Hiroshi)
4626 Allow commuting of index scan query qualifications (Tom)
4627 Prefer index scans in cases where ORDER BY/GROUP BY is required (Tom)
4628 Allocate large memory requests in fix-sized chunks for performance (Tom)
4629 Fix vacuum's performance by reducing memory allocation requests (Tom)
4630 Implement constant-expression simplification (Bernard Frankpitt, Tom)
4631 Use secondary columns to be used to determine start of index scan (Hiroshi)
4632 Prevent quadruple use of disk space when doing internal sorting (Tom)
4633 Faster sorting by calling fewer functions (Tom)
4634 Create system indexes to match all system caches (Bruce, Hiroshi)
4635 Make system caches use system indexes (Bruce)
4636 Make all system indexes unique (Bruce)
4637 Improve pg_statistics management for VACUUM speed improvement (Tom)
4638 Flush backend cache less frequently (Tom, Hiroshi)
4639 COPY now reuses previous memory allocation, improving performance (Tom)
4640 Improve optimization cost estimation (Tom)
4641 Improve optimizer estimate of range queries x &gt; lowbound AND x &lt; highbound (Tom)
4642 Use DNF instead of CNF where appropriate (Tom, Taral)
4643 Further cleanup for OR-of-AND WHERE-clauses (Tom)
4644 Make use of index in OR clauses (x = 1 AND y = 2) OR (x = 2 AND y = 4) (Tom)
4645 Smarter optimizer computations for random index page access (Tom)
4646 New SET variable to control optimizer costs (Tom)
4647 Optimizer queries based on LIMIT, OFFSET, and EXISTS qualifications (Tom)
4648 Reduce optimizer internal housekeeping of join paths for speedup (Tom)
4649 Major subquery speedup (Tom)
4650 Fewer fsync writes when fsync is not disabled (Tom)
4651 Improved LIKE optimizer estimates (Tom)
4652 Prevent fsync in SELECT-only queries (Vadim)
4653 Make index creation use psort code, because it is now faster (Tom)
4654 Allow creation of sort temp tables > 1 Gig
4655
4656 Source Tree Changes
4657 -------------------
4658 Fix for linux PPC compile
4659 New generic expression-tree-walker subroutine (Tom)
4660 Change form() to varargform() to prevent portability problems
4661 Improved range checking for large integers on Alphas
4662 Clean up #include in /include directory (Bruce)
4663 Add scripts for checking includes (Bruce)
4664 Remove un-needed #include's from *.c files (Bruce)
4665 Change #include's to use &lt;&gt; and "" as appropriate (Bruce)
4666 Enable Windows compilation of libpq
4667 Alpha spinlock fix from Uncle George <email>gatgul@voicenet.com</email>
4668 Overhaul of optimizer data structures (Tom)
4669 Fix to cygipc library (Yutaka Tanida)
4670 Allow pgsql to work on newer Cygwin snapshots (Dan)
4671 New catalog version number (Tom)
4672 Add Linux ARM
4673 Rename heap_replace to heap_update
4674 Update for QNX (Dr. Andreas Kardos)
4675 New platform-specific regression handling (Tom)
4676 Rename oid8 -&gt; oidvector and int28 -&gt; int2vector (Bruce)
4677 Included all yacc and lex files into the distribution (Peter E.)
4678 Remove lextest, no longer needed (Peter E)
4679 Fix for libpq and psql on Windows (Magnus)
4680 Internally change datetime and timespan into timestamp and interval (Thomas)
4681 Fix for plpgsql on BSD/OS
4682 Add SQL_ASCII test case to the regression test (Tatsuo)
4683 configure --with-mb now deprecated (Tatsuo)
4684 NT fixes
4685 NetBSD fixes (Johnny C. Lam <email>lamj@stat.cmu.edu</email>)
4686 Fixes for Alpha compiles
4687 New multibyte encodings
4688      </programlisting>
4689     </para>
4690    </sect2>
4691   </sect1>
4692
4693   <sect1 id="release-6-5-3">
4694    <title>Release 6.5.3</title>
4695
4696    <note>
4697    <title>Release date</title>
4698    <simpara>1999-10-13</simpara>
4699    </note>
4700
4701    <para>
4702     This is basically a cleanup release for 6.5.2.  We have added a new
4703     <application>PgAccess</> that was missing in 6.5.2, and installed an NT-specific fix.
4704    </para>
4705
4706
4707    <sect2>
4708     <title>Migration to version 6.5.3</title>
4709
4710     <para>
4711      A dump/restore is <emphasis>not</emphasis> required for those running
4712      6.5.*.
4713     </para>
4714    </sect2>
4715    <sect2>
4716     <title>Changes</title>
4717
4718     <para>
4719      <programlisting>
4720 Updated version of pgaccess 0.98
4721 NT-specific patch
4722 Fix dumping rules on inherited tables
4723      </programlisting>
4724     </para>
4725    </sect2>
4726   </sect1>
4727
4728
4729   <sect1 id="release-6-5-2">
4730    <title>Release 6.5.2</title>
4731
4732    <note>
4733    <title>Release date</title>
4734    <simpara>1999-09-15</simpara>
4735    </note>
4736
4737    <para>
4738     This is basically a cleanup release for 6.5.1.  We have fixed a variety of
4739     problems reported by 6.5.1 users.
4740    </para>
4741
4742
4743    <sect2>
4744     <title>Migration to version 6.5.2</title>
4745
4746     <para>
4747      A dump/restore is <emphasis>not</emphasis> required for those running
4748      6.5.*.
4749     </para>
4750    </sect2>
4751
4752    <sect2>
4753     <title>Changes</title>
4754
4755     <para>
4756      <programlisting>
4757 subselect+CASE fixes(Tom)
4758 Add SHLIB_LINK setting for solaris_i386 and solaris_sparc ports(Daren Sefcik)
4759 Fixes for CASE in WHERE join clauses(Tom)
4760 Fix BTScan abort(Tom)
4761 Repair the check for redundant UNIQUE and PRIMARY KEY indexes(Thomas)
4762 Improve it so that it checks for multicolumn constraints(Thomas)
4763 Fix for Windows making problem with MB enabled(Hiroki Kataoka)
4764 Allow BSD yacc and bison to compile pl code(Bruce)
4765 Fix SET NAMES working
4766 int8 fixes(Thomas)
4767 Fix vacuum's memory consumption(Hiroshi,Tatsuo)
4768 Reduce the total memory consumption of vacuum(Tom)
4769 Fix for timestamp(datetime)
4770 Rule deparsing bugfixes(Tom)
4771 Fix quoting problems in mkMakefile.tcldefs.sh.in and mkMakefile.tkdefs.sh.in(Tom)
4772 This is to re-use space on index pages freed by vacuum(Vadim)
4773 document -x for pg_dump(Bruce)
4774 Fix for unary operators in rule deparser(Tom)
4775 Comment out FileUnlink of excess segments during mdtruncate()(Tom)
4776 IRIX linking fix from Yu Cao &gt;yucao@falcon.kla-tencor.com&lt;
4777 Repair logic error in LIKE: should not return LIKE_ABORT
4778    when reach end of pattern before end of text(Tom)
4779 Repair incorrect cleanup of heap memory allocation during transaction abort(Tom)
4780 Updated version of pgaccess 0.98
4781      </programlisting>
4782     </para>
4783    </sect2>
4784   </sect1>
4785
4786   <sect1 id="release-6-5-1">
4787    <title>Release 6.5.1</title>
4788
4789    <note>
4790    <title>Release date</title>
4791    <simpara>1999-07-15</simpara>
4792    </note>
4793
4794    <para>
4795     This is basically a cleanup release for 6.5.  We have fixed a variety of
4796     problems reported by 6.5 users.
4797    </para>
4798
4799    <sect2>
4800     <title>Migration to version 6.5.1</title>
4801
4802     <para>
4803      A dump/restore is <emphasis>not</emphasis> required for those running
4804      6.5.
4805     </para>
4806    </sect2>
4807
4808    <sect2>
4809     <title>Changes</title>
4810
4811     <para>
4812      <programlisting>
4813 Add NT README file
4814 Portability fixes for linux_ppc, IRIX, linux_alpha, OpenBSD, alpha
4815 Remove QUERY_LIMIT, use SELECT...LIMIT
4816 Fix for EXPLAIN on inheritance(Tom)
4817 Patch to allow vacuum on multisegment tables(Hiroshi)
4818 R-Tree optimizer selectivity fix(Tom)
4819 ACL file descriptor leak fix(Atsushi Ogawa)
4820 New expresssion subtree code(Tom)
4821 Avoid disk writes for read-only transactions(Vadim)
4822 Fix for removal of temp tables if last transaction was aborted(Bruce)
4823 Fix to prevent too large row from being created(Bruce)
4824 plpgsql fixes
4825 Allow port numbers 32k - 64k(Bruce)
4826 Add ^ precidence(Bruce)
4827 Rename sort files called pg_temp to pg_sorttemp(Bruce)
4828 Fix for microseconds in time values(Tom)
4829 Tutorial source cleanup
4830 New linux_m68k port
4831 Fix for sorting of NULL's in some cases(Tom)
4832 Shared library dependencies fixed (Tom)
4833 Fixed glitches affecting GROUP BY in subselects(Tom)
4834 Fix some compiler warnings (Tomoaki Nishiyama)
4835 Add Win1250 (Czech) support (Pavel Behal)
4836      </programlisting>
4837     </para>
4838    </sect2>
4839   </sect1>
4840
4841   <sect1 id="release-6-5">
4842    <title>Release 6.5</title>
4843
4844    <note>
4845    <title>Release date</title>
4846    <simpara>1999-06-09</simpara>
4847    </note>
4848
4849    <para>
4850     This release marks a major step in the development team's mastery of the source
4851     code we inherited from Berkeley.  You will see we are now easily adding
4852     major features, thanks to the increasing size and experience of our
4853     world-wide development team.
4854    </para>
4855
4856    <para>
4857     Here is a brief summary of the more notable changes:
4858
4859     <variablelist>
4860      <varlistentry>
4861       <term>
4862        Multiversion concurrency control(MVCC)
4863       </term>
4864       <listitem>
4865        <para>
4866         This removes our old
4867         table-level locking, and replaces it with a locking system that is
4868         superior to most commercial database systems.  In a traditional system,
4869         each row that is modified is locked until committed, preventing reads by
4870         other users.  MVCC uses the natural multiversion nature of PostgreSQL
4871         to allow readers to continue reading consistent data during writer
4872         activity.  Writers continue to use the compact pg_log transaction
4873         system.  This is all performed without having to allocate a lock for
4874         every row like traditional database systems.  So, basically, we no
4875         longer are restricted by simple table-level locking;
4876         we have something better than row-level locking.
4877        </para>
4878       </listitem>
4879      </varlistentry>
4880
4881      <varlistentry>
4882       <term>
4883        Hot backups from <application>pg_dump</application>
4884       </term>
4885       <listitem>
4886        <para>
4887         <application>pg_dump</application> takes advantage of the new
4888         MVCC features to give a consistent database dump/backup while
4889         the database stays online and available for queries.
4890        </para>
4891       </listitem>
4892      </varlistentry>
4893
4894      <varlistentry>
4895       <term>
4896        Numeric data type
4897       </term>
4898       <listitem>
4899        <para>
4900         We now have a true numeric data type, with
4901         user-specified precision.
4902        </para>
4903       </listitem>
4904      </varlistentry>
4905
4906      <varlistentry>
4907       <term>
4908        Temporary tables
4909       </term>
4910       <listitem>
4911        <para>
4912         Temporary tables are guaranteed to have unique names
4913         within a database session, and are destroyed on session exit.
4914        </para>
4915       </listitem>
4916      </varlistentry>
4917
4918      <varlistentry>
4919       <term>
4920        New SQL features
4921       </term>
4922       <listitem>
4923        <para>
4924         We now have CASE, INTERSECT, and EXCEPT statement
4925         support.  We have new LIMIT/OFFSET, SET TRANSACTION ISOLATION LEVEL,
4926         SELECT ... FOR UPDATE, and an improved LOCK TABLE command.
4927        </para>
4928       </listitem>
4929      </varlistentry>
4930
4931      <varlistentry>
4932       <term>
4933        Speedups
4934       </term>
4935       <listitem>
4936        <para>
4937         We continue to speed up PostgreSQL, thanks to the variety of
4938         talents within our team.  We have sped up memory allocation,
4939         optimization, table joins, and row transfer routines.
4940        </para>
4941       </listitem>
4942      </varlistentry>
4943
4944      <varlistentry>
4945       <term>
4946        Ports
4947       </term>
4948       <listitem>
4949        <para>
4950         We continue to expand our port list, this time including
4951         <systemitem class="osname">Windows NT</>/<systemitem>ix86</> and <systemitem class="osname">NetBSD</>/<systemitem>arm32</>.
4952        </para>
4953       </listitem>
4954      </varlistentry>
4955
4956      <varlistentry>
4957       <term>
4958        Interfaces
4959       </term>
4960       <listitem>
4961        <para>
4962         Most interfaces have new versions, and existing functionality
4963         has been improved.
4964        </para>
4965       </listitem>
4966      </varlistentry>
4967
4968      <varlistentry>
4969       <term>
4970        Documentation
4971       </term>
4972       <listitem>
4973        <para>
4974         New and updated material is present throughout the
4975         documentation. New <acronym>FAQ</acronym>s have been
4976         contributed for <systemitem class="osname">SGI</> and <systemitem class="osname">AIX</> platforms.
4977         The <citetitle>Tutorial</citetitle> has introductory information
4978         on <acronym>SQL</acronym> from Stefan Simkovics.
4979         For the <citetitle>User's Guide</citetitle>, there are
4980         reference pages covering the postmaster and more utility
4981         programs, and a new appendix
4982         contains details on date/time behavior.
4983         The <citetitle>Administrator's Guide</citetitle> has a new
4984         chapter on troubleshooting from Tom Lane.
4985         And the <citetitle>Programmer's Guide</citetitle> has a
4986         description of query processing, also from Stefan, and details 
4987         on obtaining the <productname>PostgreSQL</productname> source
4988         tree via anonymous <productname>CVS</productname> and
4989         <productname>CVSup</productname>. 
4990        </para>
4991       </listitem>
4992      </varlistentry>
4993     </variablelist>
4994    </para>
4995
4996    <sect2>
4997     <title>Migration to version 6.5</title>
4998
4999     <para>
5000      A dump/restore using <application>pg_dump</application>
5001      is required for those wishing to migrate data from any
5002      previous release of <productname>PostgreSQL</productname>.
5003      <application>pg_upgrade</application> can <emphasis>not</emphasis>
5004      be used to upgrade to this release because the on-disk structure
5005      of the tables has changed compared to previous releases.
5006     </para>
5007
5008     <para>
5009      The new Multiversion Concurrency Control (MVCC) features can
5010      give somewhat different behaviors in multiuser
5011      environments. <emphasis>Read and understand the following section 
5012       to ensure that your existing applications will give you the
5013       behavior you need.</emphasis>
5014     </para>
5015
5016     <sect3>
5017      <title>Multiversion Concurrency Control</title>
5018
5019      <para>
5020       Because readers in 6.5 don't lock data, regardless of transaction
5021       isolation level, data read by one transaction can be overwritten by
5022       another. In other words, if a row is returned by
5023       <command>SELECT</command> it doesn't mean that this row really exists
5024       at the time it is returned (i.e. sometime after the statement or
5025       transaction began) nor that the row is protected from being deleted or
5026       updated by concurrent transactions before the current transaction does
5027       a commit or rollback.
5028      </para>
5029
5030      <para>
5031       To ensure the actual existence of a row and protect it against
5032       concurrent updates one must use <command>SELECT FOR UPDATE</command> or
5033       an appropriate <command>LOCK TABLE</command> statement. This should be
5034       taken into account when porting applications from previous releases of
5035       <productname>PostgreSQL</productname> and other environments.
5036      </para>
5037
5038      <para>
5039       Keep the above in mind if you are using
5040       <filename>contrib/refint.*</filename> triggers for
5041       referential integrity. Additional techniques are required now. One way is
5042       to use <command>LOCK parent_table IN SHARE ROW EXCLUSIVE MODE</command>
5043       command if a transaction is going to update/delete a primary key and
5044       use <command>LOCK parent_table IN SHARE MODE</command> command if a
5045       transaction is going to update/insert a foreign key.
5046
5047       <note>
5048        <para>
5049         Note that if you run a transaction in SERIALIZABLE mode then you must
5050         execute the <command>LOCK</command> commands above before execution of any
5051         <acronym>DML</acronym> statement
5052         (<command>SELECT/INSERT/DELETE/UPDATE/FETCH/COPY_TO</command>) in the
5053         transaction.
5054        </para>
5055       </note>
5056      </para>
5057
5058      <para>
5059       These inconveniences will disappear in the future
5060       when the ability to read dirty
5061       (uncommitted) data (regardless of isolation level) and true referential
5062       integrity will be implemented.
5063      </para>
5064     </sect3>
5065     </sect2>
5066
5067    <sect2>
5068     <title>Changes</title>
5069
5070     <para>
5071      <programlisting>
5072 Bug Fixes
5073 ---------
5074 Fix text<->float8 and text<->float4 conversion functions(Thomas)
5075 Fix for creating tables with mixed-case constraints(Billy)
5076 Change exp()/pow() behavior to generate error on underflow/overflow(Jan)
5077 Fix bug in pg_dump -z
5078 Memory overrun cleanups(Tatsuo)
5079 Fix for lo_import crash(Tatsuo)
5080 Adjust handling of data type names to suppress double quotes(Thomas)
5081 Use type coercion for matching columns and DEFAULT(Thomas)
5082 Fix deadlock so it only checks once after one second of sleep(Bruce)
5083 Fixes for aggregates and PL/pgsql(Hiroshi)
5084 Fix for subquery crash(Vadim)
5085 Fix for libpq function PQfnumber and case-insensitive names(Bahman Rafatjoo)
5086 Fix for large object write-in-middle, no extra block, memory consumption(Tatsuo)
5087 Fix for pg_dump -d or -D and  quote special characters in INSERT
5088 Repair serious problems with dynahash(Tom)
5089 Fix INET/CIDR portability problems
5090 Fix problem with selectivity error in ALTER TABLE ADD COLUMN(Bruce)
5091 Fix executor so mergejoin of different column types works(Tom)
5092 Fix for Alpha OR selectivity bug
5093 Fix OR index selectivity problem(Bruce)
5094 Fix so \d shows proper length for char()/varchar()(Ryan)
5095 Fix tutorial code(Clark)
5096 Improve destroyuser checking(Oliver)
5097 Fix for Kerberos(Rodney McDuff)
5098 Fix for dropping database while dirty buffers(Bruce)
5099 Fix so sequence nextval() can be case-sensitive(Bruce)
5100 Fix !!= operator
5101 Drop buffers before destroying database files(Bruce)
5102 Fix case where executor evaluates functions twice(Tatsuo)
5103 Allow sequence nextval actions to be case-sensitive(Bruce)
5104 Fix optimizer indexing not working for negative numbers(Bruce)
5105 Fix for memory leak in executor with fjIsNull
5106 Fix for aggregate memory leaks(Erik Riedel)
5107 Allow user name containing a dash to grant privileges
5108 Cleanup of NULL in inet types
5109 Clean up system table bugs(Tom)
5110 Fix problems of PAGER and \? command(Masaaki Sakaida)
5111 Reduce default multisegment file size limit to 1GB(Peter)
5112 Fix for dumping of CREATE OPERATOR(Tom)
5113 Fix for backward scanning of cursors(Hiroshi Inoue)
5114 Fix for COPY FROM STDIN when using \i(Tom)
5115 Fix for subselect is compared inside an expression(Jan)
5116 Fix handling of error reporting while returning rows(Tom)
5117 Fix problems with reference to array types(Tom,Jan)
5118 Prevent UPDATE SET oid(Jan)
5119 Fix pg_dump so -t option can handle case-sensitive tablenames
5120 Fixes for GROUP BY in special cases(Tom, Jan)
5121 Fix for memory leak in failed queries(Tom)
5122 DEFAULT now supports mixed-case identifiers(Tom)
5123 Fix for multisegment uses of DROP/RENAME table, indexes(Ole Gjerde)
5124 Disable use of pg_dump with both -o and -d options(Bruce)
5125 Allow pg_dump to properly dump group privileges(Bruce)
5126 Fix GROUP BY in INSERT INTO table SELECT * FROM table2(Jan)
5127 Fix for computations in views(Jan)
5128 Fix for aggregates on array indexes(Tom)
5129 Fix for DEFAULT handles single quotes in value requiring too many quotes
5130 Fix security problem with non-super users importing/exporting large objects(Tom)
5131 Rollback of transaction that creates table cleaned up properly(Tom)
5132 Fix to allow long table and column names to generate proper serial names(Tom)
5133
5134 Enhancements
5135 ------------
5136 Add "vacuumdb" utility
5137 Speed up libpq by allocating memory better(Tom)
5138 EXPLAIN all indexes used(Tom)
5139 Implement CASE, COALESCE, NULLIF  expression(Thomas)
5140 New pg_dump table output format(Constantin)
5141 Add string min()/max() functions(Thomas)
5142 Extend new type coercion techniques to aggregates(Thomas)
5143 New moddatetime contrib(Terry)
5144 Update to pgaccess 0.96(Constantin)
5145 Add routines for single-byte "char" type(Thomas)
5146 Improved substr() function(Thomas)
5147 Improved multibyte handling(Tatsuo)
5148 Multiversion concurrency control/MVCC(Vadim)
5149 New Serialized mode(Vadim)
5150 Fix for tables over 2gigs(Peter)
5151 New SET TRANSACTION ISOLATION LEVEL(Vadim)
5152 New LOCK TABLE IN ... MODE(Vadim)
5153 Update ODBC driver(Byron)
5154 New NUMERIC data type(Jan)
5155 New SELECT FOR UPDATE(Vadim)
5156 Handle "NaN" and "Infinity" for input values(Jan)
5157 Improved date/year handling(Thomas)
5158 Improved handling of backend connections(Magnus)
5159 New options ELOG_TIMESTAMPS and USE_SYSLOG options for log files(Massimo)
5160 New TCL_ARRAYS option(Massimo)
5161 New INTERSECT and EXCEPT(Stefan)
5162 New pg_index.indisprimary for primary key tracking(D'Arcy)
5163 New pg_dump option to allow dropping of tables before creation(Brook)
5164 Speedup of row output routines(Tom)
5165 New READ COMMITTED isolation level(Vadim)
5166 New TEMP tables/indexes(Bruce)
5167 Prevent sorting if result is already sorted(Jan)
5168 New memory allocation optimization(Jan)
5169 Allow psql to do \p\g(Bruce)
5170 Allow multiple rule actions(Jan)
5171 Added LIMIT/OFFSET functionality(Jan)
5172 Improve optimizer when joining a large number of tables(Bruce)
5173 New intro to SQL from S. Simkovics' Master's Thesis (Stefan, Thomas)
5174 New intro to backend processing from S. Simkovics' Master's Thesis (Stefan)
5175 Improved int8 support(Ryan Bradetich, Thomas, Tom)
5176 New routines to convert between int8 and text/varchar types(Thomas)
5177 New bushy plans, where meta-tables are joined(Bruce)
5178 Enable right-hand queries by default(Bruce)
5179 Allow reliable maximum number of backends to be set at configure time
5180       (--with-maxbackends and postmaster switch (-N backends))(Tom)
5181 GEQO default now 10 tables because of optimizer speedups(Tom)
5182 Allow NULL=Var for MS-SQL portability(Michael, Bruce)
5183 Modify contrib check_primary_key() so either "automatic" or "dependent"(Anand)
5184 Allow psql \d on a view show query(Ryan)
5185 Speedup for LIKE(Bruce)
5186 Ecpg fixes/features, see src/interfaces/ecpg/ChangeLog file(Michael)
5187 JDBC fixes/features, see src/interfaces/jdbc/CHANGELOG(Peter)
5188 Make % operator have precedence like /(Bruce)
5189 Add new postgres -O option to allow system table structure changes(Bruce)
5190 Update contrib/pginterface/findoidjoins script(Tom)
5191 Major speedup in vacuum of deleted rows with indexes(Vadim) 
5192 Allow non-SQL functions to run different versions based on arguments(Tom)
5193 Add -E option that shows actual queries sent by \dt and friends(Masaaki Sakaida)
5194 Add version number in start-up banners for psql(Masaaki Sakaida)
5195 New contrib/vacuumlo removes large objects not referenced(Peter)
5196 New initialization for table sizes so non-vacuumed tables perform better(Tom)
5197 Improve error messages when a connection is rejected(Tom)
5198 Support for arrays of char() and varchar() fields(Massimo)
5199 Overhaul of hash code to increase reliability and performance(Tom)
5200 Update to PyGreSQL 2.4(D'Arcy)
5201 Changed debug options so -d4 and -d5 produce different node displays(Jan)
5202 New pg_options: pretty_plan, pretty_parse, pretty_rewritten(Jan)
5203 Better optimization statistics for system table access(Tom)
5204 Better handling of non-default block sizes(Massimo)
5205 Improve GEQO optimizer memory consumption(Tom)
5206 UNION now suppports ORDER BY of columns not in target list(Jan)
5207 Major libpq++ improvements(Vince Vielhaber)
5208 pg_dump now uses -z(ACL's) as default(Bruce)
5209 backend cache, memory speedups(Tom)
5210 have pg_dump do everything in one snapshot transaction(Vadim)
5211 fix for large object memory leakage, fix for pg_dumping(Tom)
5212 INET type now respects netmask for comparisons
5213 Make VACUUM ANALYZE only use a readlock(Vadim)
5214 Allow VIEWs on UNIONS(Jan)
5215 pg_dump now can generate consistent snapshots on active databases(Vadim)
5216
5217 Source Tree Changes
5218 -------------------
5219 Improve port matching(Tom)
5220 Portability fixes for SunOS
5221 Add Windows NT backend port and enable dynamic loading(Magnus and Daniel Horak)
5222 New port to Cobalt Qube(Mips) running Linux(Tatsuo)
5223 Port to NetBSD/m68k(Mr. Mutsuki Nakajima)
5224 Port to NetBSD/sun3(Mr. Mutsuki Nakajima)
5225 Port to NetBSD/macppc(Toshimi Aoki)
5226 Fix for tcl/tk configuration(Vince)
5227 Removed CURRENT key word for rule queries(Jan)
5228 NT dynamic loading now works(Daniel Horak)
5229 Add ARM32 support(Andrew McMurry)
5230 Better support for HP-UX 11 and UnixWare
5231 Improve file handling to be more uniform, prevent file descriptor leak(Tom)
5232 New install commands for plpgsql(Jan)
5233      </programlisting>
5234     </para>
5235    </sect2>
5236   </sect1>
5237
5238
5239 <sect1 id="release-6-4-2">
5240 <title>Release 6.4.2</title>
5241
5242    <note>
5243    <title>Release date</title>
5244    <simpara>1998-12-20</simpara>
5245    </note>
5246
5247 <para>
5248 The 6.4.1 release was improperly packaged.  This also has one additional
5249 bug fix.
5250 </para>
5251
5252
5253 <sect2>
5254 <title>Migration to version 6.4.2</title>
5255
5256 <para>
5257 A dump/restore is <emphasis>not</emphasis> required for those running
5258 6.4.*.
5259 </para>
5260 </sect2>
5261 <sect2>
5262 <title>Changes</title>
5263
5264 <para>
5265 <programlisting>
5266 Fix for datetime constant problem on some platforms(Thomas)
5267 </programlisting>
5268 </para>
5269 </sect2>
5270 </sect1>
5271
5272
5273
5274 <sect1 id="release-6-4-1">
5275 <title>Release 6.4.1</title>
5276
5277    <note>
5278    <title>Release date</title>
5279    <simpara>1998-12-18</simpara>
5280    </note>
5281
5282 <para>
5283 This is basically a cleanup release for 6.4.  We have fixed a variety of
5284 problems reported by 6.4 users.
5285 </para>
5286
5287
5288 <sect2>
5289 <title>Migration to version 6.4.1</title>
5290
5291 <para>
5292 A dump/restore is <emphasis>not</emphasis> required for those running
5293 6.4.
5294 </para>
5295 </sect2>
5296 <sect2>
5297 <title>Changes</title>
5298
5299 <para>
5300 <programlisting>
5301 Add pg_dump -N flag to force double quotes around identifiers.  This is
5302         the default(Thomas)
5303 Fix for NOT in where clause causing crash(Bruce)
5304 EXPLAIN VERBOSE coredump fix(Vadim)
5305 Fix shared-library problems on Linux
5306 Fix test for table existence to allow mixed-case and whitespace in
5307         the table name(Thomas)
5308 Fix a couple of pg_dump bugs
5309 Configure matches template/.similar entries better(Tom)
5310 Change builtin function names from SPI_* to spi_*
5311 OR WHERE clause fix(Vadim)
5312 Fixes for mixed-case table names(Billy)
5313 contrib/linux/postgres.init.csh/sh fix(Thomas)
5314 libpq memory overrun fix
5315 SunOS fixes(Tom)
5316 Change exp() behavior to generate error on underflow(Thomas)
5317 pg_dump fixes for memory leak, inheritance constraints, layout change
5318 update pgaccess to 0.93
5319 Fix prototype for 64-bit platforms
5320 Multibyte fixes(Tatsuo)
5321 New ecpg man page
5322 Fix memory overruns(Tatsuo)
5323 Fix for lo_import() crash(Bruce)
5324 Better search for install program(Tom)
5325 Timezone fixes(Tom)
5326 HP-UX fixes(Tom)
5327 Use implicit type coercion for matching DEFAULT values(Thomas)
5328 Add routines to help with single-byte (internal) character type(Thomas)
5329 Compilation of libpq for Windows fixes(Magnus)
5330 Upgrade to PyGreSQL 2.2(D'Arcy)
5331 </programlisting>
5332 </para>
5333 </sect2>
5334 </sect1>
5335
5336
5337
5338 <sect1 id="release-6-4">
5339 <title>Release 6.4</title>
5340
5341    <note>
5342    <title>Release date</title>
5343    <simpara>1998-10-30</simpara>
5344    </note>
5345
5346 <para>
5347 There are <emphasis>many</emphasis> new features and improvements in this release.
5348 Thanks to our developers and maintainers, nearly every aspect of the system
5349 has received some attention since the previous release.
5350 Here is a brief, incomplete summary:
5351
5352 <itemizedlist>
5353 <listitem>
5354 <para>
5355 Views and rules are now functional thanks to extensive new code in the 
5356 rewrite rules system from Jan Wieck. He also wrote a chapter on it
5357 for the <citetitle>Programmer's Guide</citetitle>.
5358 </para>
5359 </listitem>
5360 <listitem>
5361 <para>
5362 Jan also contributed a second procedural language, <application>PL/pgSQL</application>, to go with the
5363 original <application>PL/pgTCL</application> procedural language he contributed last release.
5364 </para>
5365 </listitem>
5366
5367 <listitem>
5368 <para>
5369 We have optional multiple-byte character set support from Tatsuo Ishii
5370 to complement our existing locale support.
5371 </para>
5372 </listitem>
5373
5374 <listitem>
5375 <para>
5376 Client/server communications has been cleaned up, with better support for
5377 asynchronous messages and interrupts thanks to Tom Lane.
5378 </para>
5379 </listitem>
5380
5381 <listitem>
5382 <para>
5383 The parser will now perform automatic type coercion to match arguments
5384 to available operators and functions, and to match columns and expressions
5385 with target columns. This uses a generic mechanism which supports
5386 the type extensibility features of <productname>PostgreSQL</productname>.
5387 There is a new chapter in the <citetitle>User's Guide</citetitle>
5388 which covers this topic.
5389 </para>
5390 </listitem>
5391
5392 <listitem>
5393 <para>
5394 Three new data types have been added. 
5395 Two types, <type>inet</type> and <type>cidr</type>, support various forms
5396 of IP network, subnet, and machine addressing. There is now an 8-byte integer
5397 type available on some platforms. See the chapter on data types
5398 in the <citetitle>User's Guide</citetitle> for details.
5399 A fourth type, <type>serial</type>, is now supported by the parser as an
5400 amalgam of the <type>int4</type> type, a sequence, and a unique index.
5401 </para>
5402 </listitem>
5403
5404 <listitem>
5405 <para>
5406 Several more <acronym>SQL92</acronym>-compatible syntax features have been
5407 added, including <command>INSERT DEFAULT VALUES</command>
5408 </para>
5409 </listitem>
5410
5411 <listitem>
5412 <para>
5413 The automatic configuration and installation system has received some
5414 attention, and should be more robust for more platforms than it has ever
5415 been.
5416 </para>
5417 </listitem>
5418
5419 </itemizedlist>
5420 </para>
5421
5422 <sect2>
5423 <title>Migration to version 6.4</title>
5424
5425 <para>
5426 A dump/restore using <application>pg_dump</application> 
5427 or <application>pg_dumpall</application>
5428 is required for those wishing to migrate data from any
5429 previous release of <productname>PostgreSQL</productname>.
5430 </para>
5431 </sect2>
5432
5433    <sect2>
5434 <title>Changes</title>
5435
5436     <para>
5437      <programlisting>
5438 Bug Fixes
5439 ---------
5440 Fix for a tiny memory leak in PQsetdb/PQfinish(Bryan)
5441 Remove char2-16 data types, use char/varchar(Darren)
5442 Pqfn not handles a NOTICE message(Anders)
5443 Reduced busywaiting overhead for spinlocks with many backends (dg)
5444 Stuck spinlock detection (dg)
5445 Fix up "ISO-style" timespan decoding and encoding(Thomas)
5446 Fix problem with table drop after rollback of transaction(Vadim)
5447 Change error message and remove non-functional update message(Vadim)
5448 Fix for COPY array checking
5449 Fix for SELECT 1 UNION SELECT NULL
5450 Fix for buffer leaks in large object calls(Pascal)
5451 Change owner from oid to int4 type(Bruce)
5452 Fix a bug in the oracle compatibility functions btrim() ltrim() and rtrim()
5453 Fix for shared invalidation cache overflow(Massimo)
5454 Prevent file descriptor leaks in failed COPY's(Bruce)
5455 Fix memory leak in libpgtcl's pg_select(Constantin)
5456 Fix problems with username/passwords over 8 characters(Tom)
5457 Fix problems with handling of asynchronous NOTIFY in backend(Tom)
5458 Fix of many bad system table entries(Tom)
5459
5460 Enhancements
5461 ------------
5462 Upgrade ecpg and ecpglib,see src/interfaces/ecpc/ChangeLog(Michael)
5463 Show the index used in an EXPLAIN(Zeugswetter)
5464 EXPLAIN  invokes  rule system and shows plan(s) for rewritten queries(Jan)
5465 Multibyte awareness of many data types and functions, via configure(Tatsuo)
5466 New configure --with-mb option(Tatsuo)
5467 New initdb --pgencoding option(Tatsuo)
5468 New createdb -E multibyte option(Tatsuo)
5469 Select version(); now returns PostgreSQL version(Jeroen)
5470 libpq now allows asynchronous clients(Tom)
5471 Allow cancel from client of backend query(Tom)
5472 psql now cancels query with Control-C(Tom)
5473 libpq users need not issue dummy queries to get NOTIFY messages(Tom)
5474 NOTIFY now sends sender's PID, so you can tell whether it was your own(Tom)
5475 PGresult struct now includes associated error message, if any(Tom)
5476 Define "tz_hour" and "tz_minute" arguments to date_part()(Thomas)
5477 Add routines to convert between varchar and bpchar(Thomas)
5478 Add routines to allow sizing of varchar and bpchar into target columns(Thomas)
5479 Add bit flags to support timezonehour and minute in data retrieval(Thomas)
5480 Allow more variations on valid floating point numbers (e.g. ".1", "1e6")(Thomas)
5481 Fixes for unary minus parsing with leading spaces(Thomas)
5482 Implement TIMEZONE_HOUR, TIMEZONE_MINUTE per SQL92 specs(Thomas)
5483 Check for and properly ignore FOREIGN KEY column constraints(Thomas)
5484 Define USER as synonym for CURRENT_USER per SQL92 specs(Thomas)
5485 Enable HAVING clause but no fixes elsewhere yet.
5486 Make "char" type a synonym for "char(1)" (actually implemented as bpchar)(Thomas)
5487 Save string type if specified for DEFAULT clause handling(Thomas)
5488 Coerce operations involving different data types(Thomas)
5489 Allow some index use for columns of different types(Thomas)
5490 Add capabilities for automatic type conversion(Thomas)
5491 Cleanups for large objects, so file is truncated on open(Peter)
5492 Readline cleanups(Tom)
5493 Allow psql  \f \ to make spaces as delimiter(Bruce)
5494 Pass pg_attribute.atttypmod to the frontend for column field lengths(Tom,Bruce)
5495 Msql compatibility library in /contrib(Aldrin)
5496 Remove the requirement that ORDER/GROUP BY clause identifiers be 
5497 included in the target list(David)
5498 Convert columns to match columns in UNION clauses(Thomas)
5499 Remove fork()/exec() and only do fork()(Bruce)
5500 Jdbc cleanups(Peter)
5501 Show backend status on ps command line(only works on some platforms)(Bruce)
5502 Pg_hba.conf now has a sameuser option in the database field
5503 Make lo_unlink take oid param, not int4
5504 New DISABLE_COMPLEX_MACRO for compilers that can't handle our macros(Bruce)
5505 Libpgtcl now handles NOTIFY as a Tcl event, need not send dummy queries(Tom)
5506 libpgtcl cleanups(Tom)
5507 Add -error option to libpgtcl's pg_result command(Tom)
5508 New locale patch, see docs/README/locale(Oleg)
5509 Fix for pg_dump so CONSTRAINT and CHECK syntax is correct(ccb)
5510 New contrib/lo code for large object orphan removal(Peter)
5511 New psql command "SET CLIENT_ENCODING TO 'encoding'" for multibytes
5512 feature, see /doc/README.mb(Tatsuo)
5513 contrib/noupdate code to revoke update permission on a column
5514 libpq can now be compiled on Windows(Magnus)
5515 Add PQsetdbLogin() in libpq
5516 New 8-byte integer type, checked by configure for OS support(Thomas)
5517 Better support for quoted table/column names(Thomas)
5518 Surround table and column names with double-quotes in pg_dump(Thomas)
5519 PQreset() now works with passwords(Tom)
5520 Handle case of GROUP BY target list column number out of range(David)
5521 Allow UNION in subselects
5522 Add auto-size to screen to \d? commands(Bruce)
5523 Use UNION to show all \d? results in one query(Bruce)
5524 Add \d? field search feature(Bruce)
5525 Pg_dump issues fewer \connect requests(Tom)
5526 Make pg_dump -z flag work better, document it in manual page(Tom)
5527 Add HAVING clause with full support for subselects and unions(Stephan)
5528 Full text indexing routines in contrib/fulltextindex(Maarten)
5529 Transaction ids now stored in shared memory(Vadim)
5530 New PGCLIENTENCODING when issuing COPY command(Tatsuo)
5531 Support for SQL92 syntax "SET NAMES"(Tatsuo)
5532 Support for LATIN2-5(Tatsuo)
5533 Add UNICODE regression test case(Tatsuo)
5534 Lock manager cleanup, new locking modes for LLL(Vadim)
5535 Allow index use with OR clauses(Bruce)
5536 Allows "SELECT NULL ORDER BY 1;"
5537 Explain VERBOSE prints the plan, and now pretty-prints the plan to
5538 the postmaster log file(Bruce)
5539 Add indexes display to \d command(Bruce)
5540 Allow GROUP BY on functions(David)
5541 New pg_class.relkind for large objects(Bruce)
5542 New way to send libpq NOTICE messages to a different location(Tom)
5543 New \w write command to psql(Bruce)
5544 New /contrib/findoidjoins scans oid columns to find join relationships(Bruce)
5545 Allow binary-compatible indexes to be considered when checking for valid
5546 Indexes for restriction clauses containing a constant(Thomas)
5547 New ISBN/ISSN code in /contrib/isbn_issn
5548 Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN constraint(Thomas)
5549 New rewrite system fixes many problems with rules and views(Jan)
5550         * Rules on relations work
5551         * Event qualifications on insert/update/delete work
5552         * New OLD variable to reference CURRENT, CURRENT will be remove in future
5553         * Update rules can reference NEW and OLD in rule qualifications/actions
5554         * Insert/update/delete rules on views work
5555         * Multiple rule actions are now supported, surrounded by parentheses
5556         * Regular users can create views/rules on tables they have RULE permits
5557         * Rules and views inherit the privileges of the creator
5558         * No rules at the column level
5559         * No UPDATE NEW/OLD rules
5560         * New pg_tables, pg_indexes, pg_rules and pg_views system views
5561         * Only a single action on SELECT rules
5562         * Total rewrite overhaul, perhaps for 6.5
5563         * handle subselects
5564         * handle aggregates on views
5565         * handle insert into select from view works
5566 System indexes are now multikey(Bruce)
5567 Oidint2, oidint4, and oidname types are removed(Bruce)
5568 Use system cache for more system table lookups(Bruce)
5569 New backend programming language PL/pgSQL in backend/pl(Jan)
5570 New SERIAL data type, auto-creates sequence/index(Thomas)
5571 Enable assert checking without a recompile(Massimo)
5572 User lock enhancements(Massimo)
5573 New setval() command to set sequence value(Massimo)
5574 Auto-remove unix socket file on start-up if no postmaster running(Massimo)
5575 Conditional trace package(Massimo)
5576 New UNLISTEN command(Massimo)
5577 psql and libpq now compile under Windows using win32.mak(Magnus)
5578 Lo_read no longer stores trailing NULL(Bruce)
5579 Identifiers are now truncated to 31 characters internally(Bruce)
5580 Createuser options now availble on the command line
5581 Code for 64-bit integer supported added, configure tested, int8 type(Thomas)
5582 Prevent file descriptor leaf from failed COPY(Bruce)
5583 New pg_upgrade command(Bruce)
5584 Updated /contrib directories(Massimo)
5585 New CREATE TABLE DEFAULT VALUES statement available(Thomas)
5586 New INSERT INTO TABLE DEFAULT VALUES statement available(Thomas)
5587 New DECLARE and FETCH feature(Thomas)
5588 libpq's internal structures now not exported(Tom)
5589 Allow up to 8 key indexes(Bruce)
5590 Remove ARCHIVE key word, that is no longer used(Thomas)
5591 pg_dump -n flag to supress quotes around indentifiers
5592 disable system columns for views(Jan)
5593 new INET and CIDR types for network addresses(TomH, Paul)
5594 no more double quotes in psql output
5595 pg_dump now dumps views(Terry)
5596 new SET QUERY_LIMIT(Tatsuo,Jan)
5597
5598 Source Tree Changes
5599 -------------------
5600 /contrib cleanup(Jun)
5601 Inline some small functions called for every row(Bruce)
5602 Alpha/linux fixes
5603 HP-UX cleanups(Tom)
5604 Multibyte regression tests(Soonmyung.)
5605 Remove --disabled options from configure
5606 Define PGDOC to use POSTGRESDIR by default
5607 Make regression optional
5608 Remove extra braces code to pgindent(Bruce)
5609 Add bsdi shared library support(Bruce)
5610 New --without-CXX support configure option(Brook)
5611 New FAQ_CVS
5612 Update backend flowchart in tools/backend(Bruce)
5613 Change atttypmod from int16 to int32(Bruce, Tom)
5614 Getrusage() fix for platforms that do not have it(Tom)
5615 Add PQconnectdb, PGUSER, PGPASSWORD to libpq man page
5616 NS32K platform fixes(Phil Nelson, John Buller)
5617 SCO 7/UnixWare 2.x fixes(Billy,others)
5618 Sparc/Solaris 2.5 fixes(Ryan)
5619 Pgbuiltin.3 is obsolete, move to doc files(Thomas)
5620 Even more documention(Thomas)
5621 Nextstep support(Jacek)
5622 Aix support(David)
5623 pginterface manual page(Bruce)
5624 shared libraries all have version numbers
5625 merged all OS-specific shared library defines into one file
5626 smarter TCL/TK configuration checking(Billy)
5627 smarter perl configuration(Brook)
5628 configure uses supplied install-sh if no install script found(Tom)
5629 new Makefile.shlib for shared library configuration(Tom)
5630 </programlisting>
5631 </para>
5632 </sect2>
5633 </sect1>
5634
5635 <sect1 id="release-6-3-2">
5636 <title>Release 6.3.2</title>
5637
5638    <note>
5639    <title>Release date</title>
5640    <simpara>1998-04-07</simpara>
5641    </note>
5642
5643 <para>
5644 This is a bug-fix release for 6.3.x.
5645 Refer to the release notes for version 6.3 for a more complete summary of new features.
5646 </para>
5647 <para>
5648 Summary:
5649
5650 <itemizedlist>
5651 <listitem>
5652 <para>
5653 Repairs automatic configuration support for some platforms, including Linux,
5654 from breakage inadvertently introduced in version 6.3.1.
5655 </para>
5656 </listitem>
5657
5658 <listitem>
5659 <para>
5660 Correctly handles function calls on the left side of BETWEEN and LIKE clauses.
5661 </para>
5662 </listitem>
5663
5664 </itemizedlist>
5665 </para>
5666 <para>
5667 A dump/restore is NOT required for those running 6.3 or 6.3.1.  A 
5668 <literal>make distclean</>, <literal>make</>, and <literal>make install</> is all that is required.
5669 This last step should be performed while the postmaster is not running.
5670 You should re-link any custom applications that use <productname>PostgreSQL</productname> libraries.
5671 </para>
5672 <para>
5673 For upgrades from pre-6.3 installations,
5674 refer to the installation and migration instructions for version 6.3.
5675 </para>
5676
5677    <sect2>
5678     <title>Changes</title>
5679
5680     <para>
5681      <programlisting>
5682 Configure detection improvements for tcl/tk(Brook Milligan, Alvin)
5683 Manual page improvements(Bruce)
5684 BETWEEN and LIKE fix(Thomas)
5685 fix for psql \connect used by pg_dump(Oliver Elphick)
5686 New odbc driver
5687 pgaccess, version 0.86
5688 qsort removed, now uses libc version, cleanups(Jeroen)
5689 fix for buffer over-runs detected(Maurice Gittens)
5690 fix for buffer overrun in libpgtcl(Randy Kunkee)
5691 fix for UNION with DISTINCT or ORDER BY(Bruce)
5692 gettimeofday configure check(Doug Winterburn)
5693 Fix "indexes not used" bug(Vadim)
5694 docs additions(Thomas)
5695 Fix for backend memory leak(Bruce)
5696 libreadline cleanup(Erwan MAS)
5697 Remove DISTDIR(Bruce)
5698 Makefile dependency cleanup(Jeroen van Vianen)
5699 ASSERT fixes(Bruce)
5700      </programlisting>
5701     </para>
5702    </sect2>
5703   </sect1>
5704
5705   <sect1 id="release-6-3-1">
5706    <title>Release 6.3.1</title>
5707
5708    <note>
5709    <title>Release date</title>
5710    <simpara>1998-03-23</simpara>
5711    </note>
5712
5713    <para>
5714     Summary:
5715
5716 <itemizedlist>
5717 <listitem>
5718 <para>
5719 Additional support for multibyte character sets.
5720 </para>
5721 </listitem>
5722
5723 <listitem>
5724 <para>
5725 Repair byte ordering for mixed-endian clients and servers.
5726 </para>
5727 </listitem>
5728
5729 <listitem>
5730 <para>
5731 Minor updates to allowed SQL syntax.
5732 </para>
5733 </listitem>
5734
5735 <listitem>
5736 <para>
5737 Improvements to the configuration autodetection for installation.
5738 </para>
5739 </listitem>
5740
5741 </itemizedlist>
5742 </para>
5743 <para>
5744 A dump/restore is NOT required for those running 6.3.  A 
5745 <literal>make distclean</>, <literal>make</>, and <literal>make install</> is all that is required.
5746 This last step should be performed while the postmaster is not running.
5747 You should re-link any custom applications that use <productname>PostgreSQL</productname> libraries.
5748 </para>
5749 <para>
5750 For upgrades from pre-6.3 installations,
5751 refer to the installation and migration instructions for version 6.3.
5752 </para>
5753
5754    <sect2>
5755     <title>Changes</title>
5756
5757     <para>
5758      <programlisting>
5759 ecpg cleanup/fixes, now version 1.1(Michael Meskes)
5760 pg_user cleanup(Bruce)
5761 large object fix for pg_dump and tclsh (alvin)
5762 LIKE fix for multiple adjacent underscores
5763 fix for redefining builtin functions(Thomas)
5764 ultrix4 cleanup
5765 upgrade to pg_access 0.83
5766 updated CLUSTER manual page
5767 multibyte character set support, see doc/README.mb(Tatsuo)
5768 configure --with-pgport fix
5769 pg_ident fix
5770 big-endian fix for backend communications(Kataoka)
5771 SUBSTR() and substring() fix(Jan)
5772 several jdbc fixes(Peter)
5773 libpgtcl improvements, see libptcl/README(Randy Kunkee)
5774 Fix for "Datasize = 0" error(Vadim)
5775 Prevent \do from wrapping(Bruce)
5776 Remove duplicate Russian character set entries
5777 Sunos4 cleanup
5778 Allow optional TABLE key word in LOCK and SELECT INTO(Thomas)
5779 CREATE SEQUENCE options to allow a negative integer(Thomas)
5780 Add "PASSWORD" as an allowed column identifier(Thomas)
5781 Add checks for UNION target fields(Bruce)
5782 Fix Alpha port(Dwayne Bailey)
5783 Fix for text arrays containing quotes(Doug Gibson)
5784 Solaris compile fix(Albert Chin-A-Young)
5785 Better identify tcl and tk libs and includes(Bruce)
5786      </programlisting>
5787     </para>
5788    </sect2>
5789   </sect1>
5790
5791   <sect1 id="release-6-3">
5792    <title>Release 6.3</title>
5793
5794    <note>
5795    <title>Release date</title>
5796    <simpara>1998-03-01</simpara>
5797    </note>
5798
5799    <para>
5800     There are <emphasis>many</emphasis> new features and improvements in this release.
5801     Here is a brief, incomplete summary:
5802
5803     <itemizedlist>
5804      <listitem>
5805       <para>
5806        Many new SQL features, including
5807        full <acronym>SQL92</acronym> subselect capability
5808        (everything is here but target-list subselects).
5809       </para>
5810      </listitem>
5811
5812      <listitem>
5813       <para>
5814        Support for client-side environment variables to specify time zone and date style.
5815       </para>
5816      </listitem>
5817
5818      <listitem>
5819       <para>
5820        Socket interface for client/server connection. This is the default now
5821        so you may need to start <application>postmaster</application> with the
5822        <option>-i</option> flag.
5823       </para>
5824      </listitem>
5825
5826      <listitem>
5827       <para>
5828        Better password authorization mechanisms. Default table privileges have changed.
5829       </para>
5830      </listitem>
5831
5832      <listitem>
5833       <para>
5834        Old-style <firstterm>time travel</firstterm>
5835        has been removed. Performance has been improved.
5836       </para>
5837      </listitem>
5838     </itemizedlist>
5839    </para>
5840
5841    <note>
5842     <para>
5843      Bruce Momjian wrote the following notes to introduce the new release.
5844     </para>
5845    </note>
5846
5847    <para>
5848     There are some general 6.3 issues that I want to mention.  These are
5849     only the big items that can not be described in one sentence.  A review
5850     of the detailed changes list is still needed.
5851    </para>
5852    <para>
5853     First, we now have subselects.  Now that we have them, I would like to
5854     mention that without subselects, SQL is a very limited language.
5855     Subselects are a major feature, and you should review your code for
5856     places where subselects provide a better solution for your queries.  I
5857     think you will find that there are more uses for subselects than you may
5858     think.  Vadim has put us on the big SQL map with subselects, and fully
5859     functional ones too.  The only thing you can't do with subselects is to
5860     use them in the target list.
5861    </para>
5862    <para>
5863     Second, 6.3 uses Unix domain sockets rather than TCP/IP by default.  To
5864     enable connections from other machines, you have to use the new
5865     postmaster -i option, and of course edit <filename>pg_hba.conf</filename>.  Also, for this
5866     reason, the format of <filename>pg_hba.conf</filename> has changed.
5867    </para>
5868    <para>
5869     Third, <type>char()</type> fields will now allow faster access than <type>varchar()</type> or
5870     <type>text</type>. Specifically, the <type>text</> and <type>varchar()</type> have a penalty for access to
5871     any columns after the first column of this type.  <type>char()</type> used to also
5872     have this access penalty, but it no longer does.  This may suggest that
5873     you redesign some of your tables, especially if you have short character
5874     columns that you have defined as <type>varchar()</type> or <type>text</type>.  This and other
5875     changes make 6.3 even faster than earlier releases.
5876    </para>
5877    <para>
5878     We now have passwords definable independent of any Unix file.  There are
5879     new SQL USER commands.
5880     See the <citetitle>Administrator's Guide</citetitle> for more
5881     information.  There is a new table, pg_shadow, which is used to store
5882     user information and user passwords, and it by default only SELECT-able
5883     by the <systemitem>postgres</systemitem> super-user.  pg_user is now a view of pg_shadow, and is
5884     SELECT-able by PUBLIC.  You should keep using pg_user in your
5885     application without changes.
5886    </para>
5887    <para>
5888     User-created tables now no longer have SELECT privilege to PUBLIC by
5889     default.  This was done because the ANSI standard requires it.  You can
5890     of course GRANT any privileges you want after the table is created. 
5891     System tables continue to be SELECT-able by PUBLIC.
5892    </para>
5893    <para>
5894     We also have real deadlock detection code.  No more sixty-second
5895     timeouts.  And the new locking code implements a <acronym>FIFO</acronym> better, so there
5896     should be less resource starvation during heavy use.
5897    </para>
5898    <para>
5899     Many complaints have been made about inadequate documentation in previous
5900     releases.  Thomas has put much effort into many new manuals for this
5901     release.  Check out the doc/ directory.
5902    </para>
5903    <para>
5904     For performance reasons, time travel is gone, but can be implemented
5905     using triggers (see <filename>pgsql/contrib/spi/README</filename>).  Please check out the new
5906     \d command for types, operators, etc.  Also, views have their own
5907     privileges now, not based on the underlying tables, so privileges on
5908     them have to be set separately.  Check <filename>/pgsql/interfaces</filename> for some new
5909     ways to talk to <productname>PostgreSQL</productname>.
5910    </para>
5911    <para>
5912     This is the first release that really required an explanation for
5913     existing users.  In many ways, this was necessary because the new
5914     release removes many limitations, and the work-arounds people were using
5915     are no longer needed.
5916    </para>
5917
5918    <sect2>
5919     <title>Migration to version 6.3</title>
5920
5921     <para>
5922      A dump/restore using <application>pg_dump</application> 
5923      or <application>pg_dumpall</application>
5924      is required for those wishing to migrate data from any
5925      previous release of <productname>PostgreSQL</productname>.
5926     </para>
5927    </sect2>
5928
5929    <sect2>
5930     <title>Changes</title>
5931
5932     <para>
5933      <programlisting>
5934 Bug Fixes
5935 ---------
5936 Fix binary cursors broken by MOVE implementation(Vadim)
5937 Fix for tcl library crash(Jan)
5938 Fix for array handling, from Gerhard Hintermayer
5939 Fix acl error, and remove duplicate pqtrace(Bruce)
5940 Fix psql \e for empty file(Bruce)
5941 Fix for textcat on varchar() fields(Bruce)
5942 Fix for DBT Sendproc (Zeugswetter Andres)
5943 Fix vacuum analyze syntax problem(Bruce)
5944 Fix for international identifiers(Tatsuo)
5945 Fix aggregates on inherited tables(Bruce)
5946 Fix substr() for out-of-bounds data
5947 Fix for select 1=1 or 2=2, select 1=1 and 2=2, and select sum(2+2)(Bruce)
5948 Fix notty output to show status result.  -q option still turns it off(Bruce)
5949 Fix for count(*), aggs with views and multiple tables and sum(3)(Bruce)
5950 Fix cluster(Bruce)
5951 Fix for PQtrace start/stop several times(Bruce)
5952 Fix a variety of locking problems like newer lock waiters getting
5953         lock before older waiters, and having readlock people not share
5954         locks if a writer is waiting for a lock, and waiting writers not
5955         getting priority over waiting readers(Bruce)
5956 Fix crashes in psql when executing queries from external files(James)
5957 Fix problem with multiple order by columns, with the first one having
5958         NULL values(Jeroen)
5959 Use correct hash table support functions for float8 and int4(Thomas)
5960 Re-enable JOIN= option in CREATE OPERATOR statement (Thomas)
5961 Change precedence for boolean operators to match expected behavior(Thomas)
5962 Generate elog(ERROR) on over-large integer(Bruce)
5963 Allow multiple-argument functions in constraint clauses(Thomas)
5964 Check boolean input literals for 'true','false','yes','no','1','0'
5965         and throw elog(ERROR) if unrecognized(Thomas)
5966 Major large objects fix
5967 Fix for GROUP BY showing duplicates(Vadim)
5968 Fix for index scans in MergeJion(Vadim)
5969
5970 Enhancements
5971 ------------
5972 Subselects with EXISTS, IN, ALL, ANY key words (Vadim, Bruce, Thomas)
5973 New User Manual(Thomas, others)
5974 Speedup by inlining some frequently-called functions
5975 Real deadlock detection, no more timeouts(Bruce)
5976 Add SQL92 "constants" CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, 
5977         CURRENT_USER(Thomas)
5978 Modify constraint syntax to be SQL92-compliant(Thomas)
5979 Implement SQL92 PRIMARY KEY and UNIQUE clauses using indexes(Thomas)
5980 Recognize SQL92 syntax for FOREIGN KEY. Throw elog notice(Thomas)
5981 Allow NOT NULL UNIQUE constraint clause (each allowed separately before)(Thomas)
5982 Allow PostgreSQL-style casting ("::") of non-constants(Thomas)
5983 Add support for SQL3 TRUE and FALSE boolean constants(Thomas)
5984 Support SQL92 syntax for IS TRUE/IS FALSE/IS NOT TRUE/IS NOT FALSE(Thomas)
5985 Allow shorter strings for boolean literals (e.g. "t", "tr", "tru")(Thomas)
5986 Allow SQL92 delimited identifiers(Thomas)
5987 Implement SQL92 binary and hexadecimal string decoding (b'10' and x'1F')(Thomas)
5988 Support SQL92 syntax for type coercion of literal strings
5989         (e.g. "DATETIME 'now'")(Thomas)
5990 Add conversions for int2, int4, and OID types to and from text(Thomas)
5991 Use shared lock when building indexes(Vadim)
5992 Free memory allocated for an user query inside transaction block after
5993         this query is done, was turned off in &lt;= 6.2.1(Vadim)
5994 New SQL statement CREATE PROCEDURAL LANGUAGE(Jan)
5995 New <productname>PostgreSQL</productname> Procedural Language (PL) backend interface(Jan)
5996 Rename pg_dump -H option to -h(Bruce)
5997 Add Java support for passwords, European dates(Peter)
5998 Use indexes for LIKE and ~, !~ operations(Bruce)
5999 Add hash functions for datetime and timespan(Thomas)
6000 Time Travel removed(Vadim, Bruce)
6001 Add paging for \d and \z, and fix \i(Bruce)
6002 Add Unix domain socket support to backend and to frontend library(Goran)
6003 Implement CREATE DATABASE/WITH LOCATION and initlocation utility(Thomas)
6004 Allow more SQL92 and/or <productname>PostgreSQL</productname> reserved words as column identifiers(Thomas)
6005 Augment support for SQL92 SET TIME ZONE...(Thomas)
6006 SET/SHOW/RESET TIME ZONE uses TZ backend environment variable(Thomas)
6007 Implement SET keyword = DEFAULT and SET TIME ZONE DEFAULT(Thomas)
6008 Enable SET TIME ZONE using TZ environment variable(Thomas)
6009 Add PGDATESTYLE environment variable to frontend and backend initialization(Thomas)
6010 Add PGTZ, PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO
6011         frontend library initialization environment variables(Thomas)
6012 Regression tests time zone automatically set with "setenv PGTZ PST8PDT"(Thomas)
6013 Add pg_description table for info on tables, columns, operators, types, and
6014         aggregates(Bruce)
6015 Increase 16 char limit on system table/index names to 32 characters(Bruce)
6016 Rename system indexes(Bruce)
6017 Add 'GERMAN' option to SET DATESTYLE(Thomas)
6018 Define an "ISO-style" timespan output format with "hh:mm:ss" fields(Thomas)
6019 Allow fractional values for delta times (e.g. '2.5 days')(Thomas)
6020 Validate numeric input more carefully for delta times(Thomas)
6021 Implement day of year as possible input to date_part()(Thomas)
6022 Define timespan_finite() and text_timespan() functions(Thomas)
6023 Remove archive stuff(Bruce)
6024 Allow for a pg_password authentication database that is separate from
6025         the system password file(Todd)
6026 Dump ACLs, GRANT, REVOKE privileges(Matt)
6027 Define text, varchar, and bpchar string length functions(Thomas)
6028 Fix Query handling for inheritance, and cost computations(Bruce)
6029 Implement CREATE TABLE/AS SELECT (alternative to SELECT/INTO)(Thomas)
6030 Allow NOT, IS NULL, IS NOT NULL in constraints(Thomas)
6031 Implement UNIONs for SELECT(Bruce)
6032 Add UNION, GROUP, DISTINCT to INSERT(Bruce)
6033 varchar() stores only necessary bytes on disk(Bruce)
6034 Fix for BLOBs(Peter)
6035 Mega-Patch for JDBC...see README_6.3 for list of changes(Peter)
6036 Remove unused "option" from PQconnectdb()
6037 New LOCK command and lock manual page describing deadlocks(Bruce)
6038 Add new psql \da, \dd, \df, \do, \dS, and \dT commands(Bruce)
6039 Enhance psql \z to show sequences(Bruce)
6040 Show NOT NULL and DEFAULT in psql \d table(Bruce)
6041 New psql .psqlrc file start-up(Andrew)
6042 Modify sample start-up script in contrib/linux to show syslog(Thomas)
6043 New types for IP and MAC addresses in contrib/ip_and_mac(TomH)
6044 Unix system time conversions with date/time types in contrib/unixdate(Thomas)
6045 Update of contrib stuff(Massimo)
6046 Add Unix socket support to DBD::Pg(Goran)
6047 New python interface (PyGreSQL 2.0)(D'Arcy)
6048 New frontend/backend protocol has a version number, network byte order(Phil)
6049 Security features in pg_hba.conf enhanced and documented, many cleanups(Phil)
6050 CHAR() now faster access than VARCHAR() or TEXT
6051 ecpg embedded SQL preprocessor
6052 Reduce system column overhead(Vadmin)
6053 Remove pg_time table(Vadim)
6054 Add pg_type attribute to identify types that need length (bpchar, varchar)
6055 Add report of offending line when COPY command fails
6056 Allow VIEW privileges to be set separately from the underlying tables. 
6057         For security, use GRANT/REVOKE on views as appropriate(Jan)
6058 Tables now have no default GRANT SELECT TO PUBLIC.  You must
6059         explicitly grant such privileges.
6060 Clean up tutorial examples(Darren)
6061
6062 Source Tree Changes
6063 -------------------
6064 Add new html development tools, and flow chart in /tools/backend
6065 Fix for SCO compiles
6066 Stratus computer port Robert Gillies
6067 Added support for shlib for BSD44_derived & i386_solaris
6068 Make configure more automated(Brook)
6069 Add script to check regression test results
6070 Break parser functions into smaller files, group together(Bruce)
6071 Rename heap_create to heap_create_and_catalog, rename heap_creatr
6072         to heap_create()(Bruce)
6073 Sparc/Linux patch for locking(TomS)
6074 Remove PORTNAME and reorganize port-specific stuff(Marc)
6075 Add optimizer README file(Bruce)
6076 Remove some recursion in optimizer and clean up some code there(Bruce)
6077 Fix for NetBSD locking(Henry)
6078 Fix for libptcl make(Tatsuo)
6079 AIX patch(Darren)
6080 Change IS TRUE, IS FALSE, ... to expressions using "=" rather than
6081         function calls to istrue() or isfalse() to allow optimization(Thomas)
6082 Various fixes NetBSD/Sparc related(TomH)
6083 Alpha linux locking(Travis,Ryan)
6084 Change elog(WARN) to elog(ERROR)(Bruce)
6085 FAQ for FreeBSD(Marc)
6086 Bring in the PostODBC source tree as part of our standard distribution(Marc)
6087 A minor patch for HP/UX 10 vs 9(Stan)
6088 New pg_attribute.atttypmod for type-specific info like varchar length(Bruce)
6089 UnixWare patches(Billy)
6090 New i386 'lock' for spinlock asm(Billy)
6091 Support for multiplexed backends is removed
6092 Start an OpenBSD port
6093 Start an AUX port
6094 Start a Cygnus port
6095 Add string functions to regression suite(Thomas)
6096 Expand a few function names formerly truncated to 16 characters(Thomas)
6097 Remove un-needed malloc() calls and replace with palloc()(Bruce)
6098 </programlisting>
6099 </para>
6100 </sect2>
6101 </sect1>
6102
6103 <sect1 id="release-6-2-1">
6104 <title>Release 6.2.1</title>
6105
6106    <note>
6107    <title>Release date</title>
6108    <simpara>1997-10-17</simpara>
6109    </note>
6110
6111 <para>
6112 6.2.1 is a bug-fix and usability release on 6.2.
6113 </para>
6114 <para>
6115 Summary:
6116
6117 <itemizedlist>
6118 <listitem>
6119 <para>
6120 Allow strings to span lines, per <acronym>SQL92</acronym>.
6121 </para>
6122 </listitem>
6123
6124 <listitem>
6125 <para>
6126 Include example trigger function for inserting user names on table updates.
6127 </para>
6128 </listitem>
6129
6130 </itemizedlist>
6131 </para>
6132 <para>
6133 This is a minor bug-fix release on 6.2. 
6134 For upgrades from pre-6.2 systems, a full dump/reload is required. 
6135 Refer to the 6.2 release notes for instructions.
6136 </para>
6137
6138 <sect2>
6139 <title>Migration from version 6.2 to version 6.2.1</title>
6140
6141 <para>
6142 This is a minor bug-fix release. A dump/reload is not required from version 6.2,
6143 but is required from any release prior to 6.2.
6144 </para>
6145 <para>
6146 In upgrading from version 6.2, if you choose to dump/reload you will find that
6147 avg(money) is now calculated correctly. All other bug fixes take effect
6148 upon updating the executables.
6149 </para>
6150 <para>
6151 Another way to avoid dump/reload is to use the following SQL command
6152 from <command>psql</command> to update the existing system table:
6153
6154 <programlisting>
6155   update pg_aggregate set aggfinalfn = 'cash_div_flt8'
6156    where aggname = 'avg' and aggbasetype = 790;
6157 </programlisting>
6158 </para>
6159 <para>
6160 This will need to be done to every existing database, including template1.
6161 </para>
6162 </sect2>
6163
6164    <sect2>
6165     <title>Changes</title>
6166
6167     <para>
6168      <programlisting>
6169 Allow TIME and TYPE column names(Thomas)
6170 Allow larger range of true/false as boolean values(Thomas)
6171 Support output of "now" and "current"(Thomas)
6172 Handle DEFAULT with INSERT of NULL properly(Vadim)
6173 Fix for relation reference counts problem in buffer manager(Vadim)
6174 Allow strings to span lines, like ANSI(Thomas)
6175 Fix for backward cursor with ORDER BY(Vadim)
6176 Fix avg(cash) computation(Thomas)
6177 Fix for specifying a column twice in ORDER/GROUP BY(Vadim)
6178 Documented new libpq function to return affected rows, PQcmdTuples(Bruce)
6179 Trigger function for inserting user names for INSERT/UPDATE(Brook Milligan)
6180      </programlisting>
6181     </para>
6182    </sect2>
6183   </sect1>
6184
6185 <sect1 id="release-6-2">
6186 <title>Release 6.2</title>
6187
6188    <note>
6189    <title>Release date</title>
6190    <simpara>1997-10-02</simpara>
6191    </note>
6192
6193 <para>
6194 A dump/restore is required for those wishing to migrate data from
6195 previous releases of <productname>PostgreSQL</productname>.
6196 </para>
6197
6198 <sect2>
6199 <title>Migration from version 6.1 to version 6.2</title>
6200
6201 <para>
6202 This migration requires a complete dump of the 6.1 database and a
6203 restore of the database in 6.2.
6204 </para>
6205 <para>
6206 Note that the <command>pg_dump</command> and <command>pg_dumpall</command> utility from 6.2 should be used
6207 to dump the 6.1 database.
6208 </para>
6209 </sect2>
6210
6211 <sect2>
6212 <title>Migration from version 1.<replaceable>x</> to version 6.2</title>
6213
6214 <para>
6215 Those migrating from earlier 1.* releases should first upgrade to 1.09
6216 because the COPY output format was improved from the 1.02 release.
6217 </para>
6218 </sect2>
6219
6220    <sect2>
6221     <title>Changes</title>
6222
6223     <para>
6224      <programlisting>
6225 Bug Fixes
6226 ---------
6227 Fix problems with pg_dump for inheritance, sequences, archive tables(Bruce)
6228 Fix compile errors on overflow due to shifts, unsigned, and bad prototypes
6229          from Solaris(Diab Jerius)
6230 Fix bugs in geometric line arithmetic (bad intersection calculations)(Thomas)
6231 Check for geometric intersections at endpoints to avoid rounding ugliness(Thomas)
6232 Catch non-functional delete attempts(Vadim)
6233 Change time function names to be more consistent(Michael Reifenberg)
6234 Check for zero divides(Michael Reifenberg)
6235 Fix very old bug which made rows changed/inserted by a command
6236         visible to the command itself (so we had multiple update of 
6237         updated rows, etc.)(Vadim)
6238 Fix for SELECT null, 'fail' FROM pg_am (Patrick)
6239 SELECT NULL as EMPTY_FIELD now allowed(Patrick)
6240 Remove un-needed signal stuff from contrib/pginterface
6241 Fix OR (where x != 1 or x isnull didn't return rows with x NULL) (Vadim)
6242 Fix time_cmp function (Vadim)
6243 Fix handling of functions with non-attribute first argument in 
6244         WHERE clauses (Vadim)
6245 Fix GROUP BY when order of entries is different from order
6246         in target list (Vadim)
6247 Fix pg_dump for aggregates without sfunc1 (Vadim)
6248
6249 Enhancements
6250 ------------
6251 Default genetic optimizer GEQO parameter is now 8(Bruce)
6252 Allow use parameters in target list having aggregates in functions(Vadim)
6253 Added JDBC driver as an interface(Adrian & Peter)
6254 pg_password utility
6255 Return number of rows inserted/affected by INSERT/UPDATE/DELETE etc.(Vadim)
6256 Triggers implemented with CREATE TRIGGER (SQL3)(Vadim)
6257 SPI (Server Programming Interface) allows execution of queries inside 
6258         C-functions (Vadim)
6259 NOT NULL implemented (SQL92)(Robson Paniago de Miranda)
6260 Include reserved words for string handling, outer joins, and unions(Thomas)
6261 Implement extended comments ("/* ... */") using exclusive states(Thomas)
6262 Add "//" single-line comments(Bruce)
6263 Remove some restrictions on characters in operator names(Thomas)
6264 DEFAULT and CONSTRAINT for tables implemented (SQL92)(Vadim & Thomas)
6265 Add text concatenation operator and function (SQL92)(Thomas)
6266 Support WITH TIME ZONE syntax (SQL92)(Thomas)
6267 Support INTERVAL unit TO unit syntax (SQL92)(Thomas)
6268 Define types DOUBLE PRECISION, INTERVAL, CHARACTER,
6269         and CHARACTER VARYING (SQL92)(Thomas)
6270 Define type FLOAT(p) and rudimentary DECIMAL(p,s), NUMERIC(p,s) (SQL92)(Thomas)
6271 Define EXTRACT(), POSITION(), SUBSTRING(), and TRIM() (SQL92)(Thomas)
6272 Define CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP (SQL92)(Thomas)
6273 Add syntax and warnings for UNION, HAVING, INNER and OUTER JOIN (SQL92)(Thomas)
6274 Add more reserved words, mostly for SQL92 compliance(Thomas)
6275 Allow hh:mm:ss time entry for timespan/reltime types(Thomas)
6276 Add center() routines for lseg, path, polygon(Thomas)
6277 Add distance() routines for circle-polygon, polygon-polygon(Thomas)
6278 Check explicitly for points and polygons contained within polygons
6279         using an axis-crossing algorithm(Thomas)
6280 Add routine to convert circle-box(Thomas)
6281 Merge conflicting operators for different geometric data types(Thomas)
6282 Replace distance operator "<===>" with "<->"(Thomas)
6283 Replace "above" operator "!^" with "&gt;^" and "below" operator "!|" with "&lt;^"(Thomas)
6284 Add routines for text trimming on both ends, substring, and string position(Thomas)
6285 Added conversion routines circle(box) and poly(circle)(Thomas)
6286 Allow internal sorts to be stored in memory rather than in files(Bruce & Vadim)
6287 Allow functions and operators on internally-identical types to succeed(Bruce)
6288 Speed up backend start-up after profiling analysis(Bruce)
6289 Inline frequently called functions for performance(Bruce)
6290 Reduce open() calls(Bruce)
6291 psql:  Add PAGER for \h and \?,\C fix
6292 Fix for psql pager when no tty(Bruce)
6293 New entab utility(Bruce)
6294 General trigger functions for referential integrity (Vadim)
6295 General trigger functions for time travel (Vadim)
6296 General trigger functions for AUTOINCREMENT/IDENTITY feature (Vadim)
6297 MOVE implementation (Vadim)
6298
6299 Source Tree Changes
6300 -------------------
6301 HP-UX 10 patches (Vladimir Turin)
6302 Added SCO support, (Daniel Harris)
6303 MkLinux patches (Tatsuo Ishii)
6304 Change geometric box terminology from "length" to "width"(Thomas)
6305 Deprecate temporary unstored slope fields in geometric code(Thomas)
6306 Remove restart instructions from INSTALL(Bruce)
6307 Look in /usr/ucb first for install(Bruce)
6308 Fix c++ copy example code(Thomas)
6309 Add -o to psql manual page(Bruce)
6310 Prevent relname unallocated string length from being copied into database(Bruce)
6311 Cleanup for NAMEDATALEN use(Bruce)
6312 Fix pg_proc names over 15 chars in output(Bruce)
6313 Add strNcpy() function(Bruce)
6314 remove some (void) casts that are unnecessary(Bruce)
6315 new interfaces directory(Marc)
6316 Replace fopen() calls with calls to fd.c functions(Bruce)
6317 Make functions static where possible(Bruce)
6318 enclose unused functions in #ifdef NOT_USED(Bruce)
6319 Remove call to difftime() in timestamp support to fix SunOS(Bruce & Thomas)
6320 Changes for Digital Unix
6321 Portability fix for pg_dumpall(Bruce)
6322 Rename pg_attribute.attnvals to attdispersion(Bruce)
6323 "intro/unix" manual page now "pgintro"(Bruce)
6324 "built-in" manual page now "pgbuiltin"(Bruce)
6325 "drop" manual page now "drop_table"(Bruce)
6326 Add "create_trigger", "drop_trigger" manual pages(Thomas)
6327 Add constraints regression test(Vadim & Thomas)
6328 Add comments syntax regression test(Thomas)
6329 Add PGINDENT and support program(Bruce)
6330 Massive commit to run PGINDENT on all *.c and *.h files(Bruce)
6331 Files moved to /src/tools directory(Bruce)
6332 SPI and Trigger programming guides (Vadim & D'Arcy)
6333 </programlisting>
6334 </para>
6335 </sect2>
6336 </sect1>
6337
6338 <sect1 id="release-6-1-1">
6339 <title>Release 6.1.1</title>
6340
6341    <note>
6342    <title>Release date</title>
6343    <simpara>1997-07-22</simpara>
6344    </note>
6345
6346 <sect2>
6347 <title>Migration from version 6.1 to version 6.1.1</title>
6348
6349 <para>
6350 This is a minor bug-fix release. A dump/reload is not required from version 6.1,
6351 but is required from any release prior to 6.1.
6352 Refer to the release notes for 6.1 for more details.
6353 </para>
6354 </sect2>
6355
6356    <sect2>
6357     <title>Changes</title>
6358
6359     <para>
6360      <programlisting>
6361 fix for SET with options (Thomas)
6362 allow pg_dump/pg_dumpall to preserve ownership of all tables/objects(Bruce)
6363 new psql \connect option allows changing usernames without changing databases
6364 fix for initdb --debug option(Yoshihiko Ichikawa))
6365 lextest cleanup(Bruce)
6366 hash fixes(Vadim)
6367 fix date/time month boundary arithmetic(Thomas)
6368 fix timezone daylight handling for some ports(Thomas, Bruce, Tatsuo)
6369 timestamp overhauled to use standard functions(Thomas)
6370 other code cleanup in date/time routines(Thomas)
6371 psql's \d now case-insensitive(Bruce)
6372 psql's backslash commands can now have trailing semicolon(Bruce)
6373 fix memory leak in psql when using \g(Bruce)
6374 major fix for endian handling of communication to server(Thomas, Tatsuo)
6375 Fix for Solaris assembler and include files(Yoshihiko Ichikawa)
6376 allow underscores in usernames(Bruce)
6377 pg_dumpall now returns proper status, portability fix(Bruce)
6378      </programlisting>
6379     </para>
6380    </sect2>
6381   </sect1>
6382
6383 <sect1 id="release-6-1">
6384 <title>Release 6.1</title>
6385
6386    <note>
6387    <title>Release date</title>
6388    <simpara>1997-06-08</simpara>
6389    </note>
6390
6391 <para>
6392   The regression tests have been adapted and extensively modified for the
6393   6.1 release of <productname>PostgreSQL</productname>.
6394 </para>
6395
6396 <para>
6397   Three new data types (<type>datetime</type>, <type>timespan</type>, and <type>circle</type>) have been added to
6398   the native set of <productname>PostgreSQL</productname> types. Points, boxes, paths, and polygons
6399   have had their output formats made consistent across the data types.
6400   The polygon output in misc.out has only been spot-checked for correctness
6401   relative to the original regression output.
6402 </para>
6403
6404 <para>
6405   <productname>PostgreSQL</productname> 6.1 introduces a new, alternate
6406 optimizer which uses <firstterm>genetic</firstterm>
6407   algorithms. These algorithms introduce a random behavior in the ordering
6408   of query results when the query contains multiple qualifiers or multiple
6409   tables (giving the optimizer a choice on order of evaluation). Several
6410   regression tests have been modified to explicitly order the results, and
6411   hence are insensitive to optimizer choices. A few regression tests are
6412   for data types which are inherently unordered (e.g. points and time
6413   intervals) and tests involving those types are explicitly bracketed with
6414   <command>set geqo to 'off'</command> and <command>reset geqo</command>.
6415 </para>
6416
6417 <para>
6418   The interpretation of array specifiers (the curly braces around atomic
6419   values) appears to have changed sometime after the original regression
6420   tests were generated. The current <filename>./expected/*.out</filename> files reflect this
6421   new interpretation, which may not be correct!
6422 </para>
6423
6424 <para>
6425   The float8 regression test fails on at least some platforms. This is due
6426   to differences in implementations of <function>pow()</function> and <function>exp()</function> and the signaling
6427   mechanisms used for overflow and underflow conditions.
6428 </para>
6429
6430 <para>
6431   The <quote>random</> results in the random test should cause the
6432   <quote>random</quote> test to be <quote>failed</quote>, since the
6433   regression tests are evaluated using a simple diff. However,
6434   <quote>random</> does not seem to produce random results on my test
6435   machine (Linux/<application>gcc</>/i686).
6436 </para>
6437
6438 <sect2>
6439 <title>Migration to version 6.1</title>
6440
6441 <para>
6442 This migration requires a complete dump of the 6.0 database and a
6443 restore of the database in 6.1.
6444 </para>
6445 <para>
6446 Those migrating from earlier 1.* releases should first upgrade to 1.09
6447 because the COPY output format was improved from the 1.02 release.
6448 </para>
6449 </sect2>
6450
6451    <sect2>
6452     <title>Changes</title>
6453
6454     <para>
6455      <programlisting>
6456 Bug Fixes
6457 ---------
6458 packet length checking in library routines
6459 lock manager priority patch
6460 check for under/over flow of float8(Bruce)
6461 multitable join fix(Vadim)
6462 SIGPIPE crash fix(Darren)
6463 large object fixes(Sven)
6464 allow btree indexes to handle NULLs(Vadim)
6465 timezone fixes(D'Arcy)
6466 select SUM(x) can return NULL on no rows(Thomas)
6467 internal optimizer, executor bug fixes(Vadim)
6468 fix problem where inner loop in &lt; or &lt;= has no rows(Vadim)
6469 prevent re-commuting join index clauses(Vadim)
6470 fix join clauses for multiple tables(Vadim)
6471 fix hash, hashjoin for arrays(Vadim)
6472 fix btree for abstime type(Vadim)
6473 large object fixes(Raymond)
6474 fix buffer leak in hash indexes (Vadim)
6475 fix rtree for use in inner scan (Vadim)
6476 fix gist for use in inner scan, cleanups (Vadim, Andrea)
6477 avoid unnecessary local buffers allocation (Vadim, Massimo)
6478 fix local buffers leak in transaction aborts (Vadim)
6479 fix file manager memmory leaks, cleanups (Vadim, Massimo)
6480 fix storage manager memmory leaks (Vadim)
6481 fix btree duplicates handling (Vadim)
6482 fix deleted rows reincarnation caused by vacuum (Vadim)
6483 fix SELECT varchar()/char() INTO TABLE made zero-length fields(Bruce)
6484 many psql, pg_dump, and libpq memory leaks fixed using Purify (Igor)
6485
6486 Enhancements
6487 ------------
6488 attribute optimization statistics(Bruce)
6489 much faster new btree bulk load code(Paul)
6490 BTREE UNIQUE added to bulk load code(Vadim) 
6491 new lock debug code(Massimo)
6492 massive changes to libpg++(Leo)
6493 new GEQO optimizer speeds table multitable optimization(Martin)
6494 new WARN message for non-unique insert into unique key(Marc)
6495 update x=-3, no spaces, now valid(Bruce)
6496 remove case-sensitive identifier handling(Bruce,Thomas,Dan)
6497 debug backend now pretty-prints tree(Darren)
6498 new Oracle character functions(Edmund)
6499 new plaintext password functions(Dan)
6500 no such class or insufficient privilege changed to distinct messages(Dan)
6501 new ANSI timestamp function(Dan)
6502 new ANSI Time and Date types (Thomas)
6503 move large chunks of data in backend(Martin)
6504 multicolumn btree indexes(Vadim)
6505 new SET var TO value command(Martin)
6506 update transaction status on reads(Dan)
6507 new locale settings for character types(Oleg)
6508 new SEQUENCE serial number generator(Vadim)
6509 GROUP BY function now possible(Vadim)
6510 re-organize regression test(Thomas,Marc)
6511 new optimizer operation weights(Vadim)
6512 new psql \z grant/permit option(Marc)
6513 new MONEY data type(D'Arcy,Thomas)
6514 tcp socket communication speed improved(Vadim)
6515 new VACUUM option for attribute statistics, and for certain columns (Vadim)
6516 many geometric type improvements(Thomas,Keith)
6517 additional regression tests(Thomas)
6518 new datestyle variable(Thomas,Vadim,Martin)
6519 more comparison operators for sorting types(Thomas)
6520 new conversion functions(Thomas)
6521 new more compact btree format(Vadim)
6522 allow pg_dumpall to preserve database ownership(Bruce)
6523 new SET GEQO=# and R_PLANS variable(Vadim)
6524 old (!GEQO) optimizer can use right-sided plans (Vadim)
6525 typechecking improvement in SQL parser(Bruce)
6526 new SET, SHOW, RESET commands(Thomas,Vadim)
6527 new \connect database USER option
6528 new destroydb -i option (Igor)
6529 new \dt and \di psql commands (Darren)
6530 SELECT "\n" now escapes newline (A. Duursma)
6531 new geometry conversion functions from old format (Thomas)
6532
6533 Source tree changes
6534 -------------------
6535 new configuration script(Marc)
6536 readline configuration option added(Marc)
6537 OS-specific configuration options removed(Marc)
6538 new OS-specific template files(Marc)
6539 no more need to edit Makefile.global(Marc)
6540 re-arrange include files(Marc)
6541 nextstep patches (Gregor Hoffleit)
6542 removed Windows-specific code(Bruce)
6543 removed postmaster -e option, now only postgres -e option (Bruce)
6544 merge duplicate library code in front/backends(Martin)
6545 now works with eBones, international Kerberos(Jun)
6546 more shared library support
6547 c++ include file cleanup(Bruce)
6548 warn about buggy flex(Bruce)
6549 DG/UX, Ultrix, IRIX, AIX portability fixes
6550 </programlisting>
6551 </para>
6552 </sect2>
6553 </sect1>
6554
6555 <sect1 id="release-6-0">
6556 <title>Release 6.0</title>
6557
6558    <note>
6559    <title>Release date</title>
6560    <simpara>1997-01-29</simpara>
6561    </note>
6562
6563 <para>
6564 A dump/restore is required for those wishing to migrate data from
6565 previous releases of <productname>PostgreSQL</productname>.
6566 </para>
6567
6568 <sect2>
6569 <title>Migration from version 1.09 to version 6.0</title>
6570
6571 <para>
6572 This migration requires a complete dump of the 1.09 database and a
6573 restore of the database in 6.0.
6574 </para>
6575 </sect2>
6576
6577 <sect2>
6578 <title>Migration from pre-1.09 to version 6.0</title>
6579
6580 <para>
6581 Those migrating from earlier 1.* releases should first upgrade to 1.09
6582 because the COPY output format was improved from the 1.02 release.
6583 </para>
6584 </sect2>
6585
6586    <sect2>
6587     <title>Changes</title>
6588
6589     <para>
6590      <programlisting>
6591 Bug Fixes
6592 ---------
6593 ALTER TABLE bug - running postgress process needs to re-read table definition
6594 Allow vacuum to be run on one table or entire database(Bruce)
6595 Array fixes
6596 Fix array over-runs of memory writes(Kurt)
6597 Fix elusive btree range/non-range bug(Dan)
6598 Fix for hash indexes on some types like time and date
6599 Fix for pg_log size explosion
6600 Fix permissions on lo_export()(Bruce)
6601 Fix unitialized reads of memory(Kurt)
6602 Fixed ALTER TABLE ... char(3) bug(Bruce)
6603 Fixed a few small memory leaks
6604 Fixed EXPLAIN handling of options and changed full_path option name
6605 Fixed output of group acl privileges
6606 Memory leaks (hunt and destroy with tools like Purify(Kurt)
6607 Minor improvements to rules system
6608 NOTIFY fixes
6609 New asserts for run-checking
6610 Overhauled parser/analyze code to properly report errors and increase speed
6611 Pg_dump -d now handles NULL's properly(Bruce)
6612 Prevent SELECT NULL from crashing server (Bruce)
6613 Properly report errors when INSERT ... SELECT columns did not match
6614 Properly report errors when insert column names were not correct
6615 psql \g filename now works(Bruce)
6616 psql fixed problem with multiple statements on one line with multiple outputs
6617 Removed duplicate system OIDs
6618 SELECT * INTO TABLE . GROUP/ORDER BY gives unlink error if table exists(Bruce)
6619 Several fixes for queries that crashed the backend
6620 Starting quote in insert string errors(Bruce)
6621 Submitting an empty query now returns empty status, not just " " query(Bruce)
6622
6623 Enhancements
6624 ------------
6625 Add EXPLAIN manual page(Bruce)
6626 Add UNIQUE index capability(Dan)
6627 Add hostname/user level access control rather than just hostname and user
6628 Add synonym of != for &lt;&gt;(Bruce)
6629 Allow "select oid,* from table"
6630 Allow BY,ORDER BY to specify columns by number, or by non-alias table.column(Bruce)
6631 Allow COPY from the frontend(Bryan)
6632 Allow GROUP BY to use alias column name(Bruce)
6633 Allow actual compression, not just reuse on the same page(Vadim)
6634 Allow installation-configuration option to auto-add all local users(Bryan)
6635 Allow libpq to distinguish between text value '' and null(Bruce)
6636 Allow non-postgres users with createdb privs to destroydb's
6637 Allow restriction on who can create C functions(Bryan)
6638 Allow restriction on who can do backend COPY(Bryan)
6639 Can shrink tables, pg_time and pg_log(Vadim & Erich)
6640 Change debug level 2 to print queries only, changed debug heading layout(Bruce)
6641 Change default decimal constant representation from float4 to float8(Bruce)
6642 European date format now set when postmaster is started
6643 Execute lowercase function names if not found with exact case
6644 Fixes for aggregate/GROUP processing, allow 'select sum(func(x),sum(x+y) from z'
6645 Gist now included in the distrubution(Marc)
6646 Idend authentication of local users(Bryan)
6647 Implement BETWEEN qualifier(Bruce)
6648 Implement IN qualifier(Bruce)
6649 libpq has PQgetisnull()(Bruce)
6650 libpq++ improvements
6651 New options to initdb(Bryan)
6652 Pg_dump allow dump of OIDs(Bruce)
6653 Pg_dump create indexes after tables are loaded for speed(Bruce)
6654 Pg_dumpall dumps all databases, and the user table
6655 Pginterface additions for NULL values(Bruce)
6656 Prevent postmaster from being run as root
6657 psql \h and \? is now readable(Bruce)
6658 psql allow backslashed, semicolons anywhere on the line(Bruce)
6659 psql changed command prompt for lines in query or in quotes(Bruce)
6660 psql char(3) now displays as (bp)char in \d output(Bruce)
6661 psql return code now more accurate(Bryan?)
6662 psql updated help syntax(Bruce)
6663 Re-visit and fix vacuum(Vadim)
6664 Reduce size of regression diffs, remove timezone name difference(Bruce)
6665 Remove compile-time parameters to enable binary distributions(Bryan)
6666 Reverse meaning of HBA masks(Bryan)
6667 Secure Authentication of local users(Bryan)
6668 Speed up vacuum(Vadim)
6669 Vacuum now had VERBOSE option(Bruce)
6670
6671 Source tree changes
6672 -------------------
6673 All functions now have prototypes that are compared against the calls
6674 Allow asserts to be disabled easly from Makefile.global(Bruce)
6675 Change oid constants used in code to #define names
6676 Decoupled sparc and solaris defines(Kurt)
6677 Gcc -Wall compiles cleanly with warnings only from unfixable constructs
6678 Major include file reorganization/reduction(Marc)
6679 Make now stops on compile failure(Bryan)
6680 Makefile restructuring(Bryan, Marc)
6681 Merge bsdi_2_1 to bsdi(Bruce)
6682 Monitor program removed
6683 Name change from Postgres95 to PostgreSQL
6684 New config.h file(Marc, Bryan)
6685 PG_VERSION now set to 6.0 and used by postmaster
6686 Portability additions, including Ultrix, DG/UX, AIX, and Solaris
6687 Reduced the number of #define's, centeralized #define's
6688 Remove duplicate OIDS in system tables(Dan)
6689 Remove duplicate system catalog info or report mismatches(Dan)
6690 Removed many os-specific #define's
6691 Restructured object file generation/location(Bryan, Marc)
6692 Restructured port-specific file locations(Bryan, Marc)
6693 Unused/uninialized variables corrected
6694 </programlisting>
6695 </para>
6696 </sect2>
6697 </sect1>
6698
6699 <sect1 id="release-1-09">
6700 <title>Release 1.09</title>
6701
6702    <note>
6703    <title>Release date</title>
6704    <simpara>1996-11-04</simpara>
6705    </note>
6706
6707 <para>
6708 Sorry, we didn't keep track of changes from 1.02 to 1.09.  Some of
6709 the changes listed in 6.0 were actually included in the 1.02.1 to 1.09
6710 releases.
6711 </para>
6712 </sect1>
6713
6714 <sect1 id="release-1-02">
6715 <title>Release 1.02</title>
6716
6717    <note>
6718    <title>Release date</title>
6719    <simpara>1996-08-01</simpara>
6720    </note>
6721
6722 <sect2>
6723 <title>Migration from version 1.02 to version 1.02.1</title>
6724
6725 <para>
6726 Here is a new migration file for 1.02.1.  It includes the 'copy' change
6727 and a script to convert old <acronym>ASCII</acronym> files.
6728 </para>
6729 <note>
6730 <para>
6731 The following notes are for the benefit of users who want to migrate
6732 databases from <productname>Postgres95</> 1.01 and 1.02 to <productname>Postgres95</> 1.02.1.
6733 </para>
6734 <para>
6735 If you are starting afresh with <productname>Postgres95</> 1.02.1 and do not need
6736 to migrate old databases, you do not need to read any further.
6737 </para>
6738 </note>
6739
6740 <para>
6741 In order to upgrade older <productname>Postgres95</> version 1.01 or 1.02 databases to
6742 version 1.02.1, the following steps are required:
6743 </para>
6744 <procedure>
6745 <step>
6746 <para>
6747 Start up a new 1.02.1 postmaster
6748 </para>
6749 </step>
6750 <step>
6751 <para>
6752 Add the new built-in functions and operators of 1.02.1 to 1.01 or 1.02
6753    databases.  This is done by running the new 1.02.1 server against
6754    your own 1.01 or 1.02 database and applying the queries attached at
6755    the end of the file.   This can be done easily through <command>psql</>.  If your
6756    1.01 or 1.02 database is named <literal>testdb</literal> and you have cut the commands
6757    from the end of this file and saved them in <filename>addfunc.sql</filename>:
6758 <programlisting>
6759         % psql testdb -f addfunc.sql
6760 </programlisting>
6761
6762 Those upgrading 1.02 databases will get a warning when executing the
6763 last two statements in the file because they are already present in 1.02.  This is
6764 not a cause for concern.
6765 </para>
6766 </step>
6767 </procedure>
6768 </sect2>
6769
6770 <sect2>
6771 <title>Dump/Reload Procedure</title>
6772
6773 <para>
6774 If you are trying to reload a pg_dump or text-mode, <literal>copy tablename to
6775 stdout</literal> generated with a previous version, you will need to run the
6776 attached <command>sed</command> script on the ASCII file before loading it into the
6777 database.  The old format used '.' as end-of-data, while '\.' is now the
6778 end-of-data marker.  Also, empty strings are now loaded in as '' rather
6779 than NULL. See the copy manual page for full details.
6780
6781 <programlisting>
6782         sed 's/^\.$/\\./g' &lt;in_file &gt;out_file
6783 </programlisting>
6784 </para>
6785 <para>
6786 If you are loading an older binary copy or non-<systemitem>stdout</> copy, there is no
6787 end-of-data character, and hence no conversion necessary.
6788
6789 <programlisting>
6790 -- following lines added by agc to reflect the case-insensitive
6791 -- regexp searching for varchar (in 1.02), and bpchar (in 1.02.1)
6792 create operator ~* (leftarg = bpchar, rightarg = text, procedure = texticregexeq);
6793 create operator !~* (leftarg = bpchar, rightarg = text, procedure = texticregexne);
6794 create operator ~* (leftarg = varchar, rightarg = text, procedure = texticregexeq);
6795 create operator !~* (leftarg = varchar, rightarg = text, procedure = texticregexne);
6796 </programlisting>
6797 </para>
6798 </sect2>
6799
6800 <sect2>
6801 <title>Changes</title>
6802
6803 <para>
6804 <programlisting>
6805 Source code maintenance and development
6806  * worldwide team of volunteers
6807  * the source tree now in CVS at ftp.ki.net
6808
6809 Enhancements
6810  * psql (and underlying libpq library) now has many more options for
6811    formatting output, including HTML
6812  * pg_dump now output the schema and/or the data, with many fixes to
6813    enhance completeness.
6814  * psql used in place of monitor in administration shell scripts.
6815    monitor to be deprecated in next release.
6816  * date/time functions enhanced
6817  * NULL insert/update/comparison fixed/enhanced
6818  * TCL/TK lib and shell fixed to work with both tck7.4/tk4.0 and tcl7.5/tk4.1
6819
6820 Bug Fixes (almost too numerous to mention)
6821  * indexes
6822  * storage management
6823  * check for NULL pointer before dereferencing
6824  * Makefile fixes
6825
6826 New Ports
6827  * added SolarisX86 port
6828  * added BSD/OS 2.1 port
6829  * added DG/UX port
6830 </programlisting>
6831 </para>
6832 <!--
6833 Contributors (appologies to any missed)
6834  * Kurt J. Lidl <lidl@va.pubnix.com> 
6835         (missed in first run, but no less important)
6836  * Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
6837  * Jason Wright <jason@shiloh.vnet.net>
6838  * Cees de Groot <C.deGroot@inter.NL.net>
6839  * ernst.molitor@uni-bonn.de
6840  * michael.siebenborn@ae3.Hypo.DE (Michael Siebenborn (6929))
6841  * Brian E. Gallew <geek+@cmu.edu>
6842  * Vadim B. Mikheev <vadim@sable.krasnoyarsk.su>
6843  * Adam Sussman <myddryn@vidya.com>
6844  * Chris Dunlop <chris@onthe.net.au>
6845  * Marc G. Fournier <scrappy@ki.net>
6846  * Dan McGuirk <mcguirk@indirect.com>
6847  * Dr_George_D_Detlefsen <drgeorge@ilt.com>
6848  * Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
6849  * Massimo Dal Zotto <dz@cs.unitn.it>
6850  * Randy Kunkee <kunkee@Starbase.NeoSoft.COM>
6851  * Rick Weldon <rick@wisetech.com>
6852  * Thomas van Reimersdahl <reimersd@dali.techinfo.rwth-aachen.de>
6853  * david bennett <dave@bensoft.com>
6854  * ernst.molitor@uni-bonn.de
6855  * Julian Assange <proff@suburbia.net>
6856  * Bruce Momjian <pgman@candle.pha.pa.us>
6857  * Paul "Shag" Walmsley <ccshag@cclabs.missouri.edu>
6858  * "Alistair G. Crooks" <azcb0@sde.uts.amdahl.com>
6859 -->
6860 </sect2>
6861 </sect1>
6862
6863 <sect1 id="release-1-01">
6864 <title>Release 1.01</title>
6865
6866    <note>
6867    <title>Release date</title>
6868    <simpara>1996-02-23</simpara>
6869    </note>
6870
6871
6872 <sect2>
6873 <title>Migration from version 1.0 to version 1.01</title>
6874
6875 <para>
6876 The following notes are for the benefit of users who want to migrate
6877 databases from <productname>Postgres95</> 1.0 to <productname>Postgres95</> 1.01.  
6878 </para>
6879 <para>
6880 If you are starting afresh with <productname>Postgres95</> 1.01 and do not need
6881 to migrate old databases, you do not need to read any further.
6882 </para>
6883 <para>
6884 In order to <productname>Postgres95</> version 1.01 with databases created with
6885 <productname>Postgres95</> version 1.0, the following steps are required:  
6886 </para>
6887 <procedure>
6888 <step>
6889 <para>
6890 Set the definition of <symbol>NAMEDATALEN</symbol> in <filename>src/Makefile.global</filename> to 16
6891    and <symbol>OIDNAMELEN</symbol> to 20.
6892 </para>
6893 </step>
6894 <step>
6895 <para>
6896 Decide whether you want to use Host based authentication.  
6897 </para>
6898 <substeps>
6899 <step>
6900 <para>
6901 If you do, you must create a file name <literal>pg_hba</literal> in your top-level data
6902    directory (typically the value of your <envar>$PGDATA</envar>).  <filename>src/libpq/pg_hba</filename>
6903    shows an example syntax.
6904 </para>
6905 </step>
6906 <step>
6907 <para>
6908 If you do not want host-based authentication, you can comment out
6909    the line
6910 <programlisting>
6911         HBA = 1
6912 </programlisting>
6913    in <filename>src/Makefile.global</filename>
6914 </para>
6915 <para>
6916    Note that host-based authentication is turned on by default, and if
6917    you do not take steps A or B above, the out-of-the-box 1.01 will
6918    not allow you to connect to 1.0 databases.
6919 </para>
6920 </step>
6921 </substeps>
6922 </step>
6923
6924 <step>
6925 <para>
6926 Compile and install 1.01, but DO NOT do the <command>initdb</command> step.
6927 </para>
6928 </step>
6929 <step>
6930 <para>
6931 Before doing anything else, terminate your 1.0 postmaster, and
6932    backup your existing <envar>$PGDATA</envar> directory.   
6933 </para>
6934 </step>
6935 <step>
6936 <para>
6937 Set your <envar>PGDATA</envar> environment variable to your 1.0 databases, but set up
6938    path up so that 1.01 binaries are being used.
6939 </para>
6940 </step>
6941 <step>
6942 <para>
6943 Modify the file <filename><envar>$PGDATA</envar>/PG_VERSION</filename> from 5.0 to 5.1
6944 </para>
6945 </step>
6946 <step>
6947 <para>
6948 Start up a new 1.01 postmaster
6949 </para>
6950 </step>
6951 <step>
6952 <para>
6953 Add the new built-in functions and operators of 1.01 to 1.0
6954    databases.  This is done by running the new 1.01 server against
6955    your own 1.0 database and applying the queries attached and saving 
6956    in the file 1.0_to_1.01.sql.   This can be done easily through <command>psql</command>.
6957    If your 1.0 database is name <literal>testdb</literal>:
6958
6959 <programlisting>
6960         % psql testdb -f 1.0_to_1.01.sql
6961 </programlisting>
6962
6963 and then execute the following commands (cut and paste from here):
6964
6965 <programlisting>
6966 -- add builtin functions that are new to 1.01
6967
6968 create function int4eqoid (int4, oid) returns bool as 'foo'
6969 language 'internal';
6970 create function oideqint4 (oid, int4) returns bool as 'foo'
6971 language 'internal';
6972 create function char2icregexeq (char2, text) returns bool as 'foo'
6973 language 'internal';
6974 create function char2icregexne (char2, text) returns bool as 'foo'
6975 language 'internal';
6976 create function char4icregexeq (char4, text) returns bool as 'foo'
6977 language 'internal';
6978 create function char4icregexne (char4, text) returns bool as 'foo'
6979 language 'internal';
6980 create function char8icregexeq (char8, text) returns bool as 'foo'
6981 language 'internal';
6982 create function char8icregexne (char8, text) returns bool as 'foo'
6983 language 'internal';
6984 create function char16icregexeq (char16, text) returns bool as 'foo'
6985 language 'internal';
6986 create function char16icregexne (char16, text) returns bool as 'foo'
6987 language 'internal';
6988 create function texticregexeq (text, text) returns bool as 'foo'
6989 language 'internal';
6990 create function texticregexne (text, text) returns bool as 'foo'
6991 language 'internal';
6992
6993 -- add builtin functions that are new to 1.01
6994
6995 create operator = (leftarg = int4, rightarg = oid, procedure = int4eqoid);
6996 create operator = (leftarg = oid, rightarg = int4, procedure = oideqint4);
6997 create operator ~* (leftarg = char2, rightarg = text, procedure = char2icregexeq);
6998 create operator !~* (leftarg = char2, rightarg = text, procedure = char2icregexne);
6999 create operator ~* (leftarg = char4, rightarg = text, procedure = char4icregexeq);
7000 create operator !~* (leftarg = char4, rightarg = text, procedure = char4icregexne);
7001 create operator ~* (leftarg = char8, rightarg = text, procedure = char8icregexeq);
7002 create operator !~* (leftarg = char8, rightarg = text, procedure = char8icregexne);
7003 create operator ~* (leftarg = char16, rightarg = text, procedure = char16icregexeq);
7004 create operator !~* (leftarg = char16, rightarg = text, procedure = char16icregexne);
7005 create operator ~* (leftarg = text, rightarg = text, procedure = texticregexeq);
7006 create operator !~* (leftarg = text, rightarg = text, procedure = texticregexne);
7007 </programlisting>
7008 </para>
7009 </step>
7010 </procedure>
7011 </sect2>
7012
7013 <sect2>
7014 <title>Changes</title>
7015
7016 <para>
7017 <programlisting>
7018 Incompatibilities:
7019  * 1.01 is backwards compatible with 1.0 database provided the user
7020    follow the steps outlined in the MIGRATION_from_1.0_to_1.01 file.
7021    If those steps are not taken, 1.01 is not compatible with 1.0 database.
7022
7023 Enhancements:
7024  * added PQdisplayTuples() to libpq and changed monitor and psql to use it
7025  * added NeXT port (requires SysVIPC implementation)
7026  * added CAST .. AS ... syntax
7027  * added ASC and DESC key words
7028  * added 'internal' as a possible language for CREATE FUNCTION
7029    internal functions are C functions which have been statically linked
7030    into the postgres backend.
7031  * a new type "name" has been added for system identifiers (table names,
7032    attribute names, etc.)  This replaces the old char16 type.   The
7033    of name is set by the NAMEDATALEN #define in src/Makefile.global
7034  * a readable reference manual that describes the query language.
7035  * added host-based access control.  A configuration file ($PGDATA/pg_hba)
7036    is used to hold the configuration data.  If host-based access control
7037    is not desired, comment out HBA=1 in src/Makefile.global.
7038  * changed regex handling to be uniform use of Henry Spencer's regex code
7039    regardless of platform.  The regex code is included in the distribution
7040  * added functions and operators for case-insensitive regular expressions. 
7041    The operators are ~* and !~*.
7042  * pg_dump uses COPY instead of SELECT loop for better performance
7043
7044 Bug fixes:
7045  * fixed an optimizer bug that was causing core dumps when 
7046    functions calls were used in comparisons in the WHERE clause
7047  * changed all uses of getuid to geteuid so that effective uids are used
7048  * psql now returns non-zero status on errors when using -c
7049  * applied public patches 1-14
7050 </programlisting>
7051 </para>
7052 </sect2>
7053 </sect1>
7054
7055 <sect1 id="release-1-0">
7056 <title>Release 1.0</title>
7057
7058    <note>
7059    <title>Release date</title>
7060    <simpara>1995-09-05</simpara>
7061    </note>
7062
7063 <sect2>
7064 <title>Changes</title>
7065
7066 <para>
7067 <programlisting>
7068 Copyright change:
7069  * The copyright of <productname>Postgres</productname> 1.0 has been loosened to be freely modifiable
7070    and modifiable for any purpose.  Please read the COPYRIGHT file.
7071    Thanks to Professor Michael Stonebraker for making this possible.
7072
7073 Incompatibilities:
7074  *  date formats have to be MM-DD-YYYY (or DD-MM-YYYY if you're using
7075    EUROPEAN STYLE).  This follows SQL-92 specs.
7076  *  "delimiters" is now a key word
7077
7078 Enhancements:
7079  *  sql LIKE syntax has been added
7080  *  copy command now takes an optional USING DELIMITER specification.
7081    delimiters can be any single-character string. 
7082  *  IRIX 5.3 port has been added.
7083    Thanks to Paul Walmsley and others.
7084  *  updated pg_dump to work with new libpq
7085  *  \d has been added psql 
7086    Thanks to Keith Parks
7087  *  regexp performance for architectures that use POSIX regex has been
7088    improved due to caching of precompiled patterns.
7089    Thanks to Alistair Crooks
7090  *  a new version of libpq++
7091    Thanks to William Wanders
7092
7093 Bug fixes:
7094  *  arbitrary userids can be specified in the createuser script
7095  *  \c to connect to other databases in psql now works.
7096  *  bad pg_proc entry for float4inc() is fixed
7097  *  users with usecreatedb field set can now create databases without
7098    having to be usesuper
7099  *  remove access control entries when the entry no longer has any
7100    privileges
7101  *  fixed non-portable datetimes implementation
7102  *  added kerberos flags to the src/backend/Makefile
7103  *  libpq now works with kerberos
7104  *  typographic errors in the user manual have been corrected.
7105  *  btrees with multiple index never worked, now we tell you they don't
7106    work when you try to use them
7107 </programlisting>
7108 </para>
7109 </sect2>
7110 </sect1>
7111
7112 <sect1 id="release-0-03">
7113 <title><productname>Postgres95</productname> Release 0.03</title>
7114
7115    <note>
7116    <title>Release date</title>
7117    <simpara>1995-07-21</simpara>
7118    </note>
7119
7120 <sect2>
7121 <title>Changes</title>
7122 <para>
7123 <programlisting>
7124 Incompatible changes:
7125  * BETA-0.3 IS INCOMPATIBLE WITH DATABASES CREATED WITH PREVIOUS VERSIONS
7126    (due to system catalog changes and indexing structure changes).
7127  * double-quote (") is deprecated as a quoting character for string literals;
7128    you need to convert them to single quotes ('). <!-- " -->
7129  * name of aggregates (eg. int4sum) are renamed in accordance with the
7130    SQL standard (eg. sum).
7131  * CHANGE ACL syntax is replaced by GRANT/REVOKE syntax.
7132  * float literals (eg. 3.14) are now of type float4 (instead of float8 in
7133    previous releases); you might have to do typecasting if you depend on it
7134    being of type float8.  If you neglect to do the typecasting and you assign
7135    a float literal to a field of type float8, you may get incorrect values
7136    stored!
7137  * LIBPQ has been totally revamped so that frontend applications
7138    can connect to multiple backends
7139  * the usesysid field in pg_user has been changed from int2 to int4 to
7140    allow wider range of Unix user ids.
7141  * the netbsd/freebsd/bsd o/s ports have been consolidated into a
7142    single BSD44_derived port.  (thanks to Alistair Crooks)
7143
7144 SQL standard-compliance (the following details changes that makes postgres95
7145 more compliant to the SQL-92 standard):
7146  * the following SQL types are now built-in: smallint, int(eger), float, real,
7147    char(N), varchar(N), date and time.
7148
7149    The following are aliases to existing postgres types:
7150                 smallint -> int2
7151                 integer, int -> int4
7152                 float, real  -> float4
7153    char(N) and varchar(N) are implemented as truncated text types. In
7154    addition, char(N) does blank-padding. 
7155  * single-quote (') is used for quoting string literals; '' (in addition to
7156    \') is supported as means of inserting a single quote in a string
7157  * SQL standard aggregate names (MAX, MIN, AVG, SUM, COUNT) are used
7158    (Also, aggregates can now be overloaded, i.e. you can define your
7159    own MAX aggregate to take in a user-defined type.)
7160  * CHANGE ACL removed. GRANT/REVOKE syntax added.  
7161    - Privileges can be given to a group using the "GROUP" key word.
7162         For example:
7163                 GRANT SELECT ON foobar TO GROUP my_group;
7164         The key word 'PUBLIC' is also supported to mean all users.      
7165
7166         Privileges can only be granted or revoked to one user or group
7167         at a time.  
7168
7169         "WITH GRANT OPTION" is not supported.  Only class owners can change
7170         access control
7171    - The default access control is to to grant users readonly access.
7172      You must explicitly grant insert/update access to users.  To change
7173      this, modify the line in 
7174                 src/backend/utils/acl.h 
7175      that defines ACL_WORLD_DEFAULT 
7176
7177 Bug fixes:
7178  * the bug where aggregates of empty tables were not run has been fixed. Now,
7179    aggregates run on empty tables will return the initial conditions of the
7180    aggregates. Thus, COUNT of an empty  table will now properly return 0.
7181    MAX/MIN of an empty table will return a row of value NULL. 
7182  * allow the use of \; inside the monitor
7183  * the LISTEN/NOTIFY asynchronous notification mechanism now work
7184  * NOTIFY in rule action bodies now work
7185  * hash indexes work, and access methods in general should perform better.
7186    creation of large btree indexes should be much faster.  (thanks to Paul
7187    Aoki)
7188
7189 Other changes and enhancements:
7190  * addition of an EXPLAIN statement used for explaining the query execution
7191    plan (eg. "EXPLAIN SELECT * FROM EMP" prints out the execution plan for
7192    the query).
7193  * WARN and NOTICE messages no longer have timestamps on them. To turn on
7194    timestamps of error messages, uncomment the line in
7195    src/backend/utils/elog.h:
7196         /* define ELOG_TIMESTAMPS */ 
7197  * On an access control violation, the message
7198         "Either no such class or insufficient privilege"
7199    will be given.  This is the same message that is returned when
7200    a class is not found.  This dissuades non-privileged users from
7201    guessing the existence of privileged classes.
7202  * some additional system catalog changes have been made that are not
7203    visible to the user.
7204
7205 libpgtcl changes:
7206  * The -oid option has been added to the "pg_result" tcl command.
7207    pg_result -oid returns oid of the last row inserted.   If the
7208    last command was not an INSERT, then pg_result -oid returns "".
7209  * the large object interface is available as pg_lo* tcl commands:
7210    pg_lo_open, pg_lo_close, pg_lo_creat, etc.
7211
7212 Portability enhancements and New Ports:
7213  * flex/lex problems have been cleared up.  Now, you should be able to use
7214    flex instead of lex on any platforms.  We no longer make assumptions of
7215    what lexer you use based on the platform you use. 
7216  * The Linux-ELF port is now supported.  Various configuration have been 
7217    tested:  The following configuration is known to work:
7218         kernel 1.2.10, gcc 2.6.3, libc 4.7.2, flex 2.5.2, bison 1.24
7219    with everything in ELF format,
7220
7221 New utilities:
7222  * ipcclean added to the distribution
7223    ipcclean usually does not need to be run, but if your backend crashes
7224    and leaves shared memory segments hanging around, ipcclean will
7225    clean them up for you.
7226
7227 New documentation:
7228  * the user manual has been revised and libpq documentation added.
7229 </programlisting>
7230 </para>
7231 </sect2>
7232 </sect1>
7233
7234 <sect1 id="release-0-02">
7235 <title><productname>Postgres95</productname> Release 0.02</title>
7236
7237    <note>
7238    <title>Release date</title>
7239    <simpara>1995-05-25</simpara>
7240    </note>
7241
7242 <sect2>
7243 <title>Changes</title>
7244
7245 <para>
7246 <programlisting>
7247 Incompatible changes:
7248  * The SQL statement for creating a database is 'CREATE DATABASE' instead
7249    of 'CREATEDB'. Similarly, dropping a database is 'DROP DATABASE' instead
7250    of 'DESTROYDB'. However, the names of the executables 'createdb' and 
7251    'destroydb' remain the same.
7252  
7253 New tools:
7254  * pgperl - a Perl (4.036) interface to Postgres95
7255  * pg_dump - a utility for dumping out a postgres database into a
7256         script file containing query commands. The script files are in a ASCII
7257         format and can be used to reconstruct the database, even on other
7258         machines and other architectures. (Also good for converting
7259         a Postgres 4.2 database to Postgres95 database.)
7260
7261 The following ports have been incorporated into postgres95-beta-0.02:
7262  * the NetBSD port by Alistair Crooks
7263  * the AIX port by Mike Tung
7264  * the Windows NT port by Jon Forrest (more stuff but not done yet)
7265  * the Linux ELF port by Brian Gallew
7266
7267 The following bugs have been fixed in postgres95-beta-0.02:
7268  * new lines not escaped in COPY OUT and problem with COPY OUT when first
7269    attribute is a '.' 
7270  * cannot type return to use the default user id in createuser
7271  * SELECT DISTINCT on big tables crashes
7272  * Linux installation problems
7273  * monitor doesn't allow use of 'localhost' as PGHOST
7274  * psql core dumps when doing \c or \l
7275  * the "pgtclsh" target missing from src/bin/pgtclsh/Makefile
7276  * libpgtcl has a hard-wired default port number
7277  * SELECT DISTINCT INTO TABLE hangs
7278  * CREATE TYPE doesn't accept 'variable' as the internallength
7279  * wrong result using more than 1 aggregate in a SELECT
7280 </programlisting>
7281 </para>
7282 </sect2>
7283 </sect1>
7284
7285 <sect1 id="release-0-01">
7286 <title><productname>Postgres95</productname> Release 0.01</title>
7287
7288    <note>
7289    <title>Release date</title>
7290    <simpara>1995-05-01</simpara>
7291    </note>
7292
7293 <para>
7294 Initial release.
7295 </para>
7296 </sect1>
7297
7298 <![IGNORE[
7299   <sect1 id="timing-results">
7300    <title>Timing Results</title>
7301
7302    <para>
7303     These timing results are from running the regression test with the commands
7304
7305     <programlisting>
7306 % cd src/test/regress
7307 % make all
7308 % time make runtest
7309     </programlisting>
7310    </para>
7311    <para>
7312     Timing under Linux 2.0.27 seems to have a roughly 5% variation from run
7313     to run, presumably due to the scheduling vagaries of multitasking systems.
7314    </para>
7315
7316    <sect2>
7317     <title>Version 6.5</title>
7318
7319     <para>
7320      As has been the case for previous releases, timing between
7321      releases is not directly comparable since new regression tests
7322      have been added. In general, 6.5 is faster than previous
7323      releases.
7324     </para>
7325
7326     <para>
7327      Timing with <function>fsync()</function> disabled:
7328
7329      <programlisting>
7330   Time   System
7331   02:00  Dual Pentium Pro 180, 224MB, UW-SCSI, Linux 2.0.36, gcc 2.7.2.3 -O2 -m486
7332   04:38  Sparc Ultra 1 143MHz, 64MB, Solaris 2.6
7333      </programlisting>
7334     </para>
7335
7336     <para>
7337      Timing with <function>fsync()</function> enabled:
7338
7339      <programlisting>
7340   Time   System
7341   04:21  Dual Pentium Pro 180, 224MB, UW-SCSI, Linux 2.0.36, gcc 2.7.2.3 -O2 -m486
7342      </programlisting>
7343
7344      For the <systemitem class="osname">Linux</systemitem> system above, using <acronym>UW-SCSI</acronym> disks rather than (older) <acronym>IDE</acronym>
7345      disks leads to a 50% improvement in speed on the regression test.
7346     </para>
7347    </sect2>
7348
7349 <sect2>
7350 <title>Version 6.4beta</title>
7351
7352 <para>
7353 The times for this release are not directly comparable to those for previous releases
7354 since some additional regression tests have been included.
7355 In general, however, 6.4 should be slightly faster than the previous release (thanks, Bruce!).
7356 </para>
7357 <para>
7358 <programlisting>
7359   Time   System
7360   02:26  Dual Pentium Pro 180, 96MB, UW-SCSI, Linux 2.0.30, gcc 2.7.2.1 -O2 -m486
7361 </programlisting>
7362 </para>
7363 </sect2>
7364
7365 <sect2>
7366 <title>Version 6.3</title>
7367
7368 <para>
7369 The times for this release are not directly comparable to those for previous releases
7370 since some additional regression tests have been included and some obsolete tests involving
7371 time travel have been removed.
7372 In general, however, 6.3 is substantially faster than previous releases (thanks, Bruce!).
7373 </para>
7374 <para>
7375 <programlisting>
7376   Time   System
7377   02:30  Dual Pentium Pro 180, 96MB, UW-SCSI, Linux 2.0.30, gcc 2.7.2.1 -O2 -m486
7378   04:12  Dual Pentium Pro 180, 96MB, EIDE, Linux 2.0.30, gcc 2.7.2.1 -O2 -m486
7379 </programlisting>
7380 </para>
7381 </sect2>
7382
7383 <sect2>
7384 <title>Version 6.1</title>
7385
7386 <para>
7387 <programlisting>
7388   Time   System
7389   06:12  Pentium Pro 180, 32MB, EIDE, Linux 2.0.30, gcc 2.7.2 -O2 -m486
7390   12:06  P-100, 48MB, Linux 2.0.29, gcc
7391   39:58  Sparc IPC 32MB, Solaris 2.5, gcc 2.7.2.1 -O -g
7392 </programlisting>
7393 </para>
7394 </sect2>
7395 </sect1>
7396 ]]>
7397 </appendix>
7398
7399 <!-- Keep this comment at the end of the file
7400 Local variables:
7401 mode:sgml
7402 sgml-omittag:nil
7403 sgml-shorttag:t
7404 sgml-minimize-attributes:nil
7405 sgml-always-quote-attributes:t
7406 sgml-indent-step:1
7407 sgml-indent-data:t
7408 sgml-parent-document:nil
7409 sgml-default-dtd-file:"./reference.ced"
7410 sgml-exposed-tags:nil
7411 sgml-local-catalogs:("/usr/lib/sgml/catalog")
7412 sgml-local-ecat-files:nil
7413 End:
7414 -->
7415