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