You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postgres/doc/TODO

374 lines
15 KiB

25 years ago
TODO list for PostgreSQL
========================
24 years ago
Last updated: Thu Sep 6 12:59:41 EDT 2001
26 years ago
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
29 years ago
The most recent version of this document can be viewed at
26 years ago
the PostgreSQL web site, http://www.PostgreSQL.org.
29 years ago
25 years ago
A dash (-) marks changes that will appear in the upcoming 7.2 release.
28 years ago
25 years ago
Bracketed items "[]" have more detailed information at
http://www.postgresql.org/docs/todo.html.
26 years ago
26 years ago
RELIABILITY
-----------
24 years ago
* -SELECT pg_class FROM pg_class generates strange error (Bruce)
24 years ago
* PL/PgSQL does not handle quoted mixed-case identifiers
26 years ago
24 years ago
ENHANCEMENTS
------------
URGENT
* Add replication of distributed databases [replication]
24 years ago
o automatic failover
o load balancing
o master/slave replication
o multi-master replication
o partition data across servers
o sample implementation in contrib/rserv
o queries across databases or servers (two-phase commit)
* Point-in-time data recovery using backup and write-ahead log
24 years ago
* Allow row re-use without vacuum (Tom)
26 years ago
ADMIN
24 years ago
* Improve control over user privileges, including table creation and
24 years ago
lock use [privileges] (Karel, others)
24 years ago
* -Permission to DELETE table also allows UPDATE (Peter E)
25 years ago
* Allow elog() to return error codes, module name, file name, line
24 years ago
number, not just messages (Peter E) [elog]
24 years ago
* -Allow international error message support and add error codes[elog](Peter E)
* -Remove unused sort files on postmaster startup (Bruce)
* Remove unreferenced table files and temp tables during database vacuum
or postmaster startup
24 years ago
* -Remove unreferenced sort files during postmaster startup (Bruce)
25 years ago
* Add table name mapping for numeric file names
24 years ago
* -Better document pg_hba.conf host-based authentication (Bruce)
24 years ago
* -Encrpyt passwords in pg_shadow table using MD5 (Bruce, Vince)
24 years ago
* Incremental backups
24 years ago
* Make it easier to create a database owned by someone who can't createdb
26 years ago
TYPES
24 years ago
* Add domain capability [domain]
26 years ago
* Add IPv6 capability to INET/CIDR types
24 years ago
* -Add conversion function from text to inet
26 years ago
* Store binary-compatible type information in the system
24 years ago
* Allow better handling of numeric constants, type conversion [typeconv]
25 years ago
* Support construction of array result values in expressions
* Remove Money type, add money formatting for decimal type
24 years ago
* SELECT cash_out(2) crashes because of opaque
* Declare typein/out functions in pg_proc with a special "C string" data type
24 years ago
* -Add non-large-object binary field (already exists -- bytea)
24 years ago
* -Make binary interface for TOAST columns (base64)
* Make file in/out interface for TOAST columns, similar to large object
interface (force out-of-line storage and no compression)
25 years ago
* Functions returning sets do not totally work
24 years ago
* SELECT col FROM tab WHERE numeric_col = 10.1 fails, requires quotes
24 years ago
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
24 years ago
* -Add SQL standard function bit_length() (Peter E)
24 years ago
* -Make oid use unsigned int more reliably (Tom)
24 years ago
* Add security checking for large objects
* ARRAYS
24 years ago
o Allow nulls in arrays
o Allow arrays to be ORDER'ed
o fix array handling in ECPG
24 years ago
MULTILANGUAGE SUPPORT
* Add NCHAR (as distinguished from ordinary varchar),
24 years ago
* Allow LOCALE on a per-column basis, default to ASCII
25 years ago
* Support multiple simultaneous character sets, per SQL92
25 years ago
* Reject character sequences those are not valid in their charset
24 years ago
* Make functions more multi-byte aware, e.g. trim()
24 years ago
* -Make n of CHAR(n)/VARCHAR(n) the number of letters, not bytes (Tatsuo)
VIEWS
26 years ago
24 years ago
* Automatically create rules on views so they are updateable, per SQL92 [view]
24 years ago
* Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
25 years ago
* Allow NOTIFY in rules involving conditionals
24 years ago
* -Evaluate INSERT rules at end of query, rather than beginning (Jan)
26 years ago
INDEXES
26 years ago
* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
fails index can't store constant parameters
26 years ago
* Add FILLFACTOR to index creation
24 years ago
* Order duplicate index entries by tid
24 years ago
* -Re-enable partial indexes
24 years ago
* -Prevent pg_attribute from having duplicate oids for indexes (Tom)
24 years ago
* Allow inherited tables to inherit index, UNIQUE constraint, and primary
key, foreign key [inheritance]
24 years ago
* UNIQUE INDEX on base column not honored on inserts from inherited table
INSERT INTO inherit_table (unique_index_col) VALUES (dup) should fail
[inheritance]
24 years ago
* Allow DELETE/UPDATE on inherited table
25 years ago
* Add UNIQUE capability to non-btree indexes
24 years ago
* Certain indexes will not shrink, e.g. oid indexes with many inserts
25 years ago
* Have UPDATE/DELETE clean out indexes
24 years ago
* Add btree index support for reltime, tinterval, regproc
* Add rtree index support for line, lseg, path, point
24 years ago
* Use indexes for min() and max()
* Use index to restrict rows returned by multi-key index when used with
non-consecutive keys or OR clauses, so fewer heap accesses
* Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
24 years ago
float4, numeric/decimal too [optimizer]
* Use indexes with CIDR '<<' (contains) operator
* Allow LIKE indexing optimization for non-ASCII locales
* Be smarter about insertion of already-ordered data into btree index
24 years ago
* -Gather more accurate dispersion statistics using indexes (Tom)
24 years ago
* Add deleted bit to index tuples to reduce heap access
* Prevent index uniqueness checks when UPDATE does not modifying column
24 years ago
* Add bitmap indexes [performance]
24 years ago
* Improve handling of index scans for NULL
24 years ago
* Allow GIST indexes to handle NULLs
24 years ago
SYSTEM TABLES
24 years ago
* -Add unique indexes to pg_shadow.usename and pg_shadow.usesysid or
24 years ago
switch to pg_shadow.oid as user id
24 years ago
* -Add unique indexes on pg_database
24 years ago
* -Check all system tables and add unique indexes as needed (Tom)
24 years ago
* -Remove pg_listener index
24 years ago
* -Remove unused pg_variable, pg_inheritproc, pg_ipl tables (Bruce)
COMMANDS
26 years ago
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
24 years ago
* -Allow LOCK TABLE tab1, tab2, tab3 so all tables locked in unison [lock]
* Allow RULE recompilation
* Add BETWEEN ASYMMETRIC/SYMMETRIC
* Change LIMIT val,val to offset,limit to match MySQL
24 years ago
* Allow LIMIT/OFFSET to use expressions
24 years ago
* Allow PL/PgSQL's RAISE function to take expressions
24 years ago
* Change PL/PgSQL to use palloc() instead of malloc()
24 years ago
* -Allow GRANT/REVOKE to handle multiple user/group names
24 years ago
* -Allow CREATEUSER/CREATEDB ordering in CREATE/ALTER USER (Vince)
24 years ago
* ALTER
24 years ago
o ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
o ALTER TABLE ADD COLUMN to inherited table put column in wrong place
24 years ago
[inheritance]
24 years ago
o Add ALTER TABLE DROP COLUMN feature [drop]
o Add ALTER FUNCTION
o Add ALTER TABLE DROP non-CHECK CONSTRAINT
o -Add ALTER TABLE DROP CHECK CONSTRAINT (Christopher Kings-Lynne)
o ALTER TABLE ADD PRIMARY KEY (Christopher Kings-Lynne)
o ALTER TABLE ADD UNIQUE (Christopher Kings-Lynne)
24 years ago
o ALTER TABLE table ADD COLUMN column SERIAL doesn't create sequence
24 years ago
25 years ago
* CLUSTER
24 years ago
o cluster all tables at once
o prevent lose of indexes, permissions, inheritance
o Automatically keep clustering on a table
o -Keep statistics about clustering (Tom) [optimizer]
24 years ago
* COPY
24 years ago
o Allow specification of column names
o Allow dump/load of CSV format
24 years ago
* CURSOR
24 years ago
o Allow BINARY option to SELECT, like we do with DECLARE
o MOVE 0 should not move to end of cursor
o Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions
o Allow DELETE WHERE CURRENT OF cursor
24 years ago
* INSERT
24 years ago
o Allow INSERT/UPDATE of system-generated oid value for a row
o Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
o Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
o Disallow missing columns in INSERT ... VALUES, per ANSI
o Allow INSERT/UPDATE ... RETURNING new.col or old.col, handle
RULE cases (Philip)
24 years ago
* SHOW/SET
24 years ago
o Add SHOW command to display locks
o -Add SHOW command to show all settings
o -Add a global RESET command for use with connection pooling
o Add SET or BEGIN timeout parameter to cancel query
o Add SET REAL_FORMAT and SET DOUBLE_PRECISION_FORMAT using printf args
o Remove SET KSQO option now that OR processing is improved (Tom)
o Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
24 years ago
ANALYZE, and CLUSTER
24 years ago
o Add SHOW command to see locale
25 years ago
CLIENTS
24 years ago
* -Make NULL's come out at the beginning or end depending on the
ORDER BY direction (Tom)
24 years ago
* Have pg_dump use LEFT OUTER JOIN in multi-table SELECTs
25 years ago
or multiple SELECTS to avoid bad system catalog entries
24 years ago
* Allow psql \d to show foreign keys
* Allow psql \d to show temporary table structure
* Add XML interface: psql, pg_dump, COPY, separate server (?)
24 years ago
* -Fix libpq to properly handle socket failures under native MS Win32
24 years ago
* JDBC
24 years ago
o Comprehensive test suite. This may be available already.
o Updateable resultSet (must be done in backend code)
o Improved DatabaseMetaData [java]
o JDBC-standard BLOB support
o Error Codes (pending backend implementation)
o Support for binary data/bytea
26 years ago
26 years ago
REFERENTIAL INTEGRITY
* Add MATCH PARTIAL referential integrity
24 years ago
* -Check that primary key exists at foreign key definition time
25 years ago
* Add deferred trigger queue file (Jan)
25 years ago
* Allow oid to act as a foreign key
25 years ago
* Implement dirty reads and use them in RI triggers
25 years ago
* Enforce referential integrity for system tables
24 years ago
* INSERT & UPDATE/DELETE in transaction of primary key fails with
25 years ago
deferredTriggerGetPreviousEvent or "change violation" [foreign]
24 years ago
* Change foreign key constraint for array -> element to mean element
in array
24 years ago
24 years ago
DEPENDENCY CHECKING
24 years ago
24 years ago
* Add pg_depend table for dependency recording; use sysrelid, oid,
depend_sysrelid, depend_oid, name
24 years ago
* Auto-destroy sequence on DROP of table with SERIAL; perhaps a separate
24 years ago
SERIAL type
* Prevent column dropping if column is used by foreign key
* Propagate column or table renaming to foreign key constraints
24 years ago
* Automatically drop constraints/functions when object is dropped
24 years ago
* Make constraints clearer in dump file
* Make foreign keys easier to identify
24 years ago
TRANSACTIONS
* Allow autocommit so always in a transaction block
* Overhaul bufmgr/lockmgr/transaction manager
24 years ago
* Allow nested transactions / savepoints (Vadim)
24 years ago
* Handle transaction rollover (Tom) [transactions]
26 years ago
EXOTIC FEATURES
* Add sql3 recursive unions
* Add the concept of dataspaces/tablespaces [tablespaces]
24 years ago
* Allow SQL92 schemas [schema]
* Allow queries across multiple databases
24 years ago
* Add pre-parsing phase that converts non-ANSI features to supported features
24 years ago
* Allow plug-in modules to emulate features from other databases
24 years ago
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
25 years ago
to clients
24 years ago
* Allow Java server-side programming [java]
25 years ago
MISCELLANEOUS
* Increase identifier length(NAMEDATALEN) if small performance hit
24 years ago
* -Populate backend status area and write program to dump status data (Jan)
24 years ago
* -Put sort files in their own directory (Bruce)
26 years ago
* Show location of syntax error in query [yacc]
25 years ago
* Add sed-like regular expression search/replace capability
25 years ago
* Change representation of whole-tuple parameters to functions
29 years ago
24 years ago
29 years ago
PERFORMANCE
-----------
24 years ago
FSYNC
25 years ago
* Delay fsync() when other backends are about to commit too [fsync]
24 years ago
o Determine optimal commit_delay value
25 years ago
* Determine optimal fdatasync/fsync, O_SYNC/O_DSYNC options
24 years ago
o Allow multiple blocks to be written to WAL with one write()
26 years ago
CACHE
* Cache most recent query plan(s) (Karel) [prepare]
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
24 years ago
* Add free-behind capability for large sequential scans
26 years ago
25 years ago
VACUUM
* Improve speed with indexes (perhaps recreate index instead) [vacuum]
* Reduce lock time by moving tuples with read lock, then write
lock and truncate table [vacuum]
24 years ago
* -Make ANALYZE a separate command (Tom)
* -Allow ANALYZE to ESTIMATE based on certain random precentage of rows (Tom)
25 years ago
* Add LAZY VACUUM (Vadim)
24 years ago
* Improve vacuum of large objects (/contrib/vacuumlo)
25 years ago
MISCELLANEOUS
* Allow compression of log and meta data
* Do async I/O to do better read-ahead of data
24 years ago
* Experiment with multi-threaded backend [thread]
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
when it is available
25 years ago
* Use mmap() rather than SYSV shared memory(?) [mmap]
* Improve Subplan list handling
26 years ago
* Allow Subplans to use efficient joins(hash, merge) with upper variable
24 years ago
* Improve dynamic memory allocation by introducing tuple-context memory
25 years ago
allocation (Tom)
24 years ago
* Allow GUC configuration of maximum number of open files
24 years ago
* -Improve statistics storage in pg_class [performance] (Tom)
* Add connection pooling [pool]
25 years ago
* Allow persistent backends [persistent]
Update TODO list. Index: TODO =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/doc/TODO,v retrieving revision 1.311 diff -r1.311 TODO 3c3 < Last updated: Tue Jan 2 21:23:11 EST 2001 --- > Last updated: Wed Jan 3 01:56:41 EST 2001 10c10 < A dash(-) marks changes that will appear in the upcoming 7.1 release. --- > A dash (-) marks changes that will appear in the upcoming 7.1 release. 23c23 < * -Creating index of TIMESTAMP & RELTIME fails, or rename to DATETIME(Thomas) --- > * -Creating index of TIMESTAMP & RELTIME fails, or rename to DATETIME (Thomas) 35c35 < * -Views containing aggregates sometimes fail(Jan) --- > * -Views containing aggregates sometimes fail (Jan) 37,38c37,38 < duplicates(inherit) < * -Disallow LOCK on view(Mark Hollomon) --- > duplicates (inherit) > * -Disallow LOCK on view (Mark Hollomon) 58,60c58,60 < * -Add OUTER joins, left and right[outer](Tom, Thomas) < * -Allow long tuples by chaining or auto-storing outside db (TOAST)(Jan) < * Fix memory leak for expressions[memory](Tom?) --- > * -Add OUTER joins, left and right[outer] (Tom, Thomas) > * -Allow long tuples by chaining or auto-storing outside db (TOAST) (Jan) > * Fix memory leak for expressions[memory] (Tom?) 70c70 < * Allow row re-use without vacuum(Vadim) --- > * Allow row re-use without vacuum (Vadim) 74c74 < * More access control over who can create tables and use locks(Karel) --- > * More access control over who can create tables and use locks (Karel) 92c92 < o -Fix large object mapping scheme, own typeid or reltype(Peter) --- > o -Fix large object mapping scheme, own typeid or reltype (Peter) 97c97 < * Fix improper masking of some inet/cidr types [cidr] --- > * -Fix improper masking of some inet/cidr types [cidr] 113c113 < * Get BIT type working --- > * -Get BIT type working 119c119 < * Update macaddr manufacturer numbers, or remove the function macaddr_manuf() --- > * -Update macaddr manufacturer numbers, or remove the function macaddr_manuf() 147c147 < * -Add ALTER TABLE ALTER COLUMN feature(Peter E) --- > * -Add ALTER TABLE ALTER COLUMN feature (Peter E) 157c157 < * Auto-destroy sequence on DROP of table with SERIAL(Ryan) --- > * Auto-destroy sequence on DROP of table with SERIAL (Ryan) 166a167 > * Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..) 172d172 < * Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..) 176c176 < * Make NULL's come out at the beginning or end depending on the --- > * Make NULL's come out at the beginning or end depending on the 220c220 < * Certain indexes will not shrink, i.e. oid indexes with many inserts(Vadim) --- > * Certain indexes will not shrink, i.e. oid indexes with many inserts (Vadim) 226c226 < with after-row images(Vadim) [logging](Vadim) --- > with after-row images (Vadim) [logging] 232c232 < * -Redesign the function call interface to handle NULLs better[function](Tom) --- > * -Redesign the function call interface to handle NULLs better[function] (Tom) 239c239 < * Encrpyt passwords in pg_shadow table using MD5(Vince) --- > * Encrpyt passwords in pg_shadow table using MD5 (Vince) 298a299,300 > * Create a transaction processor to aid in persistent connections and > connection pooling 307c309 < * Remove SET KSQO option now that OR processing is improved(Tom) --- > * Remove SET KSQO option now that OR processing is improved (Tom)
25 years ago
* Create a transaction processor to aid in persistent connections and
connection pooling
25 years ago
* Make blind writes go through the file descriptor cache
25 years ago
* Allow logging of query durations
24 years ago
* Add hash for evaluating GROUP BY aggregates
24 years ago
* -Read pg_hba.conf only on postmaster startup or SIGHUP (Bruce)
24 years ago
* Improve spinlock code [performance]
o use SysV semaphores or queue of backends waiting on the lock
o wakeup sleeper or sleep for less than one clock tick
o spin for lock on multi-cpu machines, yield on single cpu machines
o read/write locks
24 years ago
* Add queue of backends waiting for spinlock
26 years ago
SOURCE CODE
-----------
* Add use of 'const' for variables in source tree
26 years ago
* Does Mariposa source contain any other bug fixes?
25 years ago
* Convert remaining fprintf(stderr,...)/perror() to elog()
25 years ago
* Fix problems with libpq non-blocking/async code [async]
24 years ago
* -Merge global and template BKI files (Tom)
24 years ago
* Fix username/password length limits in all areas, e.g. pg_passwd
25 years ago
* Remove compile-time upper limit on number of backends (MAXBACKENDS) (Tom)
25 years ago
* Make sure all block numbers are unsigned to increase maximum table size
24 years ago
* Use BlockNumber rather than int where appropriate
25 years ago
* Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
24 years ago
* HOLDER/HOLDERTAB rename to PROCLOCKLINK/PROCLOCKLINKTAG (Tom)
25 years ago
* Add version file format stamp to heap and other table types
25 years ago
* Make elog(LOG) in WAL its own output type, distinct from DEBUG
25 years ago
* Rename some /contrib modules from pg* to pg_*
24 years ago
* Move some things from /contrib into main tree, like soundex
25 years ago
* Remove warnings created by -Wcast-align
25 years ago
* Move platform-specific ps status display info from ps_status.c to ports
25 years ago
* Allow ps status display to work on Solaris/SVr4-based systems
24 years ago
* -Decide on spelling of indexes/indices (Peter E)
24 years ago
* Add mention of VACUUM, log rotation to Administrator's Guide
---------------------------------------------------------------------------
Developers who have claimed items are:
--------------------------------------
24 years ago
* Billy is Billy G. Allie <Bill.Allie@mug.org>
* Bruce is Bruce Momjian<pgman@candle.pha.pa.us>
* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
* Edmund is Edmund Mergl <E.Mergl@bawue.de>
* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
* Karel is Karel Zak <zakkr@zf.jcu.cz>
* Jan is Jan Wieck <wieck@sapserv.debis.de>
* Marc is Marc Fournier <scrappy@hub.org>
* Mark is Mark Hollomon <mhh@mindspring.com>
* Michael is Michael Meskes <meskes@postgresql.org>
* Oleg is Oleg Bartunov <oleg@sai.msu.su>
* Peter M is Peter T Mount <peter@retep.org.uk>
* Peter E is Peter Eisentraut<peter_e@gmx.net>
* Philip is Philip Warner <pjw@rhyme.com.au>
* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
* Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
* Thomas is Thomas Lockhart <lockhart@alumni.caltech.edu>
* Tom is Tom Lane <tgl@sss.pgh.pa.us>
24 years ago
* TomH is Tom I Helbekkmo <tih@Hamartun.Priv.no>
24 years ago
* Vadim is Vadim B. Mikheev <vadim4o@email.com>