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