postgresql/doc/TODO

418 lines
19 KiB
Plaintext
Raw Normal View History

1997-10-17 22:30:26 +08:00
TODO list for PostgreSQL
========================
1998-10-24 12:43:39 +08:00
Last updated: Sat Oct 24 00:11:58 EDT 1998
1996-08-19 06:14:33 +08:00
1998-02-28 23:08:15 +08:00
Current maintainer: Bruce Momjian (maillist@candle.pha.pa.us)
1996-08-19 06:14:33 +08:00
1996-10-04 23:15:24 +08:00
The most recent version of this document can be viewed at
1997-10-17 22:30:26 +08:00
the PostgreSQL WWW site, http://www.postgreSQL.org.
1996-10-04 23:15:24 +08:00
THE CHANGES FOR 6.4 APPEAR AT THE END OF THIS DOCUMENT
1998-02-02 05:20:26 +08:00
A dash(-) marks changes to be in the next release.
1996-12-27 06:15:15 +08:00
Developers who have claimed items are:
1997-10-17 22:30:26 +08:00
-------------------------------------
* Billy is Billy G. Allie <Bill.Allie@mug.org>
* Brook is Brook Milligan <brook@trillium.NMSU.Edu>
1998-02-28 23:08:15 +08:00
* Bruce is Bruce Momjian<maillist@candle.pha.pa.us>
* Bryan is Bryan Henderson<bryanh@giraffe.netgate.net>
* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
* Dan is Dan McGuirk <mcguirk@indirect.com>
* Darren is Darren King <darrenk@insightdist.com>
* David is David Hartwig <daveh@insightdist.com>
1998-02-28 23:08:15 +08:00
* Edmund is Edmund Mergl <E.Mergl@bawue.de>
* Goran is Goran Thyni <goran@bildbasen.se>
* Henry is Henry B. Hotz <hotz@jpl.nasa.gov>
* Jan is Jan Wieck <wieck@sapserv.debis.de>
* Jun is Jun Kuwamura <juk@rccm.co.jp>
1998-04-08 05:01:28 +08:00
* Maarten is Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>
1998-02-28 23:08:15 +08:00
* Marc is Marc Fournier <scrappy@hub.org>
* Martin is Martin S. Utesch <utesch@aut.tu-freiberg.de>
* Massimo Dal Zotto <dz@cs.unitn.it>
1998-03-21 13:28:27 +08:00
* Michael is Michael Meskes <meskes@debian.org>
1998-02-28 23:08:15 +08:00
* Oleg is Oleg Bartunov <oleg@sai.msu.su>
* Paul is Paul M. Aoki <aoki@CS.Berkeley.EDU>
* Peter is Peter T Mount <peter@retep.org.uk>
1998-02-28 23:08:15 +08:00
* Phil is Phil Thompson <phil@river-bank.demon.co.uk>
* Ryan is Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
1998-02-28 23:08:15 +08:00
* Soo-Ho Ok <shok@detc.dongeui-tc.ac.kr>
* Stefan Simkovics <ssimkovi@rainbow.studorg.tuwien.ac.at>
* Sven is Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
1998-10-24 12:43:39 +08:00
* Tom is Tom Lane <tgl@sss.pgh.pa.us>
1998-02-28 23:08:15 +08:00
* Thomas is Thomas Lockhart <tgl@mythos.jpl.nasa.gov>
* TomH is Tom I Helbekkmo <tih@Hamartun.Priv.NO>
1998-02-28 23:08:15 +08:00
* Vadim is "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
1996-08-19 06:14:33 +08:00
Additional 6.4 developers include:
1998-02-02 09:20:04 +08:00
---------------------------------
* Jun Kuwamura <juk@rccm.co.jp>
* Zeugswetter Andreas SARZ <Andreas.Zeugswetter@telecom.at>
* Soonmyung. Hong <hong@lunaris.hanmesoft.co.kr>
* Anders Hammarquist <iko@netg.se>
* Jeroen van Vianen <jeroenv@design.nl>
* Aldrin L. <aldrin@americasnet.com>
* Pascal ANDRE <andre@via.ecp.fr>
* Magnus Hagander <mha@edu.sollentuna.se>
1998-10-24 12:43:39 +08:00
* Robert Bruccoleri <bruc@pluto.njcc.com>
* Paul A Vixie <paul@vix.com>
* Jacek Lasecki <jacek@sound.eti.pg.gda.pl>
1998-02-02 09:20:04 +08:00
1996-08-19 06:14:33 +08:00
RELIABILITY
-----------
1998-02-02 05:20:26 +08:00
* Overhaul mdmgr/smgr to fix double unlinking and double opens, cleanup
* Overhaul bufmgr/lockmgr/transaction manager
1997-10-17 22:30:26 +08:00
* Remove EXTEND?
1998-02-02 05:20:26 +08:00
* Can lo_export()/lo_import() read/write anywhere, causing a security problem?
1997-10-17 22:30:26 +08:00
* Tables that start with xinv confused to be large objects
* Two and three dimmensional arrays display improperly, missing {}
1998-03-01 13:27:47 +08:00
* GROUP BY in INSERT INTO table SELECT * FROM table2 fails
1997-10-17 22:30:26 +08:00
* Prevent auto-table reference, like SELECT table.col WHERE col = 3 (?)
* SELECT * FROM table WHERE int4_column = '1' fails
* SELECT a[1] FROM test fails, it needs test.a[1]
* UPDATE table SET table.value = 3 fails
1998-02-02 05:20:26 +08:00
* User who can create databases can modify pg_database table
1998-02-28 06:01:58 +08:00
* optimizer memory exhaustion with many OR's
* elog() does not free all its memory(Jan)
1998-03-21 13:28:27 +08:00
* views on subselects fail
* disallow inherited columns with the same name as new columns
* recover or force failure when disk space is exhausted
1998-04-08 05:01:28 +08:00
* default char() value not to full length crashes server on some OS's
* allow UPDATE using aggregate to affect all rows, not just one
* computations in views fail:
create view test as select usesysid * usesysid from pg_shadow;
1996-08-19 06:14:33 +08:00
ENHANCEMENTS
------------
1997-10-17 22:30:26 +08:00
* Replace table-level locking with row or page-level locking(Vadim)
* Add SERIAL type
1998-02-02 05:20:26 +08:00
* Transaction log, so re-do log can be on a separate disk
* Allow transaction commits with rollback with no-fsync performance
1997-10-17 22:30:26 +08:00
* More access control over who can create tables and access the database
1998-02-02 05:20:26 +08:00
* Add full ANSI SQL capabilities
1998-02-28 23:08:15 +08:00
* add OUTER joins, left and right (Thomas)
1998-03-21 13:28:27 +08:00
* add INTERSECTS, SUBTRACTS(Stephan)
* add temporary tables
1998-02-28 23:08:15 +08:00
* add sql3 recursive unions
* add the concept of dataspaces
* add DECIMAL, NUMERIC, DOUBLE PRECISION, BIT, BIT VARYING
* NCHAR (as distinguished from ordinary varchar),
* DOMAIN capability
1997-10-17 22:30:26 +08:00
* Allow compression of large fields or a compressed field type
* Fix the rules system(Jan,Soo-Ho)
1998-02-28 23:08:15 +08:00
* add CONSTRAINT
1997-10-17 22:30:26 +08:00
* Full set of text operations and functions
1998-02-28 23:08:15 +08:00
* word searches, concat,max() on text, char
1997-10-17 22:30:26 +08:00
* Large objects
* Fix large object mapping scheme, own reltype(Peter)
* Allow large text type to use large objects(Peter)
1998-02-28 23:08:15 +08:00
* not to stuff everything as files in a single directory
1998-03-21 13:28:27 +08:00
* Fix large object memory leaks
* delete orphaned large objects
1997-10-17 22:30:26 +08:00
* Better interface for adding to pg_group
* Make MONEY/DECIMAL have a defined precision
1998-03-21 13:28:27 +08:00
* Fix tables >2G, or report error when 2G size reached
(fix lseek()/off_t, mdextend()/RELSEG_SIZE)
1997-10-17 22:30:26 +08:00
* Add REGEX internationalization
* allow row re-use without vacuum, maybe?(Vadim)
* Add word index for text fields, maybe with trigrams, i.e.:
* ' (cat | dog) & ! fox ' meaning text has cat aor dog, but not fox
1997-10-17 22:30:26 +08:00
* Populate backend status area and write program to dump status data
* Add ALTER TABLE DROP COLUMN feature
* Allow INSERT INTO ... SELECT to convert column types
1998-02-02 05:20:26 +08:00
* Add syslog functionality(Marc)
1997-10-17 22:30:26 +08:00
* Add STDDEV/VARIANCE() function for standard deviation computation/variance
* add UNIQUE capability to non-btree indexes
* make number of backends a config parameter, storage/sinvaladt.h:MaxBackendId
* certain indexes will not shrink, i.e. oid indexes with many inserts
1998-02-28 23:08:15 +08:00
* make NULL's come out at the beginning or end depending on the ORDER BY direction
1997-10-17 22:30:26 +08:00
* change the library/backend interface to use network byte order
* Restore unused oid's on backend exit if no one else has gotten oids
1998-02-02 05:20:26 +08:00
* remove non-standard types from the system, and make them loadable
* have UPDATE/DELETE clean out indexes
* allow WHERE restriction on ctid
* allow pg_descriptions when creating types, tables, columns, and functions
* Fix compile and security of Kerberos/GSSAPI code
* Allow psql to print nulls as distinct from ""(?)
* Allow variable casts with BETWEEN 'today'::asbtime AND 'today'::abstime
1998-02-28 06:01:58 +08:00
* Allow INSERT INTO ... SELECT ... FROM view to work
* Make VACUUM on database not lock pg_class
* Make VACUUM ANALYZE only use a readlock
* Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions
* Allow installation data block size and max tuple size configuration(Darren)
* Allow views on a UNION
* Allow DISTINCT on view
1998-02-28 06:01:58 +08:00
* Allow views of aggregate columns
* Allow variable block sizes(Darren)
* System tables are now more update-able from SQL(Jan)
* New pg_shadow file, pg_user is now a view of pg_shadow(Jan)
1998-03-21 13:28:27 +08:00
* Allow flag to control COPY input/output of NULLs
* Allow CLUSTER on all tables at once, and improve CLUSTER
* Change all references of Postgres to PostgreSQL, including binary names
* Add ELOG_TIMESTAMPS to elog()(?)
* Change LOCK tablename to LOCK TABLE tablename(?)
* Allow max tuple length to be changed(Darren)
* Have psql with no database name not connect to username as default(?)
* Allow subqueries in target list
* Granting permissions to another user looses permissions for the owner
1998-04-08 05:01:28 +08:00
* Allow queries across multiple databases
* Add replication of distributed databases
* Allow table destruction/alter to be rolled back
* Add pg_attribute.atttypmod/Resdom->restypmod to PGresult structure
* Generate error on CREATE OPERATOR of ~~, ~ and and ~*
* Allow constraint NULL just as we honor NOT NULL
* Add version number in startup banners for psql and postmaster
* Restructure storing of GRANT permission information to allow +-=
* allow psql \copy to allow delimiters
* allow international error message support and add error codes
* allow ORDER BY a function(David)
* allow usernames with dashes(GRANT fails)
* add a function to return the last inserted oid, for use in psql scripts
* allow creation of functional indexes to use default types
* put sort files, large objects in their on directory
* CREATE VIEW myview (name) AS SELECT lname FROM wages fails
1998-10-24 12:43:39 +08:00
* do autocommit so always in a transaction block
* add SIMILAR TO to allow character classes, 'pg_[a-c]%'
* allow function isnull(val,'string') to return string if value is null
* multi-verion concurrency control(Vadim)
* improve reporting of syntax errors by showing location of error in query
* allow chaining of pages to allow >8k tuples
* no min/max for oid type
* remove un-needed conversion functions
1996-10-04 23:15:24 +08:00
PERFORMANCE
-----------
* Use indexes in ORDER BY for restrictive data sets, min(), max()
1998-10-24 12:43:39 +08:00
* Allow LIMIT ability on single-table queries that have no ORDER BY or
a matching index
* Pull requested data directly from indexes, bypassing heap data
* Prevent psort() usage when query already using index matching ORDER BY
1997-10-17 22:30:26 +08:00
* Optimizing disjunctive queries
* Fix bushy-plans
1998-02-02 05:20:26 +08:00
* Prevent fsync in SELECT-only queries
1997-10-17 22:30:26 +08:00
* Cache most recent query plan(s?)
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
* Allow compression of log and meta data
* Add FILLFACTOR to index creation
* update pg_statistic table to remove operator column
1998-02-02 05:20:26 +08:00
* make index creation use psort code, because it is now faster(Vadim)
* remove fork()/exec() of backend and make it just fork()
1998-02-28 06:01:58 +08:00
* Add base table name to \d index
1998-03-21 13:28:27 +08:00
* Allow char() not to use variable-sized header to reduce disk size
* Do async I/O to do better read-ahead of data
* Fix optmizer problem with self-table joins
* Fix memory exhaustion when using many OR's
* Use spin locks only on multi-CPU systems, yield CPU instead
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
when it is available
* use mmap() rather than SYSV shared memory(?)
* use index to restrict rows returned by multi-key index when used with
non-consecutive keys or OR clauses, so fewer heap accesses
1998-10-24 12:43:39 +08:00
* use index with constants on functions
1996-08-19 06:14:33 +08:00
DOCUMENTATION
-------------
1997-10-17 22:30:26 +08:00
* Update usermanual source(many)
* added features used in grammer but not in docs, like :: and CAST
1998-02-02 05:20:26 +08:00
* Add keyword list to documentation, already in /tools
1998-03-21 13:28:27 +08:00
* Add 'man pgsql' to show all manual page names
1998-10-24 12:43:39 +08:00
* Add use of 'const' for varibles in source tree
1996-08-19 06:14:33 +08:00
1996-12-27 06:15:15 +08:00
1998-02-02 05:20:26 +08:00
=============================================================================
1997-07-14 04:00:14 +08:00
CHANGES IN THE 6.4 RELEASE
1998-02-02 05:20:26 +08:00
--------------------------
Bug Fixes
---------
Fix for a tiny memory leak in PQsetdb/PQfinish(Bryan)
Remove char2-16 data types, use char/varchar(Darren)
Pqfn not handles a NOTICE message(Anders)
Short-term locks now retry locking at random times(David)
Fix up "ISO-style" timespan decoding and encoding(Thomas)
Fix problem with table drop after rollback of transaction(Vadim)
Change error message and remove non-functional update message(Vadim)
Fix for COPY array checking
Fix for SELECT 1 UNION SELECT NULL
Fix for buffer leaks in large object calls(Pascal)
Change owner from oid to int4 type(Bruce)
Fix a bug in the oracle compatibility functions btrim() ltrim() and rtrim()
Fix for usernames longer than eight characters(Tom)
Fix for shared invalidation cache overflow(Massimo)
Prevent file descriptor leaks in failed COPY's(Bruce)
1998-10-24 12:43:39 +08:00
Fix problem with username/passwords over 8 characters(Tom)
Enhancements
------------
1998-10-24 12:43:39 +08:00
Upgrade ecpg and ecpglib,see src/interfaces/ecpc/ChangeLog(Michael)
Show the index used in an explain(Zeugswetter)
1998-10-24 12:43:39 +08:00
Multi-byte awareness of many data types and functions, via configure(Tatsuo)
New configure --with-mb option(Tatsuo)
New initdb --pgencoding option(Tatsuo)
New createdb -E multibyte option(Tatsuo)
Select version(); now returns PostgreSQL version(Jeroen)
Libpq now allows asynchronous clients(Tom)
Allow cancel from client of backend query(Tom)
Psql now cancels query with Control-C(Tom)
Define "tz_hour" and "tz_minute" arguments to date_part()(Thomas)
Add routines to convert between varchar and bpchar(Thomas)
Add routines to allow sizing of varchar and bpchar into target columns(Thomas)
Add bit flags to support timezonehour and minute in data retrieval(Thomas)
Allow more variations on valid floating point numbers (e.g. ".1", "1e6")(Thomas)
Fixes for unary minus parsing with leading spaces(Thomas)
Implement TIMEZONE_HOUR, TIMEZONE_MINUTE per SQL92 specs(Thomas)
Check for and properly ignore FOREIGN KEY column constraints(Thomas)
Define USER as synonym for CURRENT_USER per SQL92 specs(Thomas)
Enable HAVING clause but no fixes elsewhere yet.
Make "char" type a synonym for "char(1)" (actually implemented as bpchar)(Thomas)
Save string type if specified for DEFAULT clause handling(Thomas)
Coerce operations involving different data types(Thomas)
Allow some index use for columns of different types(Thomas)
Add capabilities for automatic type conversion(Thomas)
Cleanups for large objects, so file is truncated on open(Peter)
Readline cleanups(Tom)
Allow psql \f \ to make spaces as delimiter(Bruce)
Pass pg_attribute.atttypmod to the frontend for column field lengths(Tom,Bruce)
Msql compatibility library in /contrib(Aldrin)
Remove the requirement that ORDER/GROUP BY clause identifiers be
included in the target list(David)
Convert columns to match columns in UNION clauses(Thomas)
Remove fork()/exec() and only do fork()(Bruce)
Jdbc cleanups(Peter)
Show backend status on ps command line(only works on some platforms)(Bruce)
Pg_hba.conf now has a sameuser option in the database field
Make lo_unlink take oid param, not int4
New DISABLE_COMPLEX_MACRO for compilers that can't handle our macros(Bruce)
Libpgtcl now gets async notifies from libpq(Tom)
1998-10-24 12:43:39 +08:00
libpgtcl cleanups(Tom)
New locale patch, see docs/README/locale(Oleg)
Fix for pg_dump so CONSTRAINT and CHECK syntax is correct(ccb)
New contrib/lo code for large object orphan removal(Peter)
New psql command "SET CLIENT_ENCODING TO 'encoding'" for multi-bytes
feature, see /doc/README.mb(Tatsuo)
/contrib/noupdate code to revoke update permission on a column
Libpq can now be compiled on win32(Magnus)
Add PQsetdbLogin() in libpq
Two styles we agreed upon for database descriptors(Thomas)
New 8-byte integer type, checked by configure for OS support(Thomas)
1998-10-24 12:43:39 +08:00
Better support for quited table/column names(Thomas)
Surround table and column names with double-quotes(Thomas) in generated
1998-10-24 12:43:39 +08:00
sql code to preserve case (SQL92 syntax)(Thomas)
New libpqrequestCancel(Tom)
PQreset() now works with passwords(Tom)
Handle case of GROUP BY target list column number out of range(David)
Allow UNION in subselects
Add auto-size to screen to \d? commands(Bruce)
Use UNION to show all \d? results in one query(Bruce)
Add \d? field search feature(Bruce)
Pg_dump issues fewer \connect requests(Tom)
Document pg_dump -z flag in manual page(Tom)
Add HAVING clause with full support for subselects and unions(Stephan)
Full text indexing routines in contrib/fulltextindex(Marteen)
Transaction ids now stored in shared memory(Vadim)
New PGCLIENTENCODING when issuing COPY command(Tatsuo)
Support for SQL92 syntax "SET NAMES"(Tatsuo)
Support for LATIN2-5(Tatsuo)
Add UNICODE regression test case(Tatsuo)
Lock manager cleanup, new locking modes for LLL(Vadim)
Allow index use with OR clauses(Bruce)
Allows "SELECT NULL ORDER BY 1;"
Explain VERBOSE prints the plan, and now pretty-prints the plan to
the postmaster log file(Bruce)
Add Indices display to \d command(Bruce)
Allow GROUP BY on functions(David)
New pg_class.relkind for large objects(Bruce)
New way to send libpq NOTICE messages to a different location(Tom)
New \w write command to psql(Bruce)
New /contrib/findoidjoins scans oid columns to find join relationships(Bruce)
Allow binary-compatible indices to be considered when checking for valid
indices for restriction clauses containing a constant(Thomas)
New ISBN/ISSN code in /contrib/isbn_issn
Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN constraint(Thomas)
New rewrite system fixes many problems with rules and views(Jan)
* Rules on relations work
* Event qualifications on insert/update/delete work
* New OLD variable to reference CURRENT, CURRENT will be remove in future
* Update rules can reference NEW and OLD in rule qualifications/actions
* Insert/update/delete rules on views work
* Multiple rule actions are now supported, surrounded by parentheses
* Regular users can create views/rules on tables they have RULE permits
* Rules and views inherit the permissions on the creator
* No rules at the column level
* No UPDATE NEW/OLD rules
1998-10-24 12:43:39 +08:00
* New pg_tables, pg_indexes, pg_rules and pg_views system views
* Only a single action on SELECT rules
* Total rewrite overhaul, perhaps for 6.5
1998-10-24 12:43:39 +08:00
* handle subselects
* handle aggregates on views
* handle insert into select from view works
*
System indexes are now multi-key(Bruce)
Oidint2, oidint4, and oidname types are removed(Bruce)
Use system cache for more system table lookups(Bruce)
New backend programming language PL/pgSQL in backend/pl(Jan)
New SERIAL data type, auto-creates sequence/index(Thomas)
Enable assert checking without a recompile(Massimo)
User lock enhancements(Massimo)
New setval() command to set sequence value(Massimo)
Auto-remove unix socket file on startup if no postmaster running(Massimo)
Conditional trace package(Massimo)
New UNLISTEN command(Massimo)
1998-10-24 12:43:39 +08:00
Psql and libpq now compile under win32 using win32.mak(Magnus)
Lo_read no longer stores trailing NULL(Bruce)
Identifiers are now truncated to 31 characters internally(Bruce)
1998-10-24 12:43:39 +08:00
Createuser options now availble on the command line
PL/pgSQL backend programming language(Jan)
Code for 64-bit integer supported added, configure tested, int8 type(Thomas)
Prevent file descriptor leaf from failed COPY(Bruce)
New pg_upgrade command(Bruce)
Updated /contrib directories(Massimo)
New CREATE TABLE DEFAULT VALUES statement available(Thomas)
New INSERT INTO TABLE DEFAULT VALUES statement available(Thomas)
New DECLARE and FETCH feature(Thomas)
libpq's internal structures now not exported(Tom)
Allow up to 8 key indexes(Bruce)
Remove ARCHIVE keyword, that is no longer used(Thomas)
pg_dump -n flag to supress quotes around indentifiers
disable system columns for views(Jan)
net INET and CIDR types for network addresses(TomH, Paul)
no more double quotes in psql output
pg_dump now dumps views(Terry)
new SET QUERY_LIMIT(Tatsuo,Jan)
1996-12-28 10:01:58 +08:00
1997-09-30 11:01:39 +08:00
Source Tree Changes
-------------------
/contrib cleanup(Jun)
Inline some small functions called for every row(Bruce)
Alpha/linux fixes
Hp/UX cleanups(Tom)
Multi-byte regression tests(Soonmyung.)
Remove --disabled options from configure
Define PGDOC to use POSTGRESDIR by default
Make regression optional
Remove extra braces code to pgindent(Bruce)
Add bsdi shared library support(Bruce)
New --without-CXX support configure option(Brook)
New FAQ_CVS
Update backend flowchart in tools/backend(Bruce)
Change atttypmod from int16 to int32(Bruce, Tom)
Getrusage() fix for platforms that do not have it(Tom)
Add PGUSER to libpq man page
1998-10-24 12:43:39 +08:00
NS32K platform fixes(Phil Nelson, John Buller)
Sco 7/UnixWare 2.x fixes(Billy,others)
Sparc/Solaris 2.5 fixes(Ryan)
Pgbuiltin.3 is obsolete, move to doc files(Thomas)
Even more documention(Thomas)
1998-10-24 12:43:39 +08:00
Nextstep support(Jacek)
Aix support(David)
pginterface manual page(Bruce)
shared libraries all have version numbers
merged all OS-specific shared library defines into one file
smarter TCL/TK configuration checking(Billy)
smarter perl configuration(Brook)