1 TODO list for PostgreSQL
2 ========================
3 Last updated: Sat Oct 5 15:03:41 EDT 2002
5 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
7 The most recent version of this document can be viewed at
8 the PostgreSQL web site, http://www.PostgreSQL.org.
10 A dash (-) marks changes that will appear in the upcoming 7.3 release.
12 Bracketed items "[]" have more detailed.
18 * Add replication of distributed databases [replication]
21 o master/slave replication
22 o multi-master replication
23 o partition data across servers
24 o sample implementation in contrib/rserv
25 o queries across databases or servers (two-phase commit)
26 o allow replication over unreliable or non-persistent links
27 o http://gborg.postgresql.org/project/pgreplication/projdisplay.php
28 * Point-in-time data recovery using backup and write-ahead log
34 * Allow elog() to return error codes, module name, file name, line
35 number, not just messages (Peter E)
36 * Add error codes (Peter E)
37 * Make error messages more consistent [error]
38 * -Change DEBUG startup tag to LOG (Bruce)
39 * Show location of syntax error in query [yacc]
40 * -Add getpid() function to backend
41 * -Allow logging of query durations
47 * -Improve control over user privileges, including table creation
48 * -Allow user/group names to be specified directly in pg_hba.conf (Bruce)
49 * -Add ~/.pgpass to store passwords with user/host/password combinations
50 * -Allow permissions for functions (Peter E)
51 * -Allow object creation to be disabled for specific users
58 * -Make it easier to create a database owned by someone who can't createdb,
59 perhaps CREATE DATABASE dbname WITH OWNER = "user" (Gavin)
60 * -Make equals sign optional in CREATE DATABASE WITH param = 'val'
61 * Remove unreferenced table files and temp tables during database vacuum
62 or postmaster startup (Bruce)
63 * Remove behavior of postmaster -o after making postmaster/postgres
65 * -Prevent SIGHUP and 'pg_ctl reload' from changing command line
66 specified parameters to postgresql.conf defaults (Peter E)
67 * Allow easy display of usernames in a group
68 * Allow configuration files to be specified in a different directory
69 * -Reserve last few process slots for super-user if max_connections reached
70 * -Add GUC parameter to print queries that generate errors
71 * Add start time to pg_stat_activity
77 * -Add domain capability (Rod Taylor)
78 * Add IPv6 capability to INET/CIDR types
79 * Remove Money type, add money formatting for decimal type
80 * -SELECT cash_out(2) crashes because of opaque
81 * -Declare typein/out functions in pg_proc with a special "C string" data type
82 * -Functions returning sets do not totally work
83 * Change factorial to return a numeric
84 * Change NUMERIC data type to use base 10,000 internally
85 * Change NUMERIC to enforce the maximum precision, and increase it
86 * Add function to return compressed length of TOAST data values (Tom)
87 * -Add GUC parameter for DATESTYLE
88 * Allow INET subnet tests using non-constants
89 * -Allow bytea to handle LIKE with non-TEXT patterns
90 * -to_char(0,'FM999.99') returns a period, to_char(1,'FM999.99') doesn't (Karel)
91 * Add floor(float8) and other missing functions
92 * Add now("transaction|statement|clock") functionality
95 o -Store binary-compatible type information in the system
96 o Allow better handling of numeric constants, type conversion
100 o Allow nulls in arrays
101 o Allow arrays to be ORDER'ed
102 o -Ensure we have array-eq operators for every built-in array type
103 o Support construction of array result values in expressions
106 o Improve vacuum of large objects, like /contrib/vacuumlo
107 o Add security checking for large objects
108 o Make file in/out interface for TOAST columns, similar to large object
109 interface (force out-of-line storage and no compression)
110 o Auto-delete large objects when referencing row is deleted
113 Multi-Language Support
114 ======================
116 * Add NCHAR (as distinguished from ordinary varchar),
117 * Allow LOCALE on a per-column basis, default to ASCII
118 * Support multiple simultaneous character sets, per SQL92
119 * Improve Unicode combined character handling
120 * Optimize locale to have minimal performance impact when not used (Peter E)
121 * Add octet_length_server() and octet_length_client() (Thomas, Tatsuo)
122 * Make octet_length_client the same as octet_length() (?)
123 * Prevent mismatch of frontend/backend encodings from converting bytea
124 data from being interpreted as encoded strings
125 * Remove Cyrillic recode support
131 * Automatically create rules on views so they are updateable, per SQL92 [view]
132 * Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
133 * Allow NOTIFY in rules involving conditionals
134 * Have views on temporary tables exist in the temporary namespace
135 * Move psql backslash information into views
136 * Allow RULE recompilation
137 * -Remove brackets as multi-statement rule grouping, must use parens (Bruce)
138 * Prevent aggregates from being used in rule WHERE clauses
144 * Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
145 fails index can't store constant parameters
146 * Order duplicate index entries by tid for faster heap lookups
147 * Allow inherited tables to inherit index, UNIQUE constraint, and primary
148 key, foreign key [inheritance]
149 * UNIQUE INDEX on base column not honored on inserts from inherited table
150 INSERT INTO inherit_table (unique_index_col) VALUES (dup) should fail
152 * -Allow UPDATE/DELETE on inherited table
153 * Add UNIQUE capability to non-btree indexes
154 * Add btree index support for reltime, tinterval, regproc
155 * Add rtree index support for line, lseg, path, point
156 * Certain indexes will not shrink, e.g. indexes on ever-increasing
157 columns and indexes with many duplicate keys
158 * Use indexes for min() and max() or convert to SELECT col FROM tab ORDER
159 BY col DESC LIMIT 1 if appropriate index exists and WHERE clause acceptible
160 * Allow LIKE indexing optimization for non-ASCII locales
161 * Use index to restrict rows returned by multi-key index when used with
162 non-consecutive keys or OR clauses, so fewer heap accesses
163 * Be smarter about insertion of already-ordered data into btree index
164 * -Add deleted bit to index tuples to reduce heap access
165 * Prevent index uniqueness checks when UPDATE does not modifying column
166 * Use bitmaps to fetch heap pages in sequential order [performance]
167 * Use bitmaps to combine existing indexes [performance]
168 * Improve handling of index scans for NULL
169 * Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
170 float4, numeric/decimal too [optimizer]
171 * Add FILLFACTOR to btree index creation
172 * Improve concurrency in GIST
173 * Improve concurrency of hash indexes (Neil Conway)
174 * -Test hash index performance and discourage usage
180 * -Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
181 * Add BETWEEN ASYMMETRIC/SYMMETRIC (Christopher)
182 * -Remove LIMIT #,# and force use LIMIT and OFFSET clauses in 7.3 (Bruce)
183 * Allow LIMIT/OFFSET to use expressions
184 * -Disallow TRUNCATE on tables that are involved in referential constraints
185 * -Add OR REPLACE clauses to non-FUNCTION object creation
186 * CREATE TABLE AS can not determine column lengths from expressions [atttypmod]
187 * Allow UPDATE to handle complex aggregates [update]
188 * -Prevent create/drop scripts from allowing extra args (Bruce)
189 * Allow command blocks to ignore certain types of errors
190 * Allow backslash handling in quoted strings to be disabled for portability
191 * Return proper effected tuple count from complex commands [return]
192 * Allow DELETE to handle table aliases for self-joins [delete]
193 * Add CORRESPONDING BY to UNION/INTERSECT/EXCEPT
194 * Allow REINDEX to rebuild all indexes, remove /contrib/reindex
197 o ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
198 o -Add ALTER TABLE DROP COLUMN feature
199 o -Add ALTER TABLE DROP non-CHECK CONSTRAINT
200 o -ALTER TABLE ADD PRIMARY KEY (Tom)
201 o -ALTER TABLE ADD UNIQUE (Tom)
202 o -ALTER TABLE ALTER COLUMN SET/DROP NOT NULL (Christopher)
203 o ALTER TABLE ADD COLUMN column DEFAULT should fill existing
204 rows with DEFAULT value
205 o ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence because
207 o -Have ALTER TABLE OWNER change all dependant objects like indexes
208 o Add ALTER TABLE tab SET WITHOUT OIDS
211 o -Cluster all tables at once using pg_index.indisclustered set during
213 o -Prevent loss of indexes, permissions, inheritance
214 o Automatically maintain clustering on a table
215 o Allow CLUSTER to cluster all tables, remove clusterdb
218 o -Allow specification of column names
219 o Allow dump/load of CSV format
220 o -Change syntax to WITH DELIMITER, (keep old syntax around?)
221 o Allow COPY to report error lines and continue; optionally
222 allow error codes to be specified; requires savepoints or can
223 not be run in a multi-statement transaction
224 o -Generate failure on short COPY lines rather than pad NULLs
227 o Allow BINARY option to SELECT, just like DECLARE
228 o MOVE 0 should not move to end of cursor
229 o Allow UPDATE/DELETE WHERE CURRENT OF cursor using per-cursor tid
230 stored in the backend
231 o Prevent DROP of table being referenced by our own open cursor
232 o Allow cursors outside transactions [cursor]
235 o Allow INSERT/UPDATE of system-generated oid value for a row
236 o Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
237 o -Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
238 o -Disallow missing columns in INSERT ... (col) VALUES, per ANSI
239 o Allow INSERT/UPDATE ... RETURNING new.col or old.col; handle
243 o -Add command to display locks
244 o -Add SET or BEGIN timeout parameter to cancel query
245 o Add SET REAL_FORMAT and SET DOUBLE_PRECISION_FORMAT using printf args
246 o -Remove SET KSQO option now that OR processing is improved (Bruce)
247 o Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
249 o -Add SHOW command to see locale
250 o -Allow SHOW to output as a query result, like EXPLAIN
251 o -Abort all SET changes made in an aborted transaction
253 o Allow EXPLAIN EXECUTE to see prepared plans
255 * SERVER-SIDE LANGUAGES
256 o Allow PL/PgSQL's RAISE function to take expressions
257 o -Fix PL/PgSQL to handle quoted mixed-case identifiers
258 o Change PL/PgSQL to use palloc() instead of malloc()
259 o Add untrusted version of plpython
260 o Allow Java server-side programming, http://pljava.sourceforge.net
262 o Fix problems with complex temporary table creation/destruction
263 without using PL/PgSQL EXECUTE, needs cache prevention/invalidation
264 o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
265 o Improve PL/PgSQL exception handling
266 o Allow parameters to be specified by name and type during
268 o Allow function parameters to be passed by name,
269 get_employee_salary(emp_id => 12345, tax_year => 2001)
270 o Add PL/PgSQL packages
271 o Allow array declarations and other data types in PL/PgSQl DECLARE
272 o Add PL/PgSQL PROCEDURES that can return multiple values
273 o Add table function support to pltcl, plperl, plpython
274 o Make PL/PgSQL %TYPE schema-aware
280 * -Have pg_dump use LEFT OUTER JOIN in multi-table SELECTs
281 or multiple SELECTS to avoid bad system catalog entries
282 * -Have pg_dump -C dump database location and encoding information
283 * -Allow psql \d to show foreign keys
284 * -Allow psql \d to show temporary table structure (Tom)
285 * Allow psql to show transaction status if backend protocol changes made
286 * Add XML interface: psql, pg_dump, COPY, separate server (?)
287 * -Have pg_dump use ADD PRIMARY KEY after COPY, for performance (Neil Conway)
288 * Add schema, cast, and conversion backslash commands to psql
291 o Comprehensive test suite. This may be available already.
292 o -Updateable resultSet
293 o JDBC-standard BLOB support
294 o Error Codes (pending backend implementation)
295 o Support both 'make' and 'ant'
296 o Fix LargeObject API to handle OIDs as unsigned ints
297 o -Implement cancel() method on Statement
298 o Use cursors implicitly to avoid large results (see setCursorName())
299 o -Add support for CallableStatements
300 o Add LISTEN/NOTIFY support to the JDBC driver (Barry)
301 o -Compile under jdk 1.4
304 o Implement set descriptor, using descriptor
305 o Make casts work in variable initializations
307 o Allow multi-threaded use of SQLCA
308 o Solve cardinality > 1 for input descriptors / variables
309 o Understand structure definitions outside a declare section
310 o sqlwarn[6] should be 'W' if the PRECISION or SCALE value specified
311 o Improve error handling
312 o Allow :var[:index] or :var[<integer>] as cvariable for an array var
313 o Add a semantic check level, e.g. check if a table really exists
314 o Fix nested C comments
316 o fix handling of DB attributes that are arrays
319 Referential Integrity
320 =====================
322 * Add MATCH PARTIAL referential integrity [foreign]
323 * Add deferred trigger queue file (Jan)
324 * -Allow oid to act as a foreign key
325 * Implement dirty reads and use them in RI triggers
326 * Enforce referential integrity for system tables
327 * -Allow user to control trigger firing order (Tom)
328 * -Add ALTER TRIGGER ... RENAME
329 * Change foreign key constraint for array -> element to mean element
331 * -Fix foreign key constraints to not error on intermediate db states (Stephan)
332 * Allow DEFERRABLE UNIQUE constraints
333 * Allow triggers to be disabled [trigger]
339 * -Add pg_depend table for dependency recording; use sysrelid, oid,
340 depend_sysrelid, depend_oid, name
341 * -Auto-destroy sequence on DROP of table with SERIAL; perhaps a separate
343 * -Prevent column dropping if column is used by foreign key
344 * -Propagate column or table renaming to foreign key constraints
345 * -Automatically drop constraints/functions when object is dropped
346 * -Make foreign key constraints clearer in dump file
347 * -Make other constraints clearer in dump file
348 * -Make foreign keys easier to identify
349 * Flush cached query plans when their underlying catalog data changes
350 * Use dependency information to dump data in proper order
356 * -Allow autocommit so always in a transaction block
357 * Overhaul bufmgr/lockmgr/transaction manager
358 * Allow savepoints / nested transactions [transactions]
364 * Add sql3 recursive unions
365 * Add the concept of dataspaces/tablespaces [tablespaces]
366 * -Add SQL92 schemas (Tom)
367 * Allow queries across multiple databases [crossdb]
368 * Add pre-parsing phase that converts non-ANSI features to supported features
369 * Allow plug-in modules to emulate features from other databases
370 * SQL*Net listener that makes PostgreSQL appear as an Oracle database
381 * Delay fsync() when other backends are about to commit too [fsync]
382 o Determine optimal commit_delay value
383 * Determine optimal fdatasync/fsync, O_SYNC/O_DSYNC options
384 o Allow multiple blocks to be written to WAL with one write()
389 * -Cache most recent query plan(s) (Neil) [prepare]
390 * Shared catalog cache, reduce lseek()'s by caching table size in shared area
391 * Add free-behind capability for large sequential scans (Bruce)
392 * Allow binding query args over FE/BE protocol
393 * Consider use of open/fcntl(O_DIRECT) to minimize OS caching
394 * Make blind writes go through the file descriptor cache
400 * Improve speed with indexes (perhaps recreate index instead) [vacuum]
401 * Reduce lock time by moving tuples with read lock, then write
402 lock and truncate table [vacuum]
403 * Provide automatic running of vacuum in the background (Tom) [vacuum]
404 * Allow free space map to be auto-sized or warn when it is too small
410 * Make locking of shared data structures more fine-grained
411 * Add code to detect an SMP machine and handle spinlocks accordingly
412 from distributted.net, http://www1.distributed.net/source,
413 in client/common/cpucheck.cpp
414 * Research use of sched_yield() for spinlock acquisition failure
420 * Experiment with multi-threaded backend [thread]
421 * Add connection pooling [pool]
422 * Allow persistent backends [persistent]
423 * Create a transaction processor to aid in persistent connections and
425 * Do listen() in postmaster and accept() in pre-forked backend
426 * Have pre-forked backend pre-connect to last requested database or pass
427 file descriptor to backend pre-forked for matching database
428 * -Cache system catalog information in per-database files (Tom)
434 * Have after-change WAL write()'s write only modified data to kernel
435 * Reduce number of after-change WAL writes; they exist only to gaurd against
436 partial page writes [wal]
437 * Turn off after-change writes if fsync is disabled (?)
438 * Add WAL index reliability improvement to non-btree indexes
439 * -Reorder postgresql.conf WAL items in order of importance (Bruce)
440 * -Remove wal_files postgresql.conf option because WAL files are now recycled
441 * Find proper defaults for postgresql.conf WAL entries
442 * Add checkpoint_min_warning postgresql.conf option to warn about checkpoints
443 that are too frequent
444 * Allow xlog directory location to be specified during initdb, perhaps
446 * Allow pg_xlog to be moved without symlinks
452 * Improve Subplan list handling
453 * Allow Subplans to use efficient joins(hash, merge) with upper variable
454 * -Improve dynamic memory allocation by introducing tuple-context memory
456 * Add hash for evaluating GROUP BY aggregates
457 * -Nested FULL OUTER JOINs don't work (Tom)
458 * Allow merge and hash joins on expressions not just simple variables (Tom)
459 * -Add new pg_proc cachable settings to specify whether function can be
460 evaluated only once or once per query
461 * -Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
462 * Make IN/NOT IN have similar performance to EXISTS/NOT EXISTS [exists]
463 * Missing optimizer selectivities for date, r-tree, etc. [optimizer]
464 * Allow ORDER BY ... LIMIT to select top values without sort or index
465 using a sequential scan for highest/lowest values (Oleg)
466 * Inline simple SQL functions to avoid overhead (Tom)
467 * Precompile SQL functions to avoid overhead (Neil Conway)
468 * Add utility to compute accurate random_page_cost value
469 * Improve ability to display optimizer analysis using OPTIMIZER_DEBUG
470 * Use CHECK constraints to improve optimizer decisions
471 * Check GUC geqo_threshold to see if it is still accurate
472 * Allow sorting, temp files, temp tables to use multiple work directories
478 * Do async I/O for faster random read-ahead of data
479 * Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
481 * Use mmap() rather than SYSV shared memory or to write WAL files (?) [mmap]
482 * Improve caching of attribute offsets when NULLs exist in the row
483 * -Add Intimate Shared Memory(ISM) for Solaris
484 * -Use faster flex flags for performance improvement (Peter E)
485 * -Add BSD-licensed qsort() for Solaris
491 * Add use of 'const' for variables in source tree
492 * -Fix problems with libpq non-blocking/async code
493 * -Make sure all block numbers are unsigned to increase maximum table size
494 * -Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
495 * -HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG (Bruce)
496 * -Remove LockMethodTable.prio field, not used (Bruce)
497 * Rename some /contrib modules from pg* to pg_*
498 * Move some things from /contrib into main tree
499 * Remove warnings created by -Wcast-align
500 * Move platform-specific ps status display info from ps_status.c to ports
501 * -Make one version of simple_prompt() in code (Bruce, Tom)
502 * -Compile in syslog functionaility by default (Tatsuo)
503 * Modify regression tests to prevent failures do to minor numeric rounding
504 * Add OpenBSD's getpeereid() call for local socket authentication (Bruce)
505 * Improve access-permissions check on data directory in Cygwin (Tom)
506 * -Report failure to find readline or zlib at end of configure run
507 * Add --port flag to regression tests
508 * -Increase identifier length (NAMEDATALEN) if small performance hit,
509 * -Increase maximum number of function parameters if little wasted space
510 * Add documentation for perl, including mention of DBI/DBD perl location
511 * Add optional CRC checksum to heap and index pages
512 * Change representation of whole-tuple parameters to functions
513 * Clarify use of 'application' and 'command' tags in SGML docs
514 * Better document ability to build only certain interfaces (Marc)
515 * Remove or relicense modules that are not under the BSD license, if possible
516 * Remove memory/file descriptor freeing befor elog(ERROR) (Bruce)
517 * Create native Win32 port [win32]
518 * Fix glibc's mktime() to handle pre-1970's dates
521 ---------------------------------------------------------------------------
524 Developers who have claimed items are:
525 --------------------------------------
526 * Barry is Barry Lind <barry@xythos.com>
527 * Billy is Billy G. Allie <Bill.Allie@mug.org>
528 * Bruce is Bruce Momjian <pgman@candle.pha.pa.us>
529 * Christopher is Christopher Kings-Lynne <chriskl@familyhealth.com.au>
530 * D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
531 * Dave is Dave Cramer <dave@fastcrypt.com>
532 * Edmund is Edmund Mergl <E.Mergl@bawue.de>
533 * Gavin Sherry <swm@linuxworld.com.au>
534 * Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
535 * Karel is Karel Zak <zakkr@zf.jcu.cz>
536 * Jan is Jan Wieck <wieck@sapserv.debis.de>
537 * Liam is Liam Stewart <liams@redhat.com>
538 * Marc is Marc Fournier <scrappy@hub.org>
539 * Mark is Mark Hollomon <mhh@mindspring.com>
540 * Marko is Marko Kreen <marko@l-t.ee>
541 * Michael is Michael Meskes <meskes@postgresql.org>
542 * Neil is Neil Conway <nconway@klamath.dyndns.org>
543 * Oleg is Oleg Bartunov <oleg@sai.msu.su>
544 * Peter M is Peter T Mount <peter@retep.org.uk>
545 * Peter E is Peter Eisentraut <peter_e@gmx.net>
546 * Philip is Philip Warner <pjw@rhyme.com.au>
547 * Rod is Rod Taylor <rbt@zort.ca>
548 * Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
549 * Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
550 * Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
551 * Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
552 * Thomas is Thomas Lockhart <lockhart@fourpalms.org>
553 * Tom is Tom Lane <tgl@sss.pgh.pa.us>
554 * TomH is Tom I Helbekkmo <tih@Hamartun.Priv.no>
555 * Vadim is Vadim B. Mikheev <vadim4o@email.com>