]> granicus.if.org Git - postgresql/blob - doc/src/sgml/release.sgml
Update release notes.
[postgresql] / doc / src / sgml / release.sgml
1  <chapter id="release">
2   <title>Release Notes</title>
3
4 <sect1>
5 <title>Release 6.5.1</title>
6 <!--
7 <docinfo>
8 <authorgroup>
9 <author>
10 <firstname>Bruce</firstname>
11 <surname>Momjian</surname>
12 </author>
13 </authorgroup>
14 <date>1999-07-15</date>
15 </docinfo>
16 -->
17
18 <para>
19 This is basically a cleanup release for 6.5.  We have fixed a variety of
20 problems reported by 6.5 users.
21 </para>
22
23
24 <sect2>
25 <title>Migration to v6.5.1</title>
26
27 <para>
28 A dump/restore is <emphasis>not</emphasis> required for those running
29 6.5.
30 </para>
31 </sect2>
32 <sect2>
33 <title>Detailed Change List</title>
34
35 <para>
36 <programlisting>
37 Add NT README file
38 Portability fixes for linux_ppc, Irix, linux_alpha, OpenBSD, alpha
39 Remove QUERY_LIMIT, use SELECT...LIMIT
40 Fix for EXPLAIN on inheritance(Tom)
41 Patch to allow vacuum on multi-segment tables(Hiroshi)
42 R=Tree optimizer selectivity fix(Tom)
43 ACL file descriptor leak fix(Atsushi Ogawa)
44 New expresssion subtree code(Tom)
45 Avoid disk writes for read-only transactions(Vadim)
46 Fix for removal of temp tables if last transaction was aborted(Bruce)
47 Fix to prevent too large tuple from being created(Bruce)
48 plpgsql fixes
49 Allow port numbers 32k - 64k(Bruce)
50 Add ^ precidence(Bruce)
51 Rename sort files called pg_temp to pg_sorttemp(Bruce)
52 Fix for microseconds in time values(Tom)
53 Tutorial source cleanup
54 New linux_m68k port
55 Fix for sorting of NULL's in some cases(Tom)
56 Shared library dependencies fixed (Tom)
57 Fixed glitches affecting GROUP BY in subselects(Tom)
58 </programlisting>
59 </para>
60 </sect2>
61 </sect1>
62
63
64   <sect1>
65    <title>Release 6.5</title>
66 <!--
67 <docinfo>
68 <authorgroup>
69 <author>
70 <firstname>Bruce</firstname>
71 <surname>Momjian</surname>
72 </author>
73 </authorgroup>
74 <date>1998-06-09</date>
75 </docinfo>
76 -->
77
78    <para>
79     This release marks a major step in the development team's mastery of the source
80     code we inherited from Berkeley.  You will see we are now easily adding
81     major features, thanks to the increasing size and experience of our
82     world-wide development team.
83    </para>
84
85    <para>
86     Here is a brief summary of the more notable changes:
87
88     <variablelist>
89      <varlistentry>
90       <term>
91        Multi-version concurrency control(MVCC)
92       </term>
93       <listitem>
94        <para>
95         This removes our old
96         table-level locking, and replaces it with a locking system that is
97         superior to most commercial database systems.  In a traditional system,
98         each row that is modified is locked until committed, preventing reads by
99         other users.  MVCC uses the natural multi-version nature of PostgreSQL
100         to allow readers to continue reading consistent data during writer
101         activity.  Writers continue to use the compact pg_log transaction
102         system.  This is all performed without having to allocate a lock for
103         every row like traditional database systems.  So, basically, we no
104         longer are restricted by simple table-level locking;
105         we have something better than row-level locking.
106        </para>
107       </listitem>
108      </varlistentry>
109
110      <varlistentry>
111       <term>
112        Hot backups from <application>pg_dump</application>
113       </term>
114       <listitem>
115        <para>
116         <application>pg_dump</application> takes advantage of the new
117         MVCC features to give a consistant database dump/backup while
118         the database stays online and available for queries.
119        </para>
120       </listitem>
121      </varlistentry>
122
123      <varlistentry>
124       <term>
125        Numeric data type
126       </term>
127       <listitem>
128        <para>
129         We now have a true numeric data type, with
130         user-specified precision.
131        </para>
132       </listitem>
133      </varlistentry>
134
135      <varlistentry>
136       <term>
137        Temporary tables
138       </term>
139       <listitem>
140        <para>
141         Temporary tables are guaranteed to have unique names
142         within a database session, and are destroyed on session exit.
143        </para>
144       </listitem>
145      </varlistentry>
146
147      <varlistentry>
148       <term>
149        New SQL features
150       </term>
151       <listitem>
152        <para>
153         We now have CASE, INTERSECT, and EXCEPT statement
154         support.  We have new LIMIT/OFFSET, SET TRANSACTION ISOLATION LEVEL,
155         SELECT ... FOR UPDATE, and an improved LOCK TABLE command.
156        </para>
157       </listitem>
158      </varlistentry>
159
160      <varlistentry>
161       <term>
162        Speedups
163       </term>
164       <listitem>
165        <para>
166         We continue to speed up PostgreSQL, thanks to the variety of
167         talents within our team.  We have sped up memory allocation,
168         optimization, table joins, and row transfer routines.
169        </para>
170       </listitem>
171      </varlistentry>
172
173      <varlistentry>
174       <term>
175        Ports
176       </term>
177       <listitem>
178        <para>
179         We continue to expand our port list, this time including
180         WinNT/ix86 and NetBSD/arm32.
181        </para>
182       </listitem>
183      </varlistentry>
184
185      <varlistentry>
186       <term>
187        Interfaces
188       </term>
189       <listitem>
190        <para>
191         Most interfaces have new versions, and existing functionality
192         has been improved.
193        </para>
194       </listitem>
195      </varlistentry>
196
197      <varlistentry>
198       <term>
199        Documentation
200       </term>
201       <listitem>
202        <para>
203         New and updated material is present throughout the
204         documentation. New <acronym>FAQ</acronym>s have been
205         contributed for SGI and AIX platforms.
206         The <citetitle>Tutorial</citetitle> has introductory information
207         on <acronym>SQL</acronym> from Stefan Simkovics.
208         For the <citetitle>User's Guide</citetitle>, there are
209         reference pages covering the postmaster and more utility
210         programs, and a new appendix
211         contains details on date/time behavior.
212         The <citetitle>Administrator's Guide</citetitle> has a new
213         chapter on troubleshooting from Tom Lane.
214         And the <citetitle>Programmer's Guide</citetitle> has a
215         description of query processing, also from Stefan, and details 
216         on obtaining the <productname>Postgres</productname> source
217         tree via anonymous <productname>CVS</productname> and
218         <productname>CVSup</productname>. 
219        </para>
220       </listitem>
221      </varlistentry>
222     </variablelist>
223    </para>
224
225    <sect2>
226     <title>Migration to v6.5</title>
227
228     <para>
229      A dump/restore using <application>pg_dump</application>
230      is required for those wishing to migrate data from any
231      previous release of <productname>Postgres</productname>.
232      <application>pg_upgrade</application> can <emphasis>not</emphasis>
233      be used to upgrade to this release because the on-disk structure
234      of the tables has changed compared to previous releases.
235     </para>
236
237     <para>
238      The new Multi-Version Concurrency Control (MVCC) features can
239      give somewhat different behaviors in multi-user
240      environments. <emphasis>Read and understand the following section 
241       to ensure that your existing applications will give you the
242       behavior you need.</emphasis>
243     </para>
244
245     <sect3>
246      <title>Multi-Version Concurrency Control</title>
247
248      <para>
249       Because readers in 6.5 don't lock data, regardless of transaction
250       isolation level, data read by one transaction can be overwritten by
251       another. In other words, if a row is returned by
252       <command>SELECT</command> it doesn't mean that this row really exists
253       at the time it is returned (i.e. sometime after the statement or
254       transaction began) nor that the row is protected from being deleted or
255       updated by concurrent transactions before the current transaction does
256       a commit or rollback.
257      </para>
258
259      <para>
260       To ensure the actual existence of a row and protect it against
261       concurrent updates one must use <command>SELECT FOR UPDATE</command> or
262       an appropriate <command>LOCK TABLE</command> statement. This should be
263       taken into account when porting applications from previous releases of
264       <productname>Postgres</productname> and other environments.
265      </para>
266
267      <para>
268       Keep the above in mind if you are using
269       <filename>contrib/refint.*</filename> triggers for
270       referential integrity. Additional technics are required now. One way is
271       to use <command>LOCK parent_table IN SHARE ROW EXCLUSIVE MODE</command>
272       command if a transaction is going to update/delete a primary key and
273       use <command>LOCK parent_table IN SHARE MODE</command> command if a
274       transaction is going to update/insert a foreign key.
275
276       <note>
277        <para>
278         Note that if you run a transaction in SERIALIZABLE mode then you must
279         execute the <command>LOCK</command> commands above before execution of any
280         DML statement
281         (<command>SELECT/INSERT/DELETE/UPDATE/FETCH/COPY_TO</command>) in the
282         transaction.
283        </para>
284       </note>
285      </para>
286
287      <para>
288       These inconveniences will disappear in the future
289       when the ability to read dirty
290       (uncommitted) data (regardless of isolation level) and true referential
291       integrity will be implemented.
292      </para>
293     </sect3>
294     </sect2>
295
296    <sect2>
297     <title>Detailed Change List</title>
298     <para>
299      <programlisting>
300 Bug Fixes
301 ---------
302 Fix text<->float8 and text<->float4 conversion functions(Thomas)
303 Fix for creating tables with mixed-case constraints(Billy)
304 Change exp()/pow() behavior to generate error on underflow/overflow(Jan)
305 Fix bug in pg_dump -z
306 Memory overrun cleanups(Tatsuo)
307 Fix for lo_import crash(Tatsuo)
308 Adjust handling of data type names to suppress double quotes(Thomas)
309 Use type coersion for matching columns and DEFAULT(Thomas)
310 Fix deadlock so it only checks once after one second of sleep(Bruce)
311 Fixes for aggregates and PL/pgsql(Hiroshi)
312 Fix for subquery crash(Vadim)
313 Fix for libpq function PQfnumber and case-insensitive names(Bahman Rafatjoo)
314 Fix for large object write-in-middle, no extra block, memory consumption(Tatsuo)
315 Fix for pg_dump -d or -D and  quote special characters in INSERT
316 Repair serious problems with dynahash(Tom)
317 Fix INET/CIDR portability problems
318 Fix problem with selectivity error in ALTER TABLE ADD COLUMN(Bruce)
319 Fix executor so mergejoin of different column types works(Tom)
320 Fix for Alpha OR selectivity bug
321 Fix OR index selectivity problem(Bruce)
322 Fix so \d shows proper length for char()/varchar()(Ryan)
323 Fix tutorial code(Clark)
324 Improve destroyuser checking(Oliver)
325 Fix for Kerberos(Rodney McDuff)
326 Fix for dropping database while dirty buffers(Bruce)
327 Fix so sequence nextval() can be case-sensitive(Bruce)
328 Fix !!= operator
329 Drop buffers before destroying database files(Bruce)
330 Fix case where executor evaluates functions twice(Tatsuo)
331 Allow sequence nextval actions to be case-sensitive(Bruce)
332 Fix optimizer indexing not working for negative numbers(Bruce)
333 Fix for memory leak in executor with fjIsNull
334 Fix for aggregate memory leaks(Erik Riedel)
335 Allow username containing a dash GRANT permissions
336 Cleanup of NULL in inet types
337 Clean up system table bugs(Tom)
338 Fix problems of PAGER and \? command(Masaaki Sakaida)
339 Reduce default multi-segment file size limit to 1GB(Peter)
340 Fix for dumping of CREATE OPERATOR(Tom)
341 Fix for backward scanning of cursors(Hiroshi Inoue)
342 Fix for COPY FROM STDIN when using \i(Tom)
343 Fix for subselect is compared inside an expression(Jan)
344 Fix handling of error reporting while returning rows(Tom)
345 Fix problems with reference to array types(Tom,Jan)
346 Prevent UPDATE SET oid(Jan)
347 Fix pg_dump so -t option can handle case-sensitive tablenames
348 Fixes for GROUP BY in special cases(Tom, Jan)
349 Fix for memory leak in failed queries(Tom)
350 DEFAULT now supports mixed-case identifiers(Tom)
351 Fix for multi-segment uses of DROP/RENAME table, indexes(Ole Gjerde)
352 Disable use of pg_dump with both -o and -d options(Bruce)
353 Allow pg_dump to properly dump GROUP permissions(Bruce)
354 Fix GROUP BY in INSERT INTO table SELECT * FROM table2(Jan)
355 Fix for computations in views(Jan)
356 Fix for aggregates on array indexes(Tom)
357 Fix for DEFAULT handles single quotes in value requiring too many quotes
358 Fix security problem with non-super users importing/exporting large objects(Tom)
359 Rollback of transaction that creates table cleaned up properly(Tom)
360 Fix to allow long table and column names to generate proper serial names(Tom)
361
362 Enhancements
363 ------------
364 Add "vacuumdb" utility
365 Speed up libpq by allocating memory better(Tom)
366 EXPLAIN all indices used(Tom)
367 Implement CASE, COALESCE, NULLIF  expression(Thomas)
368 New pg_dump table output format(Constantin)
369 Add string min()/max() functions(Thomas)
370 Extend new type coersion techniques to aggregates(Thomas)
371 New moddatetime contrib(Terry)
372 Update to pgaccess 0.96(Constantin)
373 Add routines for single-byte "char" type(Thomas)
374 Improved substr() function(Thomas)
375 Improved multi-byte handling(Tatsuo)
376 Multi-version concurrency control/MVCC(Vadim)
377 New Serialized mode(Vadim)
378 Fix for tables over 2gigs(Peter)
379 New SET TRANSACTION ISOLATION LEVEL(Vadim)
380 New LOCK TABLE IN ... MODE(Vadim)
381 Update ODBC driver(Byron)
382 New NUMERIC data type(Jan)
383 New SELECT FOR UPDATE(Vadim)
384 Handle "NaN" and "Infinity" for input values(Jan)
385 Improved date/year handling(Thomas)
386 Improved handling of backend connections(Magnus)
387 New options ELOG_TIMESTAMPS and USE_SYSLOG options for log files(Massimo)
388 New TCL_ARRAYS option(Massimo)
389 New INTERSECT and EXCEPT(Stefan)
390 New pg_index.indisprimary for primary key tracking(D'Arcy)
391 New pg_dump option to allow dropping of tables before creation(Brook)
392 Speedup of row output routines(Tom)
393 New READ COMMITTED isolation level(Vadim)
394 New TEMP tables/indexes(Bruce)
395 Prevent sorting if result is already sorted(Jan)
396 New memory allocation optimization(Jan)
397 Allow psql to do \p\g(Bruce)
398 Allow multiple rule actions(Jan)
399 Added LIMIT/OFFSET functionality(Jan)
400 Improve optimizer when joining a large number of tables(Bruce)
401 New intro to SQL from S. Simkovics' Master's Thesis (Stefan, Thomas)
402 New intro to backend processing from S. Simkovics' Master's Thesis (Stefan)
403 Improved int8 support(Ryan Bradetich, Thomas, Tom)
404 New routines to convert between int8 and text/varchar types(Thomas)
405 New bushy plans, where meta-tables are joined(Bruce)
406 Enable right-hand queries by default(Bruce)
407 Allow reliable maximum number of backends to be set at configure time
408       (--with-maxbackends and postmaster switch (-N backends))(Tom)
409 GEQO default now 10 tables because of optimizer speedups(Tom)
410 Allow NULL=Var for MS-SQL portability(Michael, Bruce)
411 Modify contrib check_primary_key() so either "automatic" or "dependent"(Anand)
412 Allow psql \d on a view show query(Ryan)
413 Speedup for LIKE(Bruce)
414 Ecpg fixes/features, see src/interfaces/ecpg/ChangeLog file(Michael)
415 JDBC fixes/features, see src/interfaces/jdbc/CHANGELOG(Peter)
416 Make % operator have precedence like /(Bruce)
417 Add new postgres -O option to allow system table structure changes(Bruce)
418 Update contrib/pginterface/findoidjoins script(Tom)
419 Major speedup in vacuum of deleted rows with indexes(Vadim) 
420 Allow non-SQL functions to run different versions based on arguments(Tom)
421 Add -E option that shows actual queries sent by \dt and friends(Masaaki Sakaida)
422 Add version number in startup banners for psql(Masaaki Sakaida)
423 New contrib/vacuumlo removes large objects not referenced(Peter)
424 New initialization for table sizes so non-vacuumed tables perform better(Tom)
425 Improve error messages when a connection is rejected(Tom)
426 Support for arrays of char() and varchar() fields(Massimo)
427 Overhaul of hash code to increase reliability and performance(Tom)
428 Update to PyGreSQL 2.4(D'Arcy)
429 Changed debug options so -d4 and -d5 produce different node displays(Jan)
430 New pg_options: pretty_plan, pretty_parse, pretty_rewritten(Jan)
431 Better optimization statistics for system table access(Tom)
432 Better handling of non-default block sizes(Massimo)
433 Improve GEQO optimizer memory consumption(Tom)
434 UNION now suppports ORDER BY of columns not in target list(Jan)
435 Major libpq++ improvements(Vince Vielhaber)
436 pg_dump now uses -z(ACL's) as default(Bruce)
437 backend cache, memory speedups(Tom)
438 have pg_dump do everything in one snapshot transaction(Vadim)
439 fix for large object memory leakage, fix for pg_dumping(Tom)
440 INET type now respects netmask for comparisons
441 Make VACUUM ANALYZE only use a readlock(Vadim)
442 Allow VIEWs on UNIONS(Jan)
443 pg_dump now can generate consistent snapshots on active databases(Vadim)
444
445 Source Tree Changes
446 -------------------
447 Improve port matching(Tom)
448 Portability fixes for SunOS
449 Add NT/Win32 backend port and enable dynamic loading(Magnus and Daniel Horak)
450 New port to Cobalt Qube(Mips) running Linux(Tatsuo)
451 Port to NetBSD/m68k(Mr. Mutsuki Nakajima)
452 Port to NetBSD/sun3(Mr. Mutsuki Nakajima)
453 Port to NetBSD/macppc(Toshimi Aoki)
454 Fix for tcl/tk configuration(Vince)
455 Removed CURRENT keyword for rule queries(Jan)
456 NT dynamic loading now works(Daniel Horak)
457 Add ARM32 support(Andrew McMurry)
458 Better support for HPUX 11 and Unixware
459 Improve file handling to be more uniform, prevent file descriptor leak(Tom)
460 New install commands for plpgsql(Jan)
461      </programlisting>
462     </para>
463    </sect2>
464   </sect1>
465
466
467 <sect1>
468 <title>Release 6.4.2</title>
469 <!--
470 <docinfo>
471 <authorgroup>
472 <author>
473 <firstname>Bruce</firstname>
474 <surname>Momjian</surname>
475 </author>
476 </authorgroup>
477 <date>1999-12-20</date>
478 </docinfo>
479 -->
480
481 <para>
482 The 6.4.1 release was improperly packaged.  This also has one additional
483 bug fix.
484 </para>
485
486
487 <sect2>
488 <title>Migration to v6.4.2</title>
489
490 <para>
491 A dump/restore is <emphasis>not</emphasis> required for those running
492 6.4.*.
493 </para>
494 </sect2>
495 <sect2>
496 <title>Detailed Change List</title>
497
498 <para>
499 <programlisting>
500 Fix for datetime constant problem on some platforms(Thomas)
501 </programlisting>
502 </para>
503 </sect2>
504 </sect1>
505
506
507
508 <sect1>
509 <title>Release 6.4.1</title>
510 <!--
511 <docinfo>
512 <authorgroup>
513 <author>
514 <firstname>Bruce</firstname>
515 <surname>Momjian</surname>
516 </author>
517 </authorgroup>
518 <date>1999-12-18</date>
519 </docinfo>
520 -->
521
522 <para>
523 This is basically a cleanup release for 6.4.  We have fixed a variety of
524 problems reported by 6.4 users.
525 </para>
526
527
528 <sect2>
529 <title>Migration to v6.4.1</title>
530
531 <para>
532 A dump/restore is <emphasis>not</emphasis> required for those running
533 6.4.
534 </para>
535 </sect2>
536 <sect2>
537 <title>Detailed Change List</title>
538
539 <para>
540 <programlisting>
541 Add pg_dump -N flag to force double quotes around identifiers.  This is
542         the default(Thomas)
543 Fix for NOT in where clause causing crash(Bruce)
544 EXPLAIN VERBOSE coredump fix(Vadim)
545 Fix shared-library problems on Linux
546 Fix test for table existance to allow mixed-case and whitespace in
547         the table name(Thomas)
548 Fix a couple of pg_dump bugs
549 Configure matches template/.similar entries better(Tom)
550 Change builtin function names from SPI_* to spi_*
551 OR WHERE clause fix(Vadim)
552 Fixes for mixed-case table names(Billy)
553 contrib/linux/postgres.init.csh/sh fix(Thomas)
554 libpq memory overrun fix
555 SunOS fixes(Tom)
556 Change exp() behavior to generate error on underflow(Thomas)
557 pg_dump fixes for memory leak, inheritance constraints, layout change
558 update pgaccess to 0.93
559 Fix prototype for 64-bit platforms
560 Multi-byte fixes(Tatsuo)
561 New ecpg man page
562 Fix memory overruns(Tatsuo)
563 Fix for lo_import() crash(Bruce)
564 Better search for install program(Tom)
565 Timezone fixes(Tom)
566 HPUX fixes(Tom)
567 Use implicit type coersion for matching DEFAULT values(Thomas)
568 Add routines to help with single-byte (internal) character type(Thomas)
569 Compilation of libpq for Win32 fixes(Magnus)
570 Upgrade to PyGreSQL 2.2(D'Arcy)
571 </programlisting>
572 </para>
573 </sect2>
574 </sect1>
575
576
577
578 <sect1>
579 <title>Release 6.4</title>
580 <!--
581 <docinfo>
582 <authorgroup>
583 <author>
584 <firstname>Bruce</firstname>
585 <surname>Momjian</surname>
586 </author>
587 </authorgroup>
588 <date>1998-10-30</date>
589 </docinfo>
590 -->
591
592 <para>
593 There are <emphasis>many</emphasis> new features and improvements in this release.
594 Thanks to our developers and maintainers, nearly every aspect of the system
595 has received some attention since the previous release.
596 Here is a brief, incomplete summary:
597
598 <itemizedlist>
599 <listitem>
600 <para>
601 Views and rules are now functional thanks to extensive new code in the 
602 rewrite rules system from Jan Wieck. He also wrote a chapter on it
603 for the <citetitle>Programmer's Guide</citetitle>.
604 </para>
605 </listitem>
606 <listitem>
607 <para>
608 Jan also contributed a second procedural language, PL/pgSQL, to go with the
609 original PL/pgTCL procedural language he contributed last release.
610 </para>
611 </listitem>
612
613 <listitem>
614 <para>
615 We have optional multiple-byte character set support from Tatsuo Iishi
616 to complement our existing locale support.
617 </para>
618 </listitem>
619
620 <listitem>
621 <para>
622 Client/server communications has been cleaned up, with better support for
623 asynchronous messages and interrupts thanks to Tom Lane.
624 </para>
625 </listitem>
626
627 <listitem>
628 <para>
629 The parser will now perform automatic type coersion to match arguments
630 to available operators and functions, and to match columns and expressions
631 with target columns. This uses a generic mechanism which supports
632 the type extensibility features of <productname>Postgres</productname>.
633 There is a new chapter in the <citetitle>User's Guide</citetitle>
634 which covers this topic.
635 </para>
636 </listitem>
637
638 <listitem>
639 <para>
640 Three new data types have been added. 
641 Two types, <type>inet</type> and <type>cidr</type>, support various forms
642 of IP network, subnet, and machine addressing. There is now an 8-byte integer
643 type available on some platforms. See the chapter on data types
644 in the <citetitle>User's Guide</citetitle> for details.
645 A fourth type, <type>serial</type>, is now supported by the parser as an
646 amalgam of the <type>int4</type> type, a sequence, and a unique index.
647 </para>
648 </listitem>
649
650 <listitem>
651 <para>
652 Several more <acronym>SQL92</acronym>-compatible syntax features have been
653 added, including <command>INSERT DEFAULT VALUES</command>
654 </para>
655 </listitem>
656
657 <listitem>
658 <para>
659 The automatic configuration and installation system has received some
660 attention, and should be more robust for more platforms than it has ever
661 been.
662 </para>
663 </listitem>
664
665 </itemizedlist>
666 </para>
667
668 <sect2>
669 <title>Migration to v6.4</title>
670
671 <para>
672 A dump/restore using <application>pg_dump</application> 
673 or <application>pg_dumpall</application>
674 is required for those wishing to migrate data from any
675 previous release of <productname>Postgres</productname>.
676 </para>
677 </sect2>
678 <sect2>
679 <title>Detailed Change List</title>
680
681 <para>
682 <programlisting>
683 Bug Fixes
684 ---------
685 Fix for a tiny memory leak in PQsetdb/PQfinish(Bryan)
686 Remove char2-16 data types, use char/varchar(Darren)
687 Pqfn not handles a NOTICE message(Anders)
688 Reduced busywaiting overhead for spinlocks with many backends (dg)
689 Stuck spinlock detection (dg)
690 Fix up "ISO-style" timespan decoding and encoding(Thomas)
691 Fix problem with table drop after rollback of transaction(Vadim)
692 Change error message and remove non-functional update message(Vadim)
693 Fix for COPY array checking
694 Fix for SELECT 1 UNION SELECT NULL
695 Fix for buffer leaks in large object calls(Pascal)
696 Change owner from oid to int4 type(Bruce)
697 Fix a bug in the oracle compatibility functions btrim() ltrim() and rtrim()
698 Fix for shared invalidation cache overflow(Massimo)
699 Prevent file descriptor leaks in failed COPY's(Bruce)
700 Fix memory leak in libpgtcl's pg_select(Constantin)
701 Fix problems with username/passwords over 8 characters(Tom)
702 Fix problems with handling of asynchronous NOTIFY in backend(Tom)
703 Fix of many bad system table entries(Tom)
704
705 Enhancements
706 ------------
707 Upgrade ecpg and ecpglib,see src/interfaces/ecpc/ChangeLog(Michael)
708 Show the index used in an EXPLAIN(Zeugswetter)
709 EXPLAIN  invokes  rule system and shows plan(s) for rewritten queries(Jan)
710 Multi-byte awareness of many data types and functions, via configure(Tatsuo)
711 New configure --with-mb option(Tatsuo)
712 New initdb --pgencoding option(Tatsuo)
713 New createdb -E multibyte option(Tatsuo)
714 Select version(); now returns PostgreSQL version(Jeroen)
715 Libpq now allows asynchronous clients(Tom)
716 Allow cancel from client of backend query(Tom)
717 Psql now cancels query with Control-C(Tom)
718 Libpq users need not issue dummy queries to get NOTIFY messages(Tom)
719 NOTIFY now sends sender's PID, so you can tell whether it was your own(Tom)
720 PGresult struct now includes associated error message, if any(Tom)
721 Define "tz_hour" and "tz_minute" arguments to date_part()(Thomas)
722 Add routines to convert between varchar and bpchar(Thomas)
723 Add routines to allow sizing of varchar and bpchar into target columns(Thomas)
724 Add bit flags to support timezonehour and minute in data retrieval(Thomas)
725 Allow more variations on valid floating point numbers (e.g. ".1", "1e6")(Thomas)
726 Fixes for unary minus parsing with leading spaces(Thomas)
727 Implement TIMEZONE_HOUR, TIMEZONE_MINUTE per SQL92 specs(Thomas)
728 Check for and properly ignore FOREIGN KEY column constraints(Thomas)
729 Define USER as synonym for CURRENT_USER per SQL92 specs(Thomas)
730 Enable HAVING clause but no fixes elsewhere yet.
731 Make "char" type a synonym for "char(1)" (actually implemented as bpchar)(Thomas)
732 Save string type if specified for DEFAULT clause handling(Thomas)
733 Coerce operations involving different data types(Thomas)
734 Allow some index use for columns of different types(Thomas)
735 Add capabilities for automatic type conversion(Thomas)
736 Cleanups for large objects, so file is truncated on open(Peter)
737 Readline cleanups(Tom)
738 Allow psql  \f \ to make spaces as delimiter(Bruce)
739 Pass pg_attribute.atttypmod to the frontend for column field lengths(Tom,Bruce)
740 Msql compatibility library in /contrib(Aldrin)
741 Remove the requirement that ORDER/GROUP BY clause identifiers be 
742 included in the target list(David)
743 Convert columns to match columns in UNION clauses(Thomas)
744 Remove fork()/exec() and only do fork()(Bruce)
745 Jdbc cleanups(Peter)
746 Show backend status on ps command line(only works on some platforms)(Bruce)
747 Pg_hba.conf now has a sameuser option in the database field
748 Make lo_unlink take oid param, not int4
749 New DISABLE_COMPLEX_MACRO for compilers that can't handle our macros(Bruce)
750 Libpgtcl now handles NOTIFY as a Tcl event, need not send dummy queries(Tom)
751 libpgtcl cleanups(Tom)
752 Add -error option to libpgtcl's pg_result command(Tom)
753 New locale patch, see docs/README/locale(Oleg)
754 Fix for pg_dump so CONSTRAINT and CHECK syntax is correct(ccb)
755 New contrib/lo code for large object orphan removal(Peter)
756 New psql command "SET CLIENT_ENCODING TO 'encoding'" for multi-bytes
757 feature, see /doc/README.mb(Tatsuo)
758 /contrib/noupdate code to revoke update permission on a column
759 Libpq can now be compiled on win32(Magnus)
760 Add PQsetdbLogin() in libpq
761 New 8-byte integer type, checked by configure for OS support(Thomas)
762 Better support for quoted table/column names(Thomas)
763 Surround table and column names with double-quotes in pg_dump(Thomas)
764 PQreset() now works with passwords(Tom)
765 Handle case of GROUP BY target list column number out of range(David)
766 Allow UNION in subselects
767 Add auto-size to screen to \d? commands(Bruce)
768 Use UNION to show all \d? results in one query(Bruce)
769 Add \d? field search feature(Bruce)
770 Pg_dump issues fewer \connect requests(Tom)
771 Make pg_dump -z flag work better, document it in manual page(Tom)
772 Add HAVING clause with full support for subselects and unions(Stephan)
773 Full text indexing routines in contrib/fulltextindex(Maarten)
774 Transaction ids now stored in shared memory(Vadim)
775 New PGCLIENTENCODING when issuing COPY command(Tatsuo)
776 Support for SQL92 syntax "SET NAMES"(Tatsuo)
777 Support for LATIN2-5(Tatsuo)
778 Add UNICODE regression test case(Tatsuo)
779 Lock manager cleanup, new locking modes for LLL(Vadim)
780 Allow index use with OR clauses(Bruce)
781 Allows "SELECT NULL ORDER BY 1;"
782 Explain VERBOSE prints the plan, and now pretty-prints the plan to
783 the postmaster log file(Bruce)
784 Add Indices display to \d command(Bruce)
785 Allow GROUP BY on functions(David)
786 New pg_class.relkind for large objects(Bruce)
787 New way to send libpq NOTICE messages to a different location(Tom)
788 New \w write command to psql(Bruce)
789 New /contrib/findoidjoins scans oid columns to find join relationships(Bruce)
790 Allow binary-compatible indices to be considered when checking for valid
791 indices for restriction clauses containing a constant(Thomas)
792 New ISBN/ISSN code in /contrib/isbn_issn
793 Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN constraint(Thomas)
794 New rewrite system fixes many problems with rules and views(Jan)
795         * Rules on relations work
796         * Event qualifications on insert/update/delete work
797         * New OLD variable to reference CURRENT, CURRENT will be remove in future
798         * Update rules can reference NEW and OLD in rule qualifications/actions
799         * Insert/update/delete rules on views work
800         * Multiple rule actions are now supported, surrounded by parentheses
801         * Regular users can create views/rules on tables they have RULE permits
802         * Rules and views inherit the permissions on the creator
803         * No rules at the column level
804         * No UPDATE NEW/OLD rules
805         * New pg_tables, pg_indexes, pg_rules and pg_views system views
806         * Only a single action on SELECT rules
807         * Total rewrite overhaul, perhaps for 6.5
808         * handle subselects
809         * handle aggregates on views
810         * handle insert into select from view works
811 System indexes are now multi-key(Bruce)
812 Oidint2, oidint4, and oidname types are removed(Bruce)
813 Use system cache for more system table lookups(Bruce)
814 New backend programming language PL/pgSQL in backend/pl(Jan)
815 New SERIAL data type, auto-creates sequence/index(Thomas)
816 Enable assert checking without a recompile(Massimo)
817 User lock enhancements(Massimo)
818 New setval() command to set sequence value(Massimo)
819 Auto-remove unix socket file on startup if no postmaster running(Massimo)
820 Conditional trace package(Massimo)
821 New UNLISTEN command(Massimo)
822 Psql and libpq now compile under win32 using win32.mak(Magnus)
823 Lo_read no longer stores trailing NULL(Bruce)
824 Identifiers are now truncated to 31 characters internally(Bruce)
825 Createuser options now availble on the command line
826 Code for 64-bit integer supported added, configure tested, int8 type(Thomas)
827 Prevent file descriptor leaf from failed COPY(Bruce)
828 New pg_upgrade command(Bruce)
829 Updated /contrib directories(Massimo)
830 New CREATE TABLE DEFAULT VALUES statement available(Thomas)
831 New INSERT INTO TABLE DEFAULT VALUES statement available(Thomas)
832 New DECLARE and FETCH feature(Thomas)
833 libpq's internal structures now not exported(Tom)
834 Allow up to 8 key indexes(Bruce)
835 Remove ARCHIVE keyword, that is no longer used(Thomas)
836 pg_dump -n flag to supress quotes around indentifiers
837 disable system columns for views(Jan)
838 new INET and CIDR types for network addresses(TomH, Paul)
839 no more double quotes in psql output
840 pg_dump now dumps views(Terry)
841 new SET QUERY_LIMIT(Tatsuo,Jan)
842
843 Source Tree Changes
844 -------------------
845 /contrib cleanup(Jun)
846 Inline some small functions called for every row(Bruce)
847 Alpha/linux fixes
848 Hp/UX cleanups(Tom)
849 Multi-byte regression tests(Soonmyung.)
850 Remove --disabled options from configure
851 Define PGDOC to use POSTGRESDIR by default
852 Make regression optional
853 Remove extra braces code to pgindent(Bruce)
854 Add bsdi shared library support(Bruce)
855 New --without-CXX support configure option(Brook)
856 New FAQ_CVS
857 Update backend flowchart in tools/backend(Bruce)
858 Change atttypmod from int16 to int32(Bruce, Tom)
859 Getrusage() fix for platforms that do not have it(Tom)
860 Add PQconnectdb, PGUSER, PGPASSWORD to libpq man page
861 NS32K platform fixes(Phil Nelson, John Buller)
862 Sco 7/UnixWare 2.x fixes(Billy,others)
863 Sparc/Solaris 2.5 fixes(Ryan)
864 Pgbuiltin.3 is obsolete, move to doc files(Thomas)
865 Even more documention(Thomas)
866 Nextstep support(Jacek)
867 Aix support(David)
868 pginterface manual page(Bruce)
869 shared libraries all have version numbers
870 merged all OS-specific shared library defines into one file
871 smarter TCL/TK configuration checking(Billy)
872 smarter perl configuration(Brook)
873 configure uses supplied install-sh if no install script found(Tom)
874 new Makefile.shlib for shared library configuration(Tom)
875 </programlisting>
876 </para>
877 </sect2>
878 </sect1>
879
880 <sect1>
881 <title>Release 6.3.2</title>
882 <!--
883 <docinfo>
884 <authorgroup>
885 <author>
886 <firstname>Bruce</firstname>
887 <surname>Momjian</surname>
888 </author>
889 </authorgroup>
890 <date>Tue Apr  7 16:53:16 EDT 1998</date>
891 </docinfo>
892 -->
893
894 <para>
895 This is a bugfix release for 6.3.x.
896 Refer to the release notes for v6.3 for a more complete summary of new features.
897 </para>
898 <para>
899 Summary:
900
901 <itemizedlist>
902 <listitem>
903 <para>
904 Repairs automatic configuration support for some platforms, including Linux,
905 from breakage inadvertently introduced in v6.3.1.
906 </para>
907 </listitem>
908
909 <listitem>
910 <para>
911 Correctly handles function calls on the left side of BETWEEN and LIKE clauses.
912 </para>
913 </listitem>
914
915 </itemizedlist>
916 </para>
917 <para>
918 A dump/restore is NOT required for those running 6.3 or 6.3.1.  A 
919 'make distclean', 'make', and 'make install' is all that is required.
920 This last step should be performed while the postmaster is not running.
921 You should re-link any custom applications that use <productname>Postgres</productname> libraries.
922 </para>
923 <para>
924 For upgrades from pre-v6.3 installations,
925 refer to the installation and migration instructions for v6.3.
926 </para>
927
928 <sect2>
929 <title>Detailed Change List</title>
930
931 <para>
932 <programlisting>
933 Changes
934 -------
935 Configure detection improvements for tcl/tk(Brook Milligan, Alvin)
936 Manual page improvements(Bruce)
937 BETWEEN and LIKE fix(Thomas)
938 fix for psql \connect used by pg_dump(Oliver Elphick)
939 New odbc driver
940 pgaccess, version 0.86
941 qsort removed, now uses libc version, cleanups(Jeroen)
942 fix for buffer over-runs detected(Maurice Gittens)
943 fix for buffer overrun in libpgtcl(Randy Kunkee)
944 fix for UNION with DISTINCT or ORDER BY(Bruce)
945 gettimeofday configure check(Doug Winterburn)
946 Fix "indexes not used" bug(Vadim)
947 docs additions(Thomas)
948 Fix for backend memory leak(Bruce)
949 libreadline cleanup(Erwan MAS)
950 Remove DISTDIR(Bruce)
951 Makefile dependency cleanup(Jeroen van Vianen)
952 ASSERT fixes(Bruce)
953 </programlisting>
954 </para>
955 </sect2>
956 </sect1>
957 <sect1>
958 <title>Release 6.3.1</title>
959 <!--
960 <docinfo>
961 <authorgroup>
962 <author>
963 <firstname>Bruce</firstname>
964 <surname>Momjian</surname>
965 </author>
966 </authorgroup>
967 <date>
968 Mon Mar 23 10:21:52 EST 1998
969 </date>
970 </docinfo>
971 -->
972
973 <para>
974 Summary:
975
976 <itemizedlist>
977 <listitem>
978 <para>
979 Additional support for multi-byte character sets.
980 </para>
981 </listitem>
982
983 <listitem>
984 <para>
985 Repair byte ordering for mixed-endian clients and servers.
986 </para>
987 </listitem>
988
989 <listitem>
990 <para>
991 Minor updates to allowed SQL syntax.
992 </para>
993 </listitem>
994
995 <listitem>
996 <para>
997 Improvements to the configuration autodetection for installation.
998 </para>
999 </listitem>
1000
1001 </itemizedlist>
1002 </para>
1003 <para>
1004 A dump/restore is NOT required for those running 6.3.  A 
1005 'make distclean', 'make', and 'make install' is all that is required.
1006 This last step should be performed while the postmaster is not running.
1007 You should re-link any custom applications that use <productname>Postgres</productname> libraries.
1008 </para>
1009 <para>
1010 For upgrades from pre-v6.3 installations,
1011 refer to the installation and migration instructions for v6.3.
1012 </para>
1013
1014 <sect2>
1015 <title>Detailed Change List</title>
1016
1017 <para>
1018 <programlisting>
1019 Changes
1020 -------
1021 ecpg cleanup/fixes, now version 1.1(Michael Meskes)
1022 pg_user cleanup(Bruce)
1023 large object fix for pg_dump and tclsh (alvin)
1024 LIKE fix for multiple adjacent underscores
1025 fix for redefining builtin functions(Thomas)
1026 ultrix4 cleanup
1027 upgrade to pg_access 0.83
1028 updated CLUSTER manual page
1029 multi-byte character set support, see doc/README.mb(Tatsuo)
1030 configure --with-pgport fix
1031 pg_ident fix
1032 big-endian fix for backend communications(Kataoka)
1033 SUBSTR() and substring() fix(Jan)
1034 several jdbc fixes(Peter)
1035 libpgtcl improvements, see libptcl/README(Randy Kunkee)
1036 Fix for "Datasize = 0" error(Vadim)
1037 Prevent \do from wrapping(Bruce)
1038 Remove duplicate Russian character set entries
1039 Sunos4 cleanup
1040 Allow optional TABLE keyword in LOCK and SELECT INTO(Thomas)
1041 CREATE SEQUENCE options to allow a negative integer(Thomas)
1042 Add "PASSWORD" as an allowed column identifier(Thomas)
1043 Add checks for UNION target fields(Bruce)
1044 Fix Alpha port(Dwayne Bailey)
1045 Fix for text arrays containing quotes(Doug Gibson)
1046 Solaris compile fix(Albert Chin-A-Young)
1047 Better identify tcl and tk libs and includes(Bruce)
1048 </programlisting>
1049 </para>
1050 </sect2>
1051 </sect1>
1052 <sect1>
1053 <title>Release 6.3</title>
1054 <!--
1055 <docinfo>
1056 <authorgroup>
1057 <author>
1058 <firstname>Bruce</firstname>
1059 <surname>Momjian</surname>
1060 </author>
1061 </authorgroup>
1062 <date>
1063 Sun Mar  1 14:57:30 EST 1998
1064 </date>
1065 </docinfo>
1066 -->
1067
1068 <para>
1069 There are <emphasis>many</emphasis> new features and improvements in this release.
1070 Here is a brief, incomplete summary:
1071
1072 <itemizedlist>
1073 <listitem>
1074 <para>
1075 Many new SQL features, including
1076 full <acronym>SQL92</acronym> subselect capability
1077 (everything is here but target-list subselects).
1078 </para>
1079 </listitem>
1080
1081 <listitem>
1082 <para>
1083 Support for client-side environment variables to specify time zone and date style.
1084 </para>
1085 </listitem>
1086
1087 <listitem>
1088 <para>
1089 Socket interface for client/server connection. This is the default now
1090 so you may need to start <application>postmaster</application> with the
1091 <quote>-i</quote> flag.
1092 </para>
1093 </listitem>
1094
1095 <listitem>
1096 <para>
1097 Better password authorization mechanisms. Default table permissions have changed.
1098 </para>
1099 </listitem>
1100
1101 <listitem>
1102 <para>
1103 Old-style <quote>time travel</quote> has been removed. Performance has been improved.
1104 </para>
1105 </listitem>
1106
1107 </itemizedlist>
1108 </para>
1109
1110 <note>
1111 <para>
1112 Bruce Momjian wrote the following notes to introduce the new release.
1113 </para>
1114 </note>
1115
1116 <para>
1117 There are some general 6.3 issues that I want to mention.  These are
1118 only the big items that can not be described in one sentence.  A review
1119 of the detailed changes list is still needed.
1120 </para>
1121 <para>
1122 First, we now have subselects.  Now that we have them, I would like to
1123 mention that without subselects, SQL is a very limited language.
1124 Subselects are a major feature, and you should review your code for
1125 places where subselects provide a better solution for your queries.  I
1126 think you will find that there are more uses for subselects than you may
1127 think.  Vadim has put us on the big SQL map with subselects, and fully
1128 functional ones too.  The only thing you can't do with subselects is to
1129 use them in the target list.
1130 </para>
1131 <para>
1132 Second, 6.3 uses unix domain sockets rather than TCP/IP by default.  To
1133 enable connections from other machines, you have to use the new
1134 postmaster -i option, and of course edit pg_hba.conf.  Also, for this
1135 reason, the format of pg_hba.conf has changed.
1136 </para>
1137 <para>
1138 Third, char() fields will now allow faster access than varchar() or
1139 text. Specifically, the text and varchar() have a penalty for access to
1140 any columns after the first column of this type.  char() used to also
1141 have this access penalty, but it no longer does.  This may suggest that
1142 you redesign some of your tables, especially if you have short character
1143 columns that you have defined as varchar() or text.  This and other
1144 changes make 6.3 even faster than earlier releases.
1145 </para>
1146 <para>
1147 We now have passwords definable independent of any Unix file.  There are
1148 new SQL USER commands.  See the pg_hba.conf manual page for more
1149 information.  There is a new table, pg_shadow, which is used to store
1150 user information and user passwords, and it by default only SELECT-able
1151 by the postgres super-user.  pg_user is now a view of pg_shadow, and is
1152 SELECT-able by PUBLIC.  You should keep using pg_user in your
1153 application without changes.
1154 </para>
1155 <para>
1156 User-created tables now no longer have SELECT permission to PUBLIC by
1157 default.  This was done because the ANSI standard requires it.  You can
1158 of course GRANT any permissions you want after the table is created. 
1159 System tables continue to be SELECT-able by PUBLIC.
1160 </para>
1161 <para>
1162 We also have real deadlock detection code.  No more sixty-second
1163 timeouts.  And the new locking code implements a FIFO better, so there
1164 should be less resource starvation during heavy use.
1165 </para>
1166 <para>
1167 Many complaints have been made about inadequate documenation in previous
1168 releases.  Thomas has put much effort into many new manuals for this
1169 release.  Check out the doc/ directory.
1170 </para>
1171 <para>
1172 For performance reasons, time travel is gone, but can be implemented
1173 using triggers (see pgsql/contrib/spi/README).  Please check out the new
1174 \d command for types, operators, etc.  Also, views have their own
1175 permissions now, not based on the underlying tables, so permissions on
1176 them have to be set separately.  Check /pgsql/interfaces for some new
1177 ways to talk to <productname>Postgres</productname>.
1178 </para>
1179 <para>
1180 This is the first release that really required an explanation for
1181 existing users.  In many ways, this was necessary because the new
1182 release removes many limitations, and the work-arounds people were using
1183 are no longer needed.
1184 </para>
1185
1186 <sect2>
1187 <title>Migration to v6.3</title>
1188
1189 <para>
1190 A dump/restore using <application>pg_dump</application> 
1191 or <application>pg_dumpall</application>
1192 is required for those wishing to migrate data from any
1193 previous release of <productname>Postgres</productname>.
1194 </para>
1195 </sect2>
1196
1197 <sect2>
1198 <title>Detailed Change List</title>
1199
1200 <para>
1201 <programlisting>
1202 Bug Fixes
1203 ---------
1204 Fix binary cursors broken by MOVE implementation(Vadim)
1205 Fix for tcl library crash(Jan)
1206 Fix for array handling, from Gerhard Hintermayer
1207 Fix acl error, and remove duplicate pqtrace(Bruce)
1208 Fix psql \e for empty file(Bruce)
1209 Fix for textcat on varchar() fields(Bruce)
1210 Fix for DBT Sendproc (Zeugswetter Andres)
1211 Fix vacuum analyze syntax problem(Bruce)
1212 Fix for international identifiers(Tatsuo)
1213 Fix aggregates on inherited tables(Bruce)
1214 Fix substr() for out-of-bounds data
1215 Fix for select 1=1 or 2=2, select 1=1 and 2=2, and select sum(2+2)(Bruce)
1216 Fix notty output to show status result.  -q option still turns it off(Bruce)
1217 Fix for count(*), aggs with views and multiple tables and sum(3)(Bruce)
1218 Fix cluster(Bruce)
1219 Fix for PQtrace start/stop several times(Bruce)
1220 Fix a variety of locking problems like newer lock waiters getting
1221         lock before older waiters, and having readlock people not share
1222         locks if a writer is waiting for a lock, and waiting writers not
1223         getting priority over waiting readers(Bruce)
1224 Fix crashes in psql when executing queries from external files(James)
1225 Fix problem with multiple order by columns, with the first one having
1226         NULL values(Jeroen)
1227 Use correct hash table support functions for float8 and int4(Thomas)
1228 Re-enable JOIN= option in CREATE OPERATOR statement (Thomas)
1229 Change precedence for boolean operators to match expected behavior(Thomas)
1230 Generate elog(ERROR) on over-large integer(Bruce)
1231 Allow multiple-argument functions in constraint clauses(Thomas)
1232 Check boolean input literals for 'true','false','yes','no','1','0'
1233         and throw elog(ERROR) if unrecognized(Thomas)
1234 Major large objects fix
1235 Fix for GROUP BY showing duplicates(Vadim)
1236 Fix for index scans in MergeJion(Vadim)
1237
1238 Enhancements
1239 ------------
1240 Subselects with EXISTS, IN, ALL, ANY keywords (Vadim, Bruce, Thomas)
1241 New User Manual(Thomas, others)
1242 Speedup by inlining some frequently-called functions
1243 Real deadlock detection, no more timeouts(Bruce)
1244 Add SQL92 "constants" CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, 
1245         CURRENT_USER(Thomas)
1246 Modify constraint syntax to be SQL92-compliant(Thomas)
1247 Implement SQL92 PRIMARY KEY and UNIQUE clauses using indices(Thomas)
1248 Recognize SQL92 syntax for FOREIGN KEY. Throw elog notice(Thomas)
1249 Allow NOT NULL UNIQUE constraint clause (each allowed separately before)(Thomas)
1250 Allow Postgres-style casting ("::") of non-constants(Thomas)
1251 Add support for SQL3 TRUE and FALSE boolean constants(Thomas)
1252 Support SQL92 syntax for IS TRUE/IS FALSE/IS NOT TRUE/IS NOT FALSE(Thomas)
1253 Allow shorter strings for boolean literals (e.g. "t", "tr", "tru")(Thomas)
1254 Allow SQL92 delimited identifiers(Thomas)
1255 Implement SQL92 binary and hexadecimal string decoding (b'10' and x'1F')(Thomas)
1256 Support SQL92 syntax for type coercion of literal strings
1257         (e.g. "DATETIME 'now'")(Thomas)
1258 Add conversions for int2, int4, and OID types to and from text(Thomas)
1259 Use shared lock when building indices(Vadim)
1260 Free memory allocated for an user query inside transaction block after
1261         this query is done, was turned off in <= 6.2.1(Vadim)
1262 New SQL statement CREATE PROCEDURAL LANGUAGE(Jan)
1263 New <productname>Postgres</productname> Procedural Language (PL) backend interface(Jan)
1264 Rename pg_dump -H option to -h(Bruce)
1265 Add Java support for passwords, European dates(Peter)
1266 Use indices for LIKE and ~, !~ operations(Bruce)
1267 Add hash functions for datetime and timespan(Thomas)
1268 Time Travel removed(Vadim, Bruce)
1269 Add paging for \d and \z, and fix \i(Bruce)
1270 Add Unix domain socket support to backend and to frontend library(Goran)
1271 Implement CREATE DATABASE/WITH LOCATION and initlocation utility(Thomas)
1272 Allow more SQL92 and/or <productname>Postgres</productname> reserved words as column identifiers(Thomas)
1273 Augment support for SQL92 SET TIME ZONE...(Thomas)
1274 SET/SHOW/RESET TIME ZONE uses TZ backend environment variable(Thomas)
1275 Implement SET keyword = DEFAULT and SET TIME ZONE DEFAULT(Thomas)
1276 Enable SET TIME ZONE using TZ environment variable(Thomas)
1277 Add PGDATESTYLE environment variable to frontend and backend initialization(Thomas)
1278 Add PGTZ, PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO
1279         frontend library initialization environment variables(Thomas)
1280 Regression tests time zone automatically set with "setenv PGTZ PST8PDT"(Thomas)
1281 Add pg_description table for info on tables, columns, operators, types, and
1282         aggregates(Bruce)
1283 Increase 16 char limit on system table/index names to 32 characters(Bruce)
1284 Rename system indices(Bruce)
1285 Add 'GERMAN' option to SET DATESTYLE(Thomas)
1286 Define an "ISO-style" timespan output format with "hh:mm:ss" fields(Thomas)
1287 Allow fractional values for delta times (e.g. '2.5 days')(Thomas)
1288 Validate numeric input more carefully for delta times(Thomas)
1289 Implement day of year as possible input to date_part()(Thomas)
1290 Define timespan_finite() and text_timespan() functions(Thomas)
1291 Remove archive stuff(Bruce)
1292 Allow for a pg_password authentication database that is separate from
1293         the system password file(Todd)
1294 Dump ACLs, GRANT, REVOKE permissions(Matt)
1295 Define text, varchar, and bpchar string length functions(Thomas)
1296 Fix Query handling for inheritance, and cost computations(Bruce)
1297 Implement CREATE TABLE/AS SELECT (alternative to SELECT/INTO)(Thomas)
1298 Allow NOT, IS NULL, IS NOT NULL in constraints(Thomas)
1299 Implement UNIONs for SELECT(Bruce)
1300 Add UNION, GROUP, DISTINCT to INSERT(Bruce)
1301 varchar() stores only necessary bytes on disk(Bruce)
1302 Fix for BLOBs(Peter)
1303 Mega-Patch for JDBC...see README_6.3 for list of changes(Peter)
1304 Remove unused "option" from PQconnectdb()
1305 New LOCK command and lock manual page describing deadlocks(Bruce)
1306 Add new psql \da, \dd, \df, \do, \dS, and \dT commands(Bruce)
1307 Enhance psql \z to show sequences(Bruce)
1308 Show NOT NULL and DEFAULT in psql \d table(Bruce)
1309 New psql .psqlrc file startup(Andrew)
1310 Modify sample startup script in contrib/linux to show syslog(Thomas)
1311 New types for IP and MAC addresses in contrib/ip_and_mac(TomH)
1312 Unix system time conversions with date/time types in contrib/unixdate(Thomas)
1313 Update of contrib stuff(Massimo)
1314 Add Unix socket support to DBD::Pg(Goran)
1315 New python interface (PyGreSQL 2.0)(D'Arcy)
1316 New frontend/backend protocol has a version number, network byte order(Phil)
1317 Security features in pg_hba.conf enhanced and documented, many cleanups(Phil)
1318 CHAR() now faster access than VARCHAR() or TEXT
1319 ecpg embedded SQL preprocessor
1320 Reduce system column overhead(Vadmin)
1321 Remove pg_time table(Vadim)
1322 Add pg_type attribute to identify types that need length (bpchar, varchar)
1323 Add report of offending line when COPY command fails
1324 Allow VIEW permissions to be set separately from the underlying tables. 
1325         For security, use GRANT/REVOKE on views as appropriate(Jan)
1326 Tables now have no default GRANT SELECT TO PUBLIC.  You must
1327         explicitly grant such permissions.
1328 Clean up tutorial examples(Darren)
1329
1330 Source Tree Changes
1331 -------------------
1332 Add new html development tools, and flow chart in /tools/backend
1333 Fix for SCO compiles
1334 Stratus computer port Robert Gillies
1335 Added support for shlib for BSD44_derived & i386_solaris
1336 Make configure more automated(Brook)
1337 Add script to check regression test results
1338 Break parser functions into smaller files, group together(Bruce)
1339 Rename heap_create to heap_create_and_catalog, rename heap_creatr
1340         to heap_create()(Bruce)
1341 Sparc/Linux patch for locking(TomS)
1342 Remove PORTNAME and reorganize port-specific stuff(Marc)
1343 Add optimizer README file(Bruce)
1344 Remove some recursion in optimizer and clean up some code there(Bruce)
1345 Fix for NetBSD locking(Henry)
1346 Fix for libptcl make(Tatsuo)
1347 AIX patch(Darren)
1348 Change IS TRUE, IS FALSE, ... to expressions using "=" rather than
1349         function calls to istrue() or isfalse() to allow optimization(Thomas)
1350 Various fixes NetBSD/Sparc related(TomH)
1351 Alpha linux locking(Travis,Ryan)
1352 Change elog(WARN) to elog(ERROR)(Bruce)
1353 FAQ for FreeBSD(Marc)
1354 Bring in the PostODBC source tree as part of our standard distribution(Marc)
1355 A minor patch for HP/UX 10 vs 9(Stan)
1356 New pg_attribute.atttypmod for type-specific info like varchar length(Bruce)
1357 Unixware patches(Billy)
1358 New i386 'lock' for spin lock asm(Billy)
1359 Support for multiplexed backends is removed
1360 Start an OpenBSD port
1361 Start an AUX port
1362 Start a Cygnus port
1363 Add string functions to regression suite(Thomas)
1364 Expand a few function names formerly truncated to 16 characters(Thomas)
1365 Remove un-needed malloc() calls and replace with palloc()(Bruce)
1366 </programlisting>
1367 </para>
1368 </sect2>
1369 </sect1>
1370
1371 <sect1>
1372 <title>Release 6.2.1</title>
1373 <!--
1374 <docinfo>
1375 <authorgroup>
1376 <author>
1377 <firstname>Bruce</firstname>
1378 <surname>Momjian</surname>
1379 </author>
1380 </authorgroup>
1381 <date>
1382 Fri Oct 17 00:01:27 EDT 1997
1383 </date>
1384 </docinfo>
1385 -->
1386
1387 <para>
1388 v6.2.1 is a bug-fix and usability release on v6.2.
1389 </para>
1390 <para>
1391 Summary:
1392
1393 <itemizedlist>
1394 <listitem>
1395 <para>
1396 Allow strings to span lines, per <acronym>SQL92</acronym>.
1397 </para>
1398 </listitem>
1399
1400 <listitem>
1401 <para>
1402 Include example trigger function for inserting user names on table updates.
1403 </para>
1404 </listitem>
1405
1406 </itemizedlist>
1407 </para>
1408 <para>
1409 This is a minor bug-fix release on v6.2. 
1410 For upgrades from pre-v6.2 systems, a full dump/reload is required. 
1411 Refer to the v6.2 release notes for instructions.
1412 </para>
1413
1414 <sect2>
1415 <title>Migration from v6.2 to v6.2.1</title>
1416
1417 <para>
1418 This is a minor bug-fix release. A dump/reload is not required from v6.2,
1419 but is required from any release prior to v6.2.
1420 </para>
1421 <para>
1422 In upgrading from v6.2, if you choose to dump/reload you will find that
1423 avg(money) is now calculated correctly. All other bug fixes take effect
1424 upon updating the executables.
1425 </para>
1426 <para>
1427 Another way to avoid dump/reload is to use the following SQL command
1428 from psql to update the existing system table:
1429
1430 <programlisting>
1431   update pg_aggregate set aggfinalfn = 'cash_div_flt8'
1432    where aggname = 'avg' and aggbasetype = 790;
1433 </programlisting>
1434 </para>
1435 <para>
1436 This will need to be done to every existing database, including template1.
1437 </para>
1438 </sect2>
1439 <sect2>
1440 <title>Detailed Change List</title>
1441
1442 <para>
1443 <programlisting>
1444 Changes in this release
1445 -----------------------
1446 Allow TIME and TYPE column names(Thomas)
1447 Allow larger range of true/false as boolean values(Thomas)
1448 Support output of "now" and "current"(Thomas)
1449 Handle DEFAULT with INSERT of NULL properly(Vadim)
1450 Fix for relation reference counts problem in buffer manager(Vadim)
1451 Allow strings to span lines, like ANSI(Thomas)
1452 Fix for backward cursor with ORDER BY(Vadim)
1453 Fix avg(cash) computation(Thomas)
1454 Fix for specifying a column twice in ORDER/GROUP BY(Vadim)
1455 Documented new libpq function to return affected rows, PQcmdTuples(Bruce)
1456 Trigger function for inserting user names for INSERT/UPDATE(Brook Milligan)
1457 </programlisting>
1458 </para>
1459 </sect2>
1460 </sect1>
1461
1462 <sect1>
1463 <title>Release 6.2</title>
1464 <!--
1465 <docinfo>
1466 <authorgroup>
1467 <author>
1468 <firstname>Bruce</firstname>
1469 <surname>Momjian</surname>
1470 </author>
1471 </authorgroup>
1472 <date>
1473 Thu Oct 02 12:53:46 EDT 1997
1474 </date>
1475 </docinfo>
1476 -->
1477
1478 <para>
1479 A dump/restore is required for those wishing to migrate data from
1480 previous releases of <productname>Postgres</productname>.
1481 </para>
1482
1483 <sect2>
1484 <title>Migration from v6.1 to v6.2</title>
1485
1486 <para>
1487 This migration requires a complete dump of the 6.1 database and a
1488 restore of the database in 6.2.
1489 </para>
1490 <para>
1491 Note that the pg_dump and pg_dumpall utility from 6.2 should be used
1492 to dump the 6.1 database.
1493 </para>
1494 </sect2>
1495
1496 <sect2>
1497 <title>Migration from v1.x to v6.2</title>
1498
1499 <para>
1500 Those migrating from earlier 1.* releases should first upgrade to 1.09
1501 because the COPY output format was improved from the 1.02 release.
1502 </para>
1503 </sect2>
1504
1505 <sect2>
1506 <title>Detailed Change List</title>
1507
1508 <para>
1509 <programlisting>
1510 Bug Fixes
1511 ---------
1512 Fix problems with pg_dump for inheritance, sequences, archive tables(Bruce)
1513 Fix compile errors on overflow due to shifts, unsigned, and bad prototypes
1514          from Solaris(Diab Jerius)
1515 Fix bugs in geometric line arithmetic (bad intersection calculations)(Thomas)
1516 Check for geometric intersections at endpoints to avoid rounding ugliness(Thomas)
1517 Catch non-functional delete attempts(Vadim)
1518 Change time function names to be more consistent(Michael Reifenberg)
1519 Check for zero divides(Michael Reifenberg)
1520 Fix very old bug which made tuples changed/inserted by a commnd
1521         visible to the command itself (so we had multiple update of 
1522         updated tuples, etc)(Vadim)
1523 Fix for SELECT null, 'fail' FROM pg_am (Patrick)
1524 SELECT NULL as EMPTY_FIELD now allowed(Patrick)
1525 Remove un-needed signal stuff from contrib/pginterface
1526 Fix OR (where x &lt;&gt; 1 or x isnull didn't return tuples with x NULL) (Vadim)
1527 Fix time_cmp function (Vadim)
1528 Fix handling of functions with non-attribute first argument in 
1529         WHERE clauses (Vadim)
1530 Fix GROUP BY when order of entries is different from order
1531         in target list (Vadim)
1532 Fix pg_dump for aggregates without sfunc1 (Vadim)
1533
1534 Enhancements
1535 ------------
1536 Default genetic optimizer GEQO parameter is now 8(Bruce)
1537 Allow use parameters in target list having aggregates in functions(Vadim)
1538 Added JDBC driver as an interface(Adrian & Peter)
1539 pg_password utility
1540 Return number of tuples inserted/affected by INSERT/UPDATE/DELETE etc.(Vadim)
1541 Triggers implemented with CREATE TRIGGER (SQL3)(Vadim)
1542 SPI (Server Programming Interface) allows execution of queries inside 
1543         C-functions (Vadim)
1544 NOT NULL implemented (SQL92)(Robson Paniago de Miranda)
1545 Include reserved words for string handling, outer joins, and unions(Thomas)
1546 Implement extended comments ("/* ... */") using exclusive states(Thomas)
1547 Add "//" single-line comments(Bruce)
1548 Remove some restrictions on characters in operator names(Thomas)
1549 DEFAULT and CONSTRAINT for tables implemented (SQL92)(Vadim & Thomas)
1550 Add text concatenation operator and function (SQL92)(Thomas)
1551 Support WITH TIME ZONE syntax (SQL92)(Thomas)
1552 Support INTERVAL unit TO unit syntax (SQL92)(Thomas)
1553 Define types DOUBLE PRECISION, INTERVAL, CHARACTER,
1554         and CHARACTER VARYING (SQL92)(Thomas)
1555 Define type FLOAT(p) and rudimentary DECIMAL(p,s), NUMERIC(p,s) (SQL92)(Thomas)
1556 Define EXTRACT(), POSITION(), SUBSTRING(), and TRIM() (SQL92)(Thomas)
1557 Define CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP (SQL92)(Thomas)
1558 Add syntax and warnings for UNION, HAVING, INNER and OUTER JOIN (SQL92)(Thomas)
1559 Add more reserved words, mostly for SQL92 compliance(Thomas)
1560 Allow hh:mm:ss time entry for timespan/reltime types(Thomas)
1561 Add center() routines for lseg, path, polygon(Thomas)
1562 Add distance() routines for circle-polygon, polygon-polygon(Thomas)
1563 Check explicitly for points and polygons contained within polygons
1564         using an axis-crossing algorithm(Thomas)
1565 Add routine to convert circle-box(Thomas)
1566 Merge conflicting operators for different geometric data types(Thomas)
1567 Replace distance operator "<===>" with "<->"(Thomas)
1568 Replace "above" operator "!^" with ">^" and "below" operator "!|" with "<^"(Thomas)
1569 Add routines for text trimming on both ends, substring, and string position(Thomas)
1570 Added conversion routines circle(box) and poly(circle)(Thomas)
1571 Allow internal sorts to be stored in memory rather than in files(Bruce & Vadim)
1572 Allow functions and operators on internally-identical types to succeed(Bruce)
1573 Speed up backend startup after profiling analysis(Bruce)
1574 Inline frequently called functions for performance(Bruce)
1575 Reduce open() calls(Bruce)
1576 psql:  Add PAGER for \h and \?,\C fix
1577 Fix for psql pager when no tty(Bruce)
1578 New entab utility(Bruce)
1579 General trigger functions for referential integrity (Vadim)
1580 General trigger functions for time travel (Vadim)
1581 General trigger functions for AUTOINCREMENT/IDENTITY feature (Vadim)
1582 MOVE implementation (Vadim)
1583
1584 Source Tree Changes
1585 -------------------
1586 HPUX 10 patches (Vladimir Turin)
1587 Added SCO support, (Daniel Harris)
1588 mkLinux patches (Tatsuo Ishii)
1589 Change geometric box terminology from "length" to "width"(Thomas)
1590 Deprecate temporary unstored slope fields in geometric code(Thomas)
1591 Remove restart instructions from INSTALL(Bruce)
1592 Look in /usr/ucb first for install(Bruce)
1593 Fix c++ copy example code(Thomas)
1594 Add -o to psql manual page(Bruce)
1595 Prevent relname unallocated string length from being copied into database(Bruce)
1596 Cleanup for NAMEDATALEN use(Bruce)
1597 Fix pg_proc names over 15 chars in output(Bruce)
1598 Add strNcpy() function(Bruce)
1599 remove some (void) casts that are unnecessary(Bruce)
1600 new interfaces directory(Marc)
1601 Replace fopen() calls with calls to fd.c functions(Bruce)
1602 Make functions static where possible(Bruce)
1603 enclose unused functions in #ifdef NOT_USED(Bruce)
1604 Remove call to difftime() in timestamp support to fix SunOS(Bruce & Thomas)
1605 Changes for Digital Unix
1606 Portability fix for pg_dumpall(Bruce)
1607 Rename pg_attribute.attnvals to attdisbursion(Bruce)
1608 "intro/unix" manual page now "pgintro"(Bruce)
1609 "built-in" manual page now "pgbuiltin"(Bruce)
1610 "drop" manual page now "drop_table"(Bruce)
1611 Add "create_trigger", "drop_trigger" manual pages(Thomas)
1612 Add constraints regression test(Vadim & Thomas)
1613 Add comments syntax regression test(Thomas)
1614 Add PGINDENT and support program(Bruce)
1615 Massive commit to run PGINDENT on all *.c and *.h files(Bruce)
1616 Files moved to /src/tools directory(Bruce)
1617 SPI and Trigger programming guides (Vadim & D'Arcy)
1618 </programlisting>
1619 </para>
1620 </sect2>
1621 </sect1>
1622
1623 <sect1>
1624 <title>Release 6.1.1</title>
1625 <!--
1626 <docinfo>
1627 <authorgroup>
1628 <author>
1629 <firstname>Bruce</firstname>
1630 <surname>Momjian</surname>
1631 </author>
1632 </authorgroup>
1633 <date>
1634 Mon Jul 22 18:04:49 EDT 1997
1635 </date>
1636 </docinfo>
1637 -->
1638
1639
1640 <sect2>
1641 <title>Migration from v6.1 to v6.1.1</title>
1642
1643 <para>
1644 This is a minor bug-fix release. A dump/reload is not required from v6.1,
1645 but is required from any release prior to v6.1.
1646 Refer to the release notes for v6.1 for more details.
1647 </para>
1648 </sect2>
1649
1650 <sect2>
1651 <title>Detailed Change List</title>
1652
1653 <para>
1654 <programlisting>
1655 Changes in this release
1656 -----------------------
1657 fix for SET with options (Thomas)
1658 allow pg_dump/pg_dumpall to preserve ownership of all tables/objects(Bruce)
1659 new psql \connect option allows changing usernames without changing databases
1660 fix for initdb --debug option(Yoshihiko Ichikawa))
1661 lextest cleanup(Bruce)
1662 hash fixes(Vadim)
1663 fix date/time month boundary arithmetic(Thomas)
1664 fix timezone daylight handling for some ports(Thomas, Bruce, Tatsuo)
1665 timestamp overhauled to use standard functions(Thomas)
1666 other code cleanup in date/time routines(Thomas)
1667 psql's \d now case-insensitive(Bruce)
1668 psql's backslash commands can now have trailing semicolon(Bruce)
1669 fix memory leak in psql when using \g(Bruce)
1670 major fix for endian handling of communication to server(Thomas, Tatsuo)
1671 Fix for Solaris assembler and include files(Yoshihiko Ichikawa)
1672 allow underscores in usernames(Bruce)
1673 pg_dumpall now returns proper status, portability fix(Bruce)
1674 </programlisting>
1675 </para>
1676 </sect2>
1677 </sect1>
1678
1679 <sect1>
1680 <title>Release 6.1</title>
1681 <!--
1682 <docinfo>
1683 <authorgroup>
1684 <author>
1685 <firstname>Bruce</firstname>
1686 <surname>Momjian</surname>
1687 </author>
1688 </authorgroup>
1689 <date>
1690 Sun Jun  8 14:41:13 EDT 1997
1691 </date>
1692 </docinfo>
1693 -->
1694
1695 <para>
1696   The regression tests have been adapted and extensively modified for the
1697   v6.1 release of <productname>Postgres</productname>.
1698 </para>
1699
1700 <para>
1701   Three new data types (datetime, timespan, and circle) have been added to
1702   the native set of <productname>Postgres</productname> types. Points, boxes, paths, and polygons
1703   have had their output formats made consistant across the data types.
1704   The polygon output in misc.out has only been spot-checked for correctness
1705   relative to the original regression output.
1706 </para>
1707
1708 <para>
1709   <productname>Postgres</productname> v6.1 introduces a new, alternate
1710 optimizer which uses <firstterm>genetic</firstterm>
1711   algorithms. These algorithms introduce a random behavior in the ordering
1712   of query results when the query contains multiple qualifiers or multiple
1713   tables (giving the optimizer a choice on order of evaluation). Several
1714   regression tests have been modified to explicitly order the results, and
1715   hence are insensitive to optimizer choices. A few regression tests are
1716   for data types which are inherently unordered (e.g. points and time
1717   intervals) and tests involving those types are explicitly bracketed with
1718   <command>set geqo to 'off'</command> and <command>reset geqo</command>.
1719 </para>
1720
1721 <para>
1722   The interpretation of array specifiers (the curly braces around atomic
1723   values) appears to have changed sometime after the original regression
1724   tests were generated. The current <filename>./expected/*.out</filename> files reflect this
1725   new interpretation, which may not be correct!
1726 </para>
1727
1728 <para>
1729   The float8 regression test fails on at least some platforms. This is due
1730   to differences in implementations of pow() and exp() and the signaling
1731   mechanisms used for overflow and underflow conditions.
1732 </para>
1733
1734 <para>
1735   The "random" results in the random test should cause the "random" test
1736   to be "failed", since the regression tests are evaluated using a simple
1737   diff. However, "random" does not seem to produce random results on my 
1738   test machine (Linux/gcc/i686).
1739 </para>
1740
1741 <sect2>
1742 <title>Migration to v6.1</title>
1743
1744 <para>
1745 This migration requires a complete dump of the 6.0 database and a
1746 restore of the database in 6.1.
1747 </para>
1748 <para>
1749 Those migrating from earlier 1.* releases should first upgrade to 1.09
1750 because the COPY output format was improved from the 1.02 release.
1751 </para>
1752 </sect2>
1753
1754 <sect2>
1755 <title>Detailed Change List</title>
1756
1757 <para>
1758 <programlisting>
1759 Bug Fixes
1760 ---------
1761 packet length checking in library routines
1762 lock manager priority patch
1763 check for under/over flow of float8(Bruce)
1764 multi-table join fix(Vadim)
1765 SIGPIPE crash fix(Darren)
1766 large object fixes(Sven)
1767 allow btree indexes to handle NULLs(Vadim)
1768 timezone fixes(D'Arcy)
1769 select SUM(x) can return NULL on no rows(Thomas)
1770 internal optimizer, executor bug fixes(Vadim)
1771 fix problem where inner loop in < or <= has no rows(Vadim)
1772 prevent re-commuting join index clauses(Vadim)
1773 fix join clauses for multiple tables(Vadim)
1774 fix hash, hashjoin for arrays(Vadim)
1775 fix btree for abstime type(Vadim)
1776 large object fixes(Raymond)
1777 fix buffer leak in hash indices (Vadim)
1778 fix rtree for use in inner scan (Vadim)
1779 fix gist for use in inner scan, cleanups (Vadim, Andrea)
1780 avoid unnecessary local buffers allocation (Vadim, Massimo)
1781 fix local buffers leak in transaction aborts (Vadim)
1782 fix file manager memmory leaks, cleanups (Vadim, Massimo)
1783 fix storage manager memmory leaks (Vadim)
1784 fix btree duplicates handling (Vadim)
1785 fix deleted tuples re-incarnation caused by vacuum (Vadim)
1786 fix SELECT varchar()/char() INTO TABLE made zero-length fields(Bruce)
1787 many psql, pg_dump, and libpq memory leaks fixed using Purify (Igor)
1788
1789 Enhancements
1790 ------------
1791 attribute optimization statistics(Bruce)
1792 much faster new btree bulk load code(Paul)
1793 BTREE UNIQUE added to bulk load code(Vadim) 
1794 new lock debug code(Massimo)
1795 massive changes to libpg++(Leo)
1796 new GEQO optimizer speeds table multi-table optimization(Martin)
1797 new WARN message for non-unique insert into unique key(Marc)
1798 update x=-3, no spaces, now valid(Bruce)
1799 remove case-sensitive identifier handling(Bruce,Thomas,Dan)
1800 debug backend now pretty-prints tree(Darren)
1801 new Oracle character functions(Edmund)
1802 new plaintext password functions(Dan)
1803 no such class or insufficient privilege changed to distinct messages(Dan)
1804 new ANSI timestamp function(Dan)
1805 new ANSI Time and Date types (Thomas)
1806 move large chunks of data in backend(Martin)
1807 multi-column btree indexes(Vadim)
1808 new SET var TO value command(Martin)
1809 update transaction status on reads(Dan)
1810 new locale settings for character types(Oleg)
1811 new SEQUENCE serial number generator(Vadim)
1812 GROUP BY function now possible(Vadim)
1813 re-organize regression test(Thomas,Marc)
1814 new optimizer operation weights(Vadim)
1815 new psql \z grant/permit option(Marc)
1816 new MONEY data type(D'Arcy,Thomas)
1817 tcp socket communication speed improved(Vadim)
1818 new VACUUM option for attribute statistics, and for certain columns (Vadim)
1819 many geometric type improvements(Thomas,Keith)
1820 additional regression tests(Thomas)
1821 new datestyle variable(Thomas,Vadim,Martin)
1822 more comparison operators for sorting types(Thomas)
1823 new conversion functions(Thomas)
1824 new more compact btree format(Vadim)
1825 allow pg_dumpall to preserve database ownership(Bruce)
1826 new SET GEQO=# and R_PLANS variable(Vadim)
1827 old (!GEQO) optimizer can use right-sided plans (Vadim)
1828 typechecking improvement in SQL parser(Bruce)
1829 new SET, SHOW, RESET commands(Thomas,Vadim)
1830 new \connect database USER option
1831 new destroydb -i option (Igor)
1832 new \dt and \di psql commands (Darren)
1833 SELECT "\n" now escapes newline (A. Duursma)
1834 new geometry conversion functions from old format (Thomas)
1835
1836 Source tree changes
1837 -------------------
1838 new configuration script(Marc)
1839 readline configuration option added(Marc)
1840 OS-specific configuration options removed(Marc)
1841 new OS-specific template files(Marc)
1842 no more need to edit Makefile.global(Marc)
1843 re-arrange include files(Marc)
1844 nextstep patches (Gregor Hoffleit)
1845 removed WIN32-specific code(Bruce)
1846 removed postmaster -e option, now only postgres -e option (Bruce)
1847 merge duplicate library code in front/backends(Martin)
1848 now works with eBones, international Kerberos(Jun)
1849 more shared library support
1850 c++ include file cleanup(Bruce)
1851 warn about buggy flex(Bruce)
1852 DG-UX, Ultrix, Irix, AIX portability fixes
1853 </programlisting>
1854 </para>
1855 </sect2>
1856 </sect1>
1857
1858 <sect1>
1859 <title>Release v6.0</title>
1860 <!--
1861 <docinfo>
1862 <authorgroup>
1863 <author>
1864 <firstname>Bruce</firstname>
1865 <surname>Momjian</surname>
1866 </author>
1867 </authorgroup>
1868 <date>
1869 Wed Jan 29 00:19:54 EST 1997
1870 </date>
1871 </docinfo>
1872 -->
1873
1874 <para>
1875 A dump/restore is required for those wishing to migrate data from
1876 previous releases of <productname>Postgres</productname>.
1877 </para>
1878
1879 <sect2>
1880 <title>Migration from v1.09 to v6.0</title>
1881
1882 <para>
1883 This migration requires a complete dump of the 1.09 database and a
1884 restore of the database in 6.0.
1885 </para>
1886 </sect2>
1887
1888 <sect2>
1889 <title>Migration from pre-v1.09 to v6.0</title>
1890
1891 <para>
1892 Those migrating from earlier 1.* releases should first upgrade to 1.09
1893 because the COPY output format was improved from the 1.02 release.
1894 </para>
1895 </sect2>
1896
1897 <sect2>
1898 <title>Detailed Change List</title>
1899
1900 <para>
1901 <programlisting>
1902 Bug Fixes
1903 ---------
1904 ALTER TABLE bug - running postgress process needs to re-read table definition
1905 Allow vacuum to be run on one table or entire database(Bruce)
1906 Array fixes
1907 Fix array over-runs of memory writes(Kurt)
1908 Fix elusive btree range/non-range bug(Dan)
1909 Fix for hash indexes on some types like time and date
1910 Fix for pg_log size explosion
1911 Fix permissions on lo_export()(Bruce)
1912 Fix unitialized reads of memory(Kurt)
1913 Fixed ALTER TABLE ... char(3) bug(Bruce)
1914 Fixed a few small memory leaks
1915 Fixed EXPLAIN handling of options and changed full_path option name
1916 Fixed output of group acl permissions
1917 Memory leaks (hunt and destroy with tools like Purify(Kurt)
1918 Minor improvements to rules system
1919 NOTIFY fixes
1920 New asserts for run-checking
1921 Overhauled parser/analyze code to properly report errors and increase speed
1922 Pg_dump -d now handles NULL's properly(Bruce)
1923 Prevent SELECT NULL from crashing server (Bruce)
1924 Properly report errors when INSERT ... SELECT columns did not match
1925 Properly report errors when insert column names were not correct
1926 Psql \g filename now works(Bruce)
1927 Psql fixed problem with multiple statements on one line with multiple outputs
1928 Removed duplicate system oid's
1929 SELECT * INTO TABLE . GROUP/ORDER BY gives unlink error if table exists(Bruce)
1930 Several fixes for queries that crashed the backend
1931 Starting quote in insert string errors(Bruce)
1932 Submitting an empty query now returns empty status, not just " " query(Bruce)
1933
1934 Enhancements
1935 ------------
1936 Add EXPLAIN manual page(Bruce)
1937 Add UNIQUE index capability(Dan)
1938 Add hostname/user level access control rather than just hostname and user
1939 Add synonym of != for &lt;&gt;(Bruce)
1940 Allow "select oid,* from table"
1941 Allow BY,ORDER BY to specify columns by number, or by non-alias table.column(Bruce)
1942 Allow COPY from the frontend(Bryan)
1943 Allow GROUP BY to use alias column name(Bruce)
1944 Allow actual compression, not just reuse on the same page(Vadim)
1945 Allow installation-configuration option to auto-add all local users(Bryan)
1946 Allow libpq to distinguish between text value '' and null(Bruce)
1947 Allow non-postgres users with createdb privs to destroydb's
1948 Allow restriction on who can create C functions(Bryan)
1949 Allow restriction on who can do backend COPY(Bryan)
1950 Can shrink tables, pg_time and pg_log(Vadim & Erich)
1951 Change debug level 2 to print queries only, changed debug heading layout(Bruce)
1952 Change default decimal constant representation from float4 to float8(Bruce)
1953 European date format now set when postmaster is started
1954 Execute lowercase function names if not found with exact case
1955 Fixes for aggregate/GROUP processing, allow 'select sum(func(x),sum(x+y) from z'
1956 Gist now included in the distrubution(Marc)
1957 Idend authentication of local users(Bryan)
1958 Implement BETWEEN qualifier(Bruce)
1959 Implement IN qualifier(Bruce)
1960 Libpq has PQgetisnull()(Bruce)
1961 Libpq++ improvements
1962 New options to initdb(Bryan)
1963 Pg_dump allow dump of oid's(Bruce)
1964 Pg_dump create indexes after tables are loaded for speed(Bruce)
1965 Pg_dumpall dumps all databases, and the user table
1966 Pginterface additions for NULL values(Bruce)
1967 Prevent postmaster from being run as root
1968 Psql \h and \? is now readable(Bruce)
1969 Psql allow backslashed, semicolons anywhere on the line(Bruce)
1970 Psql changed command prompt for lines in query or in quotes(Bruce)
1971 Psql char(3) now displays as (bp)char in \d output(Bruce)
1972 Psql return code now more accurate(Bryan?)
1973 Psql updated help syntax(Bruce)
1974 Re-visit and fix vacuum(Vadim)
1975 Reduce size of regression diffs, remove timezone name difference(Bruce)
1976 Remove compile-time parameters to enable binary distributions(Bryan)
1977 Reverse meaning of HBA masks(Bryan)
1978 Secure Authentication of local users(Bryan)
1979 Speed up vacuum(Vadim)
1980 Vacuum now had VERBOSE option(Bruce)
1981
1982 Source tree changes
1983 -------------------
1984 All functions now have prototypes that are compared against the calls
1985 Allow asserts to be disabled easly from Makefile.global(Bruce)
1986 Change oid constants used in code to #define names
1987 Decoupled sparc and solaris defines(Kurt)
1988 Gcc -Wall compiles cleanly with warnings only from unfixable constructs
1989 Major include file reorganization/reduction(Marc)
1990 Make now stops on compile failure(Bryan)
1991 Makefile restructuring(Bryan, Marc)
1992 Merge bsdi_2_1 to bsdi(Bruce)
1993 Monitor program removed
1994 Name change from Postgres95 to PostgreSQL
1995 New config.h file(Marc, Bryan)
1996 PG_VERSION now set to 6.0 and used by postmaster
1997 Portability additions, including Ultrix, DG/UX, AIX, and Solaris
1998 Reduced the number of #define's, centeralized #define's
1999 Remove duplicate OIDS in system tables(Dan)
2000 Remove duplicate system catalog info or report mismatches(Dan)
2001 Removed many os-specific #define's
2002 Restructured object file generation/location(Bryan, Marc)
2003 Restructured port-specific file locations(Bryan, Marc)
2004 Unused/uninialized variables corrected
2005 </programlisting>
2006 </para>
2007 </sect2>
2008 </sect1>
2009
2010 <sect1>
2011 <title>Release v1.09</title>
2012 <!--
2013 <docinfo>
2014 <authorgroup>
2015 <author>
2016 <firstname>Bruce</firstname>
2017 <surname>Momjian</surname>
2018 </author>
2019 </authorgroup>
2020 <date>
2021 Unknown
2022 </date>
2023 </docinfo>
2024 -->
2025
2026 <para>
2027 Sorry, we stopped keeping track of changes from 1.02 to 1.09.  Some of
2028 the changes listed in 6.0 were actually included in the 1.02.1 to 1.09
2029 releases.
2030 </para>
2031 </sect1>
2032
2033 <sect1>
2034 <title>Release v1.02</title>
2035 <!--
2036 <docinfo>
2037 <authorgroup>
2038 <author>
2039 <firstname>Bruce</firstname>
2040 <surname>Momjian</surname>
2041 </author>
2042 </authorgroup>
2043 <date>
2044 Thu Aug  1 18:00:00 EDT 1996
2045 </date>
2046 </docinfo>
2047 -->
2048
2049 <sect2>
2050 <title>Migration from v1.02 to v1.02.1</title>
2051
2052 <para>
2053 Here is a new migration file for 1.02.1.  It includes the 'copy' change
2054 and a script to convert old ascii files.
2055 </para>
2056 <note>
2057 <para>
2058 The following notes are for the benefit of users who want to migrate
2059 databases from postgres95 1.01 and 1.02 to postgres95 1.02.1.
2060 </para>
2061 <para>
2062 If you are starting afresh with postgres95 1.02.1 and do not need
2063 to migrate old databases, you do not need to read any further.
2064 </para>
2065 </note>
2066
2067 <para>
2068 In order to upgrade older postgres95 version 1.01 or 1.02 databases to
2069 version 1.02.1, the following steps are required:
2070 </para>
2071 <procedure>
2072 <step>
2073 <para>
2074 Start up a new 1.02.1 postmaster
2075 </para>
2076 </step>
2077 <step>
2078 <para>
2079 Add the new built-in functions and operators of 1.02.1 to 1.01 or 1.02
2080    databases.  This is done by running the new 1.02.1 server against
2081    your own 1.01 or 1.02 database and applying the queries attached at
2082    the end of thie file.   This can be done easily through psql.  If your
2083    1.01 or 1.02 database is named "testdb" and you have cut the commands
2084    from the end of this file and saved them in addfunc.sql:
2085 <programlisting>
2086         % psql testdb -f addfunc.sql
2087 </programlisting>
2088
2089 Those upgrading 1.02 databases will get a warning when executing the
2090 last two statements in the file because they are already present in 1.02.  This is
2091 not a cause for concern.
2092 </para>
2093 </step>
2094 </procedure>
2095 </sect2>
2096
2097 <sect2>
2098 <title>Dump/Reload Procedure</title>
2099
2100 <para>
2101 If you are trying to reload a pg_dump or text-mode 'copy tablename to
2102 stdout' generated with a previous version, you will need to run the
2103 attached sed script on the ASCII file before loading it into the
2104 database.  The old format used '.' as end-of-data, while '\.' is now the
2105 end-of-data marker.  Also, empty strings are now loaded in as '' rather
2106 than NULL. See the copy manual page for full details.
2107
2108 <programlisting>
2109         sed 's/^\.$/\\./g' &lt;in_file &gt;out_file
2110 </programlisting>
2111 </para>
2112 <para>
2113 If you are loading an older binary copy or non-stdout copy, there is no
2114 end-of-data character, and hence no conversion necessary.
2115
2116 <programlisting>
2117 -- following lines added by agc to reflect the case-insensitive
2118 -- regexp searching for varchar (in 1.02), and bpchar (in 1.02.1)
2119 create operator ~* (leftarg = bpchar, rightarg = text, procedure = texticregexeq);
2120 create operator !~* (leftarg = bpchar, rightarg = text, procedure = texticregexne);
2121 create operator ~* (leftarg = varchar, rightarg = text, procedure = texticregexeq);
2122 create operator !~* (leftarg = varchar, rightarg = text, procedure = texticregexne);
2123 </programlisting>
2124 </para>
2125 </sect2>
2126
2127 <sect2>
2128 <title>Detailed Change List</title>
2129
2130 <para>
2131 <programlisting>
2132 Source code maintenance and development
2133  * worldwide team of volunteers
2134  * the source tree now in CVS at ftp.ki.net
2135
2136 Enhancements
2137  * psql (and underlying libpq library) now has many more options for
2138    formatting output, including HTML
2139  * pg_dump now output the schema and/or the data, with many fixes to
2140    enhance completeness.
2141  * psql used in place of monitor in administration shell scripts.
2142    monitor to be depreciated in next release.
2143  * date/time functions enhanced
2144  * NULL insert/update/comparison fixed/enhanced
2145  * TCL/TK lib and shell fixed to work with both tck7.4/tk4.0 and tcl7.5/tk4.1
2146
2147 Bug Fixes (almost too numerous to mention)
2148  * indexes
2149  * storage management
2150  * check for NULL pointer before dereferencing
2151  * Makefile fixes
2152
2153 New Ports
2154  * added SolarisX86 port
2155  * added BSDI 2.1 port
2156  * added DGUX port
2157 </programlisting>
2158 </para>
2159 <!--
2160 Contributors (appologies to any missed)
2161  * Kurt J. Lidl <lidl@va.pubnix.com> 
2162         (missed in first run, but no less important)
2163  * Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
2164  * Jason Wright <jason@shiloh.vnet.net>
2165  * Cees de Groot <C.deGroot@inter.NL.net>
2166  * ernst.molitor@uni-bonn.de
2167  * michael.siebenborn@ae3.Hypo.DE (Michael Siebenborn (6929))
2168  * Brian E. Gallew <geek+@cmu.edu>
2169  * Vadim B. Mikheev <vadim@sable.krasnoyarsk.su>
2170  * Adam Sussman <myddryn@vidya.com>
2171  * Chris Dunlop <chris@onthe.net.au>
2172  * Marc G. Fournier <scrappy@ki.net>
2173  * Dan McGuirk <mcguirk@indirect.com>
2174  * Dr_George_D_Detlefsen <drgeorge@ilt.com>
2175  * Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
2176  * Massimo Dal Zotto <dz@cs.unitn.it>
2177  * Randy Kunkee <kunkee@Starbase.NeoSoft.COM>
2178  * Rick Weldon <rick@wisetech.com>
2179  * Thomas van Reimersdahl <reimersd@dali.techinfo.rwth-aachen.de>
2180  * david bennett <dave@bensoft.com>
2181  * ernst.molitor@uni-bonn.de
2182  * Julian Assange <proff@suburbia.net>
2183  * Bruce Momjian <maillist@candle.pha.pa.us>
2184  * Paul "Shag" Walmsley <ccshag@cclabs.missouri.edu>
2185  * "Alistair G. Crooks" <azcb0@sde.uts.amdahl.com>
2186 -->
2187 </sect2>
2188 </sect1>
2189
2190 <sect1>
2191 <title>Release v1.01</title>
2192 <!--
2193 <docinfo>
2194 <authorgroup>
2195 <author>
2196 <firstname>Bruce</firstname>
2197 <surname>Momjian</surname>
2198 </author>
2199 </authorgroup>
2200 <date>
2201 Fri Feb 23 18:20:36 PST 1996
2202 </date>
2203 </docinfo>
2204 -->
2205
2206 <sect2>
2207 <title>Migration from v1.0 to v1.01</title>
2208
2209 <para>
2210 The following notes are for the benefit of users who want to migrate
2211 databases from postgres95 1.0 to postgres95 1.01.  
2212 </para>
2213 <para>
2214 If you are starting afresh with postgres95 1.01 and do not need
2215 to migrate old databases, you do not need to read any further.
2216 </para>
2217 <para>
2218 In order to postgres95 version 1.01 with databases created with
2219 postgres95 version 1.0, the following steps are required:  
2220 </para>
2221 <procedure>
2222 <step>
2223 <para>
2224 Set the definition of NAMEDATALEN in src/Makefile.global to 16
2225    and OIDNAMELEN to 20.
2226 </para>
2227 </step>
2228 <step>
2229 <para>
2230 Decide whether you want to use Host based authentication.  
2231 </para>
2232 <substeps>
2233 <step>
2234 <para>
2235 If you do, you must create a file name "pg_hba" in your top-level data
2236    directory (typically the value of your $PGDATA).  src/libpq/pg_hba
2237    shows an example syntax.
2238 </para>
2239 </step>
2240 <step>
2241 <para>
2242 If you do not want host-based authentication, you can comment out
2243    the line
2244 <programlisting>
2245         HBA = 1
2246 </programlisting>
2247    in src/Makefile.global
2248 </para>
2249 <para>
2250    Note that host-based authentication is turned on by default, and if
2251    you do not take steps A or B above, the out-of-the-box 1.01 will
2252    not allow you to connect to 1.0 databases.
2253 </para>
2254 </step>
2255 </substeps>
2256 </step>
2257
2258 <step>
2259 <para>
2260 Compile and install 1.01, but DO NOT do the initdb step.
2261 </para>
2262 </step>
2263 <step>
2264 <para>
2265 Before doing anything else, terminate your 1.0 postmaster, and
2266    backup your existing $PGDATA directory.   
2267 </para>
2268 </step>
2269 <step>
2270 <para>
2271 Set your PGDATA environment variable to your 1.0 databases, but set up
2272    path up so that 1.01 binaries are being used.
2273 </para>
2274 </step>
2275 <step>
2276 <para>
2277 Modify the file $PGDATA/PG_VERSION from 5.0 to 5.1
2278 </para>
2279 </step>
2280 <step>
2281 <para>
2282 Start up a new 1.01 postmaster
2283 </para>
2284 </step>
2285 <step>
2286 <para>
2287 Add the new built-in functions and operators of 1.01 to 1.0
2288    databases.  This is done by running the new 1.01 server against
2289    your own 1.0 database and applying the queries attached and saving 
2290    in the file 1.0_to_1.01.sql.   This can be done easily through psql.
2291    If your 1.0 database is name "testdb":
2292
2293 <programlisting>
2294         % psql testdb -f 1.0_to_1.01.sql
2295 </programlisting>
2296
2297 and then execute the following commands (cut and paste from here):
2298
2299 <programlisting>
2300 -- add builtin functions that are new to 1.01
2301
2302 create function int4eqoid (int4, oid) returns bool as 'foo'
2303 language 'internal';
2304 create function oideqint4 (oid, int4) returns bool as 'foo'
2305 language 'internal';
2306 create function char2icregexeq (char2, text) returns bool as 'foo'
2307 language 'internal';
2308 create function char2icregexne (char2, text) returns bool as 'foo'
2309 language 'internal';
2310 create function char4icregexeq (char4, text) returns bool as 'foo'
2311 language 'internal';
2312 create function char4icregexne (char4, text) returns bool as 'foo'
2313 language 'internal';
2314 create function char8icregexeq (char8, text) returns bool as 'foo'
2315 language 'internal';
2316 create function char8icregexne (char8, text) returns bool as 'foo'
2317 language 'internal';
2318 create function char16icregexeq (char16, text) returns bool as 'foo'
2319 language 'internal';
2320 create function char16icregexne (char16, text) returns bool as 'foo'
2321 language 'internal';
2322 create function texticregexeq (text, text) returns bool as 'foo'
2323 language 'internal';
2324 create function texticregexne (text, text) returns bool as 'foo'
2325 language 'internal';
2326
2327 -- add builtin functions that are new to 1.01
2328
2329 create operator = (leftarg = int4, rightarg = oid, procedure = int4eqoid);
2330 create operator = (leftarg = oid, rightarg = int4, procedure = oideqint4);
2331 create operator ~* (leftarg = char2, rightarg = text, procedure = char2icregexeq);
2332 create operator !~* (leftarg = char2, rightarg = text, procedure = char2icregexne);
2333 create operator ~* (leftarg = char4, rightarg = text, procedure = char4icregexeq);
2334 create operator !~* (leftarg = char4, rightarg = text, procedure = char4icregexne);
2335 create operator ~* (leftarg = char8, rightarg = text, procedure = char8icregexeq);
2336 create operator !~* (leftarg = char8, rightarg = text, procedure = char8icregexne);
2337 create operator ~* (leftarg = char16, rightarg = text, procedure = char16icregexeq);
2338 create operator !~* (leftarg = char16, rightarg = text, procedure = char16icregexne);
2339 create operator ~* (leftarg = text, rightarg = text, procedure = texticregexeq);
2340 create operator !~* (leftarg = text, rightarg = text, procedure = texticregexne);
2341 </programlisting>
2342 </para>
2343 </step>
2344 </procedure>
2345 </sect2>
2346
2347 <sect2>
2348 <title>Detailed Change List</title>
2349
2350 <para>
2351 <programlisting>
2352 Incompatibilities:
2353  * 1.01 is backwards compatible with 1.0 database provided the user
2354    follow the steps outlined in the MIGRATION_from_1.0_to_1.01 file.
2355    If those steps are not taken, 1.01 is not compatible with 1.0 database.
2356
2357 Enhancements:
2358  * added PQdisplayTuples() to libpq and changed monitor and psql to use it
2359  * added NeXT port (requires SysVIPC implementation)
2360  * added CAST .. AS ... syntax
2361  * added ASC and DESC keywords
2362  * added 'internal' as a possible language for CREATE FUNCTION
2363    internal functions are C functions which have been statically linked
2364    into the postgres backend.
2365  * a new type "name" has been added for system identifiers (table names,
2366    attribute names, etc.)  This replaces the old char16 type.   The
2367    of name is set by the NAMEDATALEN #define in src/Makefile.global
2368  * a readable reference manual that describes the query language.
2369  * added host-based access control.  A configuration file ($PGDATA/pg_hba)
2370    is used to hold the configuration data.  If host-based access control
2371    is not desired, comment out HBA=1 in src/Makefile.global.
2372  * changed regex handling to be uniform use of Henry Spencer's regex code
2373    regardless of platform.  The regex code is included in the distribution
2374  * added functions and operators for case-insensitive regular expressions. 
2375    The operators are ~* and !~*.
2376  * pg_dump uses COPY instead of SELECT loop for better performance
2377
2378 Bug fixes:
2379  * fixed an optimizer bug that was causing core dumps when 
2380    functions calls were used in comparisons in the WHERE clause
2381  * changed all uses of getuid to geteuid so that effective uids are used
2382  * psql now returns non-zero status on errors when using -c
2383  * applied public patches 1-14
2384 </programlisting>
2385 </para>
2386 </sect2>
2387 </sect1>
2388
2389 <sect1>
2390 <title>Release v1.0</title>
2391 <!--
2392 <docinfo>
2393 <authorgroup>
2394 <author>
2395 <firstname>Bruce</firstname>
2396 <surname>Momjian</surname>
2397 </author>
2398 </authorgroup>
2399 <date>
2400 Tue Sep  5 11:24:11 PDT 1995
2401 </date>
2402 </docinfo>
2403 -->
2404
2405 <sect2>
2406 <title>Detailed Change List</title>
2407
2408 <para>
2409 <programlisting>
2410 Copyright change:
2411  * The copyright of <productname>Postgres</productname> 1.0 has been loosened to be freely modifiable
2412    and modifiable for any purpose.  Please read the COPYRIGHT file.
2413    Thanks to Professor Michael Stonebraker for making this possible.
2414
2415 Incompatibilities:
2416  *  date formats have to be MM-DD-YYYY (or DD-MM-YYYY if you're using
2417    EUROPEAN STYLE).  This follows SQL-92 specs.
2418  *  "delimiters" is now a keyword
2419
2420 Enhancements:
2421  *  sql LIKE syntax has been added
2422  *  copy command now takes an optional USING DELIMITER specification.
2423    delimiters can be any single-character string. 
2424  *  IRIX 5.3 port has been added.
2425    Thanks to Paul Walmsley and others.
2426  *  updated pg_dump to work with new libpq
2427  *  \d has been added psql 
2428    Thanks to Keith Parks
2429  *  regexp performance for architectures that use POSIX regex has been
2430    improved due to caching of precompiled patterns.
2431    Thanks to Alistair Crooks
2432  *  a new version of libpq++
2433    Thanks to William Wanders
2434
2435 Bug fixes:
2436  *  arbitrary userids can be specified in the createuser script
2437  *  \c to connect to other databases in psql now works.
2438  *  bad pg_proc entry for float4inc() is fixed
2439  *  users with usecreatedb field set can now create databases without
2440    having to be usesuper
2441  *  remove access control entries when the entry no longer has any
2442    permissions
2443  *  fixed non-portable datetimes implementation
2444  *  added kerberos flags to the src/backend/Makefile
2445  *  libpq now works with kerberos
2446  *  typographic errors in the user manual have been corrected.
2447  *  btrees with multiple index never worked, now we tell you they don't
2448    work when you try to use them
2449 </programlisting>
2450 </para>
2451 </sect2>
2452 </sect1>
2453
2454 <sect1>
2455 <title><productname>Postgres95</productname> Beta 0.03</title>
2456 <!--
2457 <docinfo>
2458 <authorgroup>
2459 <author>
2460 <firstname>Bruce</firstname>
2461 <surname>Momjian</surname>
2462 </author>
2463 </authorgroup>
2464 <date>
2465 Fri Jul 21 14:49:31 PDT 1995
2466 </date>
2467 </docinfo>
2468 -->
2469
2470 <sect2>
2471 <title>Detailed Change List</title>
2472
2473 <para>
2474 <programlisting>
2475 Incompatible changes:
2476  * BETA-0.3 IS INCOMPATIBLE WITH DATABASES CREATED WITH PREVIOUS VERSIONS
2477    (due to system catalog changes and indexing structure changes).
2478  * double-quote (") is deprecated as a quoting character for string literals;
2479    you need to convert them to single quotes (').
2480  * name of aggregates (eg. int4sum) are renamed in accordance with the
2481    SQL standard (eg. sum).
2482  * CHANGE ACL syntax is replaced by GRANT/REVOKE syntax.
2483  * float literals (eg. 3.14) are now of type float4 (instead of float8 in
2484    previous releases); you might have to do typecasting if you depend on it
2485    being of type float8.  If you neglect to do the typecasting and you assign
2486    a float literal to a field of type float8, you may get incorrect values
2487    stored!
2488  * LIBPQ has been totally revamped so that frontend applications
2489    can connect to multiple backends
2490  * the usesysid field in pg_user has been changed from int2 to int4 to
2491    allow wider range of Unix user ids.
2492  * the netbsd/freebsd/bsd o/s ports have been consolidated into a
2493    single BSD44_derived port.  (thanks to Alistair Crooks)
2494
2495 SQL standard-compliance (the following details changes that makes postgres95
2496 more compliant to the SQL-92 standard):
2497  * the following SQL types are now built-in: smallint, int(eger), float, real,
2498    char(N), varchar(N), date and time.
2499
2500    The following are aliases to existing postgres types:
2501                 smallint -> int2
2502                 integer, int -> int4
2503                 float, real  -> float4
2504    char(N) and varchar(N) are implemented as truncated text types. In
2505    addition, char(N) does blank-padding. 
2506  * single-quote (') is used for quoting string literals; '' (in addition to
2507    \') is supported as means of inserting a single quote in a string
2508  * SQL standard aggregate names (MAX, MIN, AVG, SUM, COUNT) are used
2509    (Also, aggregates can now be overloaded, i.e. you can define your
2510    own MAX aggregate to take in a user-defined type.)
2511  * CHANGE ACL removed. GRANT/REVOKE syntax added.  
2512    - Privileges can be given to a group using the "GROUP" keyword.
2513         For example:
2514                 GRANT SELECT ON foobar TO GROUP my_group;
2515         The keyword 'PUBLIC' is also supported to mean all users.       
2516
2517         Privileges can only be granted or revoked to one user or group
2518         at a time.  
2519
2520         "WITH GRANT OPTION" is not supported.  Only class owners can change
2521         access control
2522    - The default access control is to to grant users readonly access.
2523      You must explicitly grant insert/update access to users.  To change
2524      this, modify the line in 
2525                 src/backend/utils/acl.h 
2526      that defines ACL_WORLD_DEFAULT 
2527
2528 Bug fixes:
2529  * the bug where aggregates of empty tables were not run has been fixed. Now,
2530    aggregates run on empty tables will return the initial conditions of the
2531    aggregates. Thus, COUNT of an empty  table will now properly return 0.
2532    MAX/MIN of an empty table will return a tuple of value NULL. 
2533  * allow the use of \; inside the monitor
2534  * the LISTEN/NOTIFY asynchronous notification mechanism now work
2535  * NOTIFY in rule action bodies now work
2536  * hash indices work, and access methods in general should perform better.
2537    creation of large btree indices should be much faster.  (thanks to Paul
2538    Aoki)
2539
2540 Other changes and enhancements:
2541  * addition of an EXPLAIN statement used for explaining the query execution
2542    plan (eg. "EXPLAIN SELECT * FROM EMP" prints out the execution plan for
2543    the query).
2544  * WARN and NOTICE messages no longer have timestamps on them. To turn on
2545    timestamps of error messages, uncomment the line in
2546    src/backend/utils/elog.h:
2547         /* define ELOG_TIMESTAMPS */ 
2548  * On an access control violation, the message
2549         "Either no such class or insufficient privilege"
2550    will be given.  This is the same message that is returned when
2551    a class is not found.  This dissuades non-privileged users from
2552    guessing the existence of privileged classes.
2553  * some additional system catalog changes have been made that are not
2554    visible to the user.
2555
2556 libpgtcl changes:
2557  * The -oid option has been added to the "pg_result" tcl command.
2558    pg_result -oid returns oid of the last tuple inserted.   If the
2559    last command was not an INSERT, then pg_result -oid returns "".
2560  * the large object interface is available as pg_lo* tcl commands:
2561    pg_lo_open, pg_lo_close, pg_lo_creat, etc.
2562
2563 Portability enhancements and New Ports:
2564  * flex/lex problems have been cleared up.  Now, you should be able to use
2565    flex instead of lex on any platforms.  We no longer make assumptions of
2566    what lexer you use based on the platform you use. 
2567  * The Linux-ELF port is now supported.  Various configuration have been 
2568    tested:  The following configuration is known to work:
2569         kernel 1.2.10, gcc 2.6.3, libc 4.7.2, flex 2.5.2, bison 1.24
2570    with everything in ELF format,
2571
2572 New utilities:
2573  * ipcclean added to the distribution
2574    ipcclean usually does not need to be run, but if your backend crashes
2575    and leaves shared memory segments hanging around, ipcclean will
2576    clean them up for you.
2577
2578 New documentation:
2579  * the user manual has been revised and libpq documentation added.
2580 </programlisting>
2581 </para>
2582 </sect2>
2583 </sect1>
2584
2585 <sect1>
2586 <title><productname>Postgres95</productname> Beta 0.02</title>
2587 <!--
2588 <docinfo>
2589 <authorgroup>
2590 <author>
2591 <firstname>Bruce</firstname>
2592 <surname>Momjian</surname>
2593 </author>
2594 </authorgroup>
2595 <date>
2596 Thu May 25 16:54:46 PDT 1995
2597 </date>
2598 </docinfo>
2599 -->
2600
2601 <sect2>
2602 <title>Detailed Change List</title>
2603
2604 <para>
2605 <programlisting>
2606 Incompatible changes:
2607  * The SQL statement for creating a database is 'CREATE DATABASE' instead
2608    of 'CREATEDB'. Similarly, dropping a database is 'DROP DATABASE' instead
2609    of 'DESTROYDB'. However, the names of the executables 'createdb' and 
2610    'destroydb' remain the same.
2611  
2612 New tools:
2613  * pgperl - a Perl (4.036) interface to Postgres95
2614  * pg_dump - a utility for dumping out a postgres database into a
2615         script file containing query commands. The script files are in a ASCII
2616         format and can be used to reconstruct the database, even on other
2617         machines and other architectures. (Also good for converting
2618         a Postgres 4.2 database to Postgres95 database.)
2619
2620 The following ports have been incorporated into postgres95-beta-0.02:
2621  * the NetBSD port by Alistair Crooks
2622  * the AIX port by Mike Tung
2623  * the Windows NT port by Jon Forrest (more stuff but not done yet)
2624  * the Linux ELF port by Brian Gallew
2625
2626 The following bugs have been fixed in postgres95-beta-0.02:
2627  * new lines not escaped in COPY OUT and problem with COPY OUT when first
2628    attribute is a '.' 
2629  * cannot type return to use the default user id in createuser
2630  * SELECT DISTINCT on big tables crashes
2631  * Linux installation problems
2632  * monitor doesn't allow use of 'localhost' as PGHOST
2633  * psql core dumps when doing \c or \l
2634  * the "pgtclsh" target missing from src/bin/pgtclsh/Makefile
2635  * libpgtcl has a hard-wired default port number
2636  * SELECT DISTINCT INTO TABLE hangs
2637  * CREATE TYPE doesn't accept 'variable' as the internallength
2638  * wrong result using more than 1 aggregate in a SELECT
2639 </programlisting>
2640 </para>
2641 </sect2>
2642 </sect1>
2643
2644 <sect1>
2645 <title><productname>Postgres95</productname> Beta 0.01</title>
2646 <!--
2647 <docinfo>
2648 <authorgroup>
2649 <author>
2650 <firstname>Bruce</firstname>
2651 <surname>Momjian</surname>
2652 </author>
2653 </authorgroup>
2654 <date>
2655 Mon May 1 19:03:10 PDT 1995
2656 </date>
2657 </docinfo>
2658 -->
2659
2660 <para>
2661 Initial release.
2662 </para>
2663 </sect1>
2664
2665   <sect1>
2666    <title>Timing Results</title>
2667
2668    <para>
2669     These timing results are from running the regression test with the commands
2670
2671     <programlisting>
2672 % cd src/test/regress
2673 % make all
2674 % time make runtest
2675     </programlisting>
2676    </para>
2677    <para>
2678     Timing under Linux 2.0.27 seems to have a roughly 5% variation from run
2679     to run, presumably due to the scheduling vagaries of multitasking systems.
2680    </para>
2681
2682    <sect2>
2683     <title>v6.5</title>
2684
2685     <para>
2686      As has been the case for previous releases, timing between
2687      releases is not directly comparable since new regression tests
2688      have been added. In general, v6.5 is faster than previous
2689      releases.
2690     </para>
2691
2692     <para>
2693      Timing with <function>fsync()</function> disabled:
2694
2695      <programlisting>
2696   Time   System
2697   02:00  Dual Pentium Pro 180, 224MB, UW-SCSI, Linux 2.0.36, gcc 2.7.2.3 -O2 -m486
2698   04:38  Sparc Ultra 1 143MHz, 64MB, Solaris 2.6
2699      </programlisting>
2700     </para>
2701
2702     <para>
2703      Timing with <function>fsync()</function> enabled:
2704
2705      <programlisting>
2706   Time   System
2707   04:21  Dual Pentium Pro 180, 224MB, UW-SCSI, Linux 2.0.36, gcc 2.7.2.3 -O2 -m486
2708      </programlisting>
2709
2710      For the linux system above, using UW-SCSI disks rather than (older) IDE
2711      disks leads to a 50% improvement in speed on the regression test.
2712     </para>
2713    </sect2>
2714
2715 <sect2>
2716 <title>v6.4beta</title>
2717
2718 <para>
2719 The times for this release are not directly comparable to those for previous releases
2720 since some additional regression tests have been included.
2721 In general, however, v6.4 should be slightly faster than the previous release (thanks, Bruce!).
2722 </para>
2723 <para>
2724 <programlisting>
2725   Time   System
2726   02:26  Dual Pentium Pro 180, 96MB, UW-SCSI, Linux 2.0.30, gcc 2.7.2.1 -O2 -m486
2727 </programlisting>
2728 </para>
2729 </sect2>
2730
2731 <sect2>
2732 <title>v6.3</title>
2733
2734 <para>
2735 The times for this release are not directly comparable to those for previous releases
2736 since some additional regression tests have been included and some obsolete tests involving
2737 time travel have been removed.
2738 In general, however, v6.3 is substantially faster than previous releases (thanks, Bruce!).
2739 </para>
2740 <para>
2741 <programlisting>
2742   Time   System
2743   02:30  Dual Pentium Pro 180, 96MB, UW-SCSI, Linux 2.0.30, gcc 2.7.2.1 -O2 -m486
2744   04:12  Dual Pentium Pro 180, 96MB, EIDE, Linux 2.0.30, gcc 2.7.2.1 -O2 -m486
2745 </programlisting>
2746 </para>
2747 </sect2>
2748
2749 <sect2>
2750 <title>v6.1</title>
2751
2752 <para>
2753 <programlisting>
2754   Time   System
2755   06:12  Pentium Pro 180, 32MB, EIDE, Linux 2.0.30, gcc 2.7.2 -O2 -m486
2756   12:06  P-100, 48MB, Linux 2.0.29, gcc
2757   39:58  Sparc IPC 32MB, Solaris 2.5, gcc 2.7.2.1 -O -g
2758 </programlisting>
2759 </para>
2760 </sect2>
2761 </sect1>
2762 </chapter>
2763
2764 <!-- Keep this comment at the end of the file
2765 Local variables:
2766 mode: sgml
2767 sgml-omittag:nil
2768 sgml-shorttag:t
2769 sgml-minimize-attributes:nil
2770 sgml-always-quote-attributes:t
2771 sgml-indent-step:1
2772 sgml-indent-data:t
2773 sgml-parent-document:nil
2774 sgml-default-dtd-file:"./reference.ced"
2775 sgml-exposed-tags:nil
2776 sgml-local-catalogs:"/usr/lib/sgml/catalog"
2777 sgml-local-ecat-files:nil
2778 End:
2779 -->