TODO 13.0 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
Last updated:		Tue May 22 08:10:27 EDT 2001
M
Marc G. Fournier 已提交
4

B
Bruce Momjian 已提交
5
Current maintainer:	Bruce Momjian (pgman@candle.pha.pa.us)
M
Marc G. Fournier 已提交
6

B
Bruce Momjian 已提交
7
The most recent version of this document can be viewed at
B
Bruce Momjian 已提交
8
the PostgreSQL web site, http://www.PostgreSQL.org.
B
Bruce Momjian 已提交
9

B
Bruce Momjian 已提交
10
A dash (-) marks changes that will appear in the upcoming 7.2 release.
B
Bruce Momjian 已提交
11

B
Bruce Momjian 已提交
12 13
Bracketed items "[]" have more detailed information at
http://www.postgresql.org/docs/todo.html.
B
Bruce Momjian 已提交
14

B
Bruce Momjian 已提交
15

M
Marc G. Fournier 已提交
16 17
RELIABILITY
-----------
B
Bruce Momjian 已提交
18 19 20

PARSER

B
Bruce Momjian 已提交
21
* -SELECT pg_class FROM pg_class generates strange error
B
Bruce Momjian 已提交
22
* ALTER TABLE ADD COLUMN does not honor DEFAULT or add CONSTRAINT
B
Bruce Momjian 已提交
23

B
Bruce Momjian 已提交
24 25 26
MISC

* Plpgsql does not handle quoted mixed-case identifiers
B
Bruce Momjian 已提交
27

M
Marc G. Fournier 已提交
28 29
ENHANCEMENTS
------------
B
Bruce Momjian 已提交
30 31 32

URGENT

B
Bruce Momjian 已提交
33
* Add replication of distributed databases [replication]
B
Bruce Momjian 已提交
34
	o automatic failover
B
Bruce Momjian 已提交
35 36 37 38 39 40 41
	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
B
Bruce Momjian 已提交
42
* Allow row re-use without vacuum (Vadim)
B
Bruce Momjian 已提交
43

B
Bruce Momjian 已提交
44 45
ADMIN

B
Bruce Momjian 已提交
46
* Improve control over user privileges, including table creation and
B
Bruce Momjian 已提交
47
  lock use [privileges] (Karel, others)
B
Bruce Momjian 已提交
48
* Permission to DELETE table also allows UPDATE
B
Bruce Momjian 已提交
49
* Allow elog() to return error codes, module name, file name, line
B
Bruce Momjian 已提交
50
  number, not just messages (Peter E) [elog]
B
Bruce Momjian 已提交
51
* Allow international error message support and add error codes [elog]
B
Bruce Momjian 已提交
52
* Remove unused files during database vacuum or postmaster startup
B
Bruce Momjian 已提交
53
* Add table name mapping for numeric file names
B
Bruce Momjian 已提交
54
* Overhaul pg_hba.conf host-based authentication
B
Bruce Momjian 已提交
55
* Incremental backups
B
Bruce Momjian 已提交
56

B
Bruce Momjian 已提交
57 58
TYPES

B
Bruce Momjian 已提交
59
* Add domain capability
B
Bruce Momjian 已提交
60
* Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
61
* Add conversion function from text to inet
B
Bruce Momjian 已提交
62
* Store binary-compatible type information in the system
B
Bruce Momjian 已提交
63
* Support construction of array result values in expressions
B
Bruce Momjian 已提交
64
* Remove Money type, add money formatting for decimal type
65
* Declare typein/out functions in pg_proc with a special "C string" data type
66
* Add non-large-object binary field
B
Bruce Momjian 已提交
67
* Make binary/file in/out interface for TOAST columns
B
Bruce Momjian 已提交
68
* Functions returning sets do not totally work
B
Bruce Momjian 已提交
69
* SELECT col FROM tab WHERE numeric_col = 10.1 fails
B
Bruce Momjian 已提交
70
* Allow better handling of numeric constants, type conversion [typeconv]
B
Bruce Momjian 已提交
71 72 73 74
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
* SELECT cash_out(2) crashes because of opaque
* Add SQL standard function bit_length()
* Make oid use unsigned int more reliably, pg_atoi()
75 76 77 78
* ARRAYS
	* Allow nulls in arrays
	* Allow arrays to be ORDER'ed
	* fix array handling in ECPG
B
Bruce Momjian 已提交
79 80 81

MULTILANGUAGE SUPPORT

82
* Add NCHAR (as distinguished from ordinary varchar),
B
Bruce Momjian 已提交
83
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
84
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
85 86 87
* Reject character sequences those are not valid in their charset
* Make functions more multi-byte aware, i.e. trim()
* Make n of CHAR(n)/VARCHAR(n) the number of letters, not bytes
B
Bruce Momjian 已提交
88 89

VIEWS
B
Bruce Momjian 已提交
90

B
Bruce Momjian 已提交
91
* Automatically create rules on views so they are updateable, per SQL92
B
Bruce Momjian 已提交
92
* Add the functionality for "with check option" clause of create view
B
Bruce Momjian 已提交
93
* Allow NOTIFY in rules involving conditionals
B
Bruce Momjian 已提交
94
* Evaluate INSERT rules at end of query, rather than beginning
B
Bruce Momjian 已提交
95

B
Bruce Momjian 已提交
96
INDEXES
B
Bruce Momjian 已提交
97 98

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
99
  fails index can't store constant parameters
B
Bruce Momjian 已提交
100
* Add FILLFACTOR to index creation
B
Bruce Momjian 已提交
101
* Re-enable partial indexes
B
Bruce Momjian 已提交
102
* Allow inherited tables to inherit index, UNIQUE constraint, and primary key
B
Bruce Momjian 已提交
103
  [inheritance]
B
Bruce Momjian 已提交
104 105 106
* UNIQUE INDEX on base column not honored on inserts from inherited table
  INSERT INTO inherit_table (unique_index_col) VALUES (dup) should fail
  [inheritance]
B
Bruce Momjian 已提交
107 108
* Prevent pg_attribute from having duplicate oids for indexes (Tom)
* Add UNIQUE capability to non-btree indexes
B
Bruce Momjian 已提交
109
* Certain indexes will not shrink, e.g. oid indexes with many inserts (Vadim)
B
Bruce Momjian 已提交
110
* Have UPDATE/DELETE clean out indexes
B
Bruce Momjian 已提交
111 112
* Add btree index support for reltime, tinterval, regproc
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
113 114 115
* 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
116
* Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
B
Bruce Momjian 已提交
117 118 119 120
  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
121
* -Gather more accurate dispersion statistics using indexes
B
Bruce Momjian 已提交
122 123
* Add deleted bit to index tuples to reduce heap access
* Prevent index uniqueness checks when UPDATE does not modifying column
B
Bruce Momjian 已提交
124 125 126 127 128 129 130 131

SYSTEM TABLES

* Add unique indexes to pg_shadow.usename and pg_shadow.usesysid or
  switch to pg_shadow.oid as user id
* Add unique indexes on pg_database
* Check all system tables and add unique indexes as needed
* Remove pg_listener index
B
Bruce Momjian 已提交
132
* -Remove unused pg_variable, pg_inheritproc, pg_ipl tables
B
Bruce Momjian 已提交
133
* Add pg_depend table to track object dependencies
B
Bruce Momjian 已提交
134 135

COMMANDS
B
Bruce Momjian 已提交
136

137 138 139 140 141 142 143
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
* Auto-destroy sequence on DROP of table with SERIAL, perhaps with a separate
  SERIAL type
* 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
B
Bruce Momjian 已提交
144
* Allow PL/PgSQL's RAISE function to take expressions
B
Bruce Momjian 已提交
145
* ALTER
B
Bruce Momjian 已提交
146
	* ALTER TABLE ADD COLUMN to inherited table put column in wrong place
B
Bruce Momjian 已提交
147 148
	  [inheritance]
	* Add ALTER TABLE DROP COLUMN feature [drop]
B
Bruce Momjian 已提交
149
	* Add ALTER FUNCTION
B
Bruce Momjian 已提交
150
	* Add ALTER TABLE DROP CONSTRAINT
B
Bruce Momjian 已提交
151 152
* CLUSTER
	* cluster all tables at once
B
Bruce Momjian 已提交
153
	* prevent lose of indexes, permissions, inheritance
B
Bruce Momjian 已提交
154 155 156
	* Automatically keep clustering on a table
	* Keep statistics about clustering, perhaps during VACUUM ANALYZE
	  [optimizer]
B
Bruce Momjian 已提交
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
* COPY
	* Allow specification of column names
	* Allow dump/load of CSV format
* CURSOR
	* Allow BINARY option to SELECT, like we do with DECLARE
	* MOVE 0 should not move to end of cursor
	* Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions
	* Allow DELETE WHERE CURRENT OF cursor
* INSERT
	* Allow INSERT/UPDATE of system-generated oid value for a row
	* Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
	* Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
	* Disallow missing columns in INSERT ... VALUES, per ANSI
	* Allow INSERT/UPDATE ... RETURNING new.col or old.col (Philip)
* SHOW/SET
	* Add SHOW command to display locks
B
Bruce Momjian 已提交
173
	* Add SHOW command to show all settings
B
Bruce Momjian 已提交
174 175 176 177 178 179
	* Add a global RESET command for use with connection pooling
	* Add SET or BEGIN timeout parameter to cancel query if waiting too long
	* Add SET REAL_FORMAT and SET DOUBLE_PRECISION_FORMAT using printf args
	* Remove SET KSQO option now that OR processing is improved (Tom)
	* Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
	  ANALYZE, and CLUSTER
B
Bruce Momjian 已提交
180
	* Add SHOW command to see locale
B
Bruce Momjian 已提交
181

B
Bruce Momjian 已提交
182 183
CLIENTS

B
Bruce Momjian 已提交
184
* Make NULL's come out at the beginning or end depending on the
B
Bruce Momjian 已提交
185
  ORDER BY direction
B
Bruce Momjian 已提交
186 187
* have pg_dump use LEFT OUTER JOIN in multi-table SELECTs
  or multiple SELECTS to avoid bad system catalog entries
B
Bruce Momjian 已提交
188
* allow psql \d to show primary and foreign keys
B
Bruce Momjian 已提交
189
* allow psql \d to show temporary table structure
B
Bruce Momjian 已提交
190
* add XML interface capability
B
Bruce Momjian 已提交
191
* Remove <=6.3 version compatibility in ODBC?
B
Bruce Momjian 已提交
192

B
Bruce Momjian 已提交
193 194 195
REFERENTIAL INTEGRITY

* Add MATCH PARTIAL referential integrity
B
Bruce Momjian 已提交
196
* -Check that primary key exists at foreign key definition time
B
Bruce Momjian 已提交
197 198
* Prevent column dropping if column is used by foreign key
* Propagate column or table renaming to foreign key constraints
B
Bruce Momjian 已提交
199
* Add deferred trigger queue file (Jan)
B
Bruce Momjian 已提交
200
* Allow oid to act as a foreign key
B
Bruce Momjian 已提交
201
* Implement dirty reads and use them in RI triggers
B
Bruce Momjian 已提交
202
* Enforce referential integrity for system tables
B
Bruce Momjian 已提交
203
* INSERT & UPDATE/DELETE in transaction of primary key fails with
B
Bruce Momjian 已提交
204
  deferredTriggerGetPreviousEvent or "change violation" [foreign]
B
Bruce Momjian 已提交
205
* Make constraints clearer in dump file
B
Bruce Momjian 已提交
206 207
* Change foreign key constraint for array -> element to mean element
   in array
B
Bruce Momjian 已提交
208 209 210 211 212 213 214 215 216
* Automatically drop constraints/functions when object is dropped

TRANSACTIONS

* Implement UNDO using transaction log
* Allow autocommit so always in a transaction block
* Overhaul bufmgr/lockmgr/transaction manager
* Allow nested transactions (Vadim)
* Handle transaction rollover [transactions]
B
Bruce Momjian 已提交
217

218 219 220
EXOTIC FEATURES

* Add sql3 recursive unions
B
Bruce Momjian 已提交
221
* Add the concept of dataspaces/tablespaces [tablespaces]
B
Bruce Momjian 已提交
222
* Allow SQL92 schemas (Tom)
223
* Allow queries across multiple databases
B
Bruce Momjian 已提交
224
* Add pre-parsing phase that converts non-ANSI features to supported features
B
Bruce Momjian 已提交
225
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
B
Bruce Momjian 已提交
226
  to clients
227

B
Bruce Momjian 已提交
228
MISCELLANEOUS
B
Bruce Momjian 已提交
229

B
Bruce Momjian 已提交
230
* Increase identifier length(NAMEDATALEN) if small performance hit
B
Bruce Momjian 已提交
231 232
* Create a background process for each database that runs while
  database is idle, finding superceeded rows, gathering stats and vacuuming
B
Bruce Momjian 已提交
233
* Populate backend status area and write program to dump status data
B
Bruce Momjian 已提交
234
* Put sort files in their own directory
B
Bruce Momjian 已提交
235
* Show location of syntax error in query [yacc]
B
Bruce Momjian 已提交
236
* Encrpyt passwords in pg_shadow table using MD5 (Vince)
B
Bruce Momjian 已提交
237
* Allow Java server-side programming [java]
B
Bruce Momjian 已提交
238
* Add sed-like regular expression search/replace capability
B
Bruce Momjian 已提交
239
* Change representation of whole-tuple parameters to functions
B
Bruce Momjian 已提交
240 241 242

PERFORMANCE
-----------
B
Bruce Momjian 已提交
243

B
Bruce Momjian 已提交
244
FSYNC
B
Bruce Momjian 已提交
245

B
Bruce Momjian 已提交
246
* Delay fsync() when other backends are about to commit too [fsync]
B
Bruce Momjian 已提交
247
	* Determine optimal commit_delay value
B
Bruce Momjian 已提交
248
* Determine optimal fdatasync/fsync, O_SYNC/O_DSYNC options
B
Bruce Momjian 已提交
249
	* Allow multiple blocks to be written to WAL with one write()
B
Bruce Momjian 已提交
250

B
Bruce Momjian 已提交
251 252
CACHE

B
Bruce Momjian 已提交
253
* Cache most recent query plan(s) (Karel) [prepare]
B
Bruce Momjian 已提交
254
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
B
Bruce Momjian 已提交
255

B
Bruce Momjian 已提交
256 257 258 259 260
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]
B
Bruce Momjian 已提交
261 262
* -Make ANALYZE a separate command
* -Allow ANALYZE to ESTIMATE based on certain random precentage of rows
B
Bruce Momjian 已提交
263 264 265
* Add LAZY VACUUM (Vadim)

MISCELLANEOUS
B
Bruce Momjian 已提交
266

B
Bruce Momjian 已提交
267
* Allow compression of log and meta data
B
Bruce Momjian 已提交
268
* Do async I/O to do better read-ahead of data
B
Bruce Momjian 已提交
269
* Experiment with multi-threaded backend [thread]
B
Bruce Momjian 已提交
270
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
B
Bruce Momjian 已提交
271
  when it is available
B
Bruce Momjian 已提交
272
* Use mmap() rather than SYSV shared memory(?) [mmap]
B
Bruce Momjian 已提交
273
* Improve Subplan list handling
B
Bruce Momjian 已提交
274
* Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Bruce Momjian 已提交
275
* improve dynamic memory allocation by introducing tuple-context memory
B
Bruce Momjian 已提交
276
  allocation (Tom)
B
Bruce Momjian 已提交
277
* allow configuration of maximum number of open files
B
Bruce Momjian 已提交
278
* -Improve statistics storage in pg_class [performance]
B
Bruce Momjian 已提交
279
* Add connection pooling [pool]
B
Bruce Momjian 已提交
280
* Allow persistent backends [persistent]
B
Bruce Momjian 已提交
281 282
* Create a transaction processor to aid in persistent connections and
  connection pooling
B
Bruce Momjian 已提交
283
* Make blind writes go through the file descriptor cache
B
Bruce Momjian 已提交
284
* Allow logging of query durations
B
Bruce Momjian 已提交
285
* Add hash-based aggregates
B
Bruce Momjian 已提交
286

B
Bruce Momjian 已提交
287 288
SOURCE CODE
-----------
B
Bruce Momjian 已提交
289
* Add use of 'const' for variables in source tree
B
Bruce Momjian 已提交
290
* Does Mariposa source contain any other bug fixes?
B
Bruce Momjian 已提交
291
* Convert remaining fprintf(stderr,...)/perror() to elog()
B
Bruce Momjian 已提交
292
* Fix problems with libpq non-blocking/async code [async]
B
Bruce Momjian 已提交
293
* Merge global and template BKI files (Peter E)
B
Bruce Momjian 已提交
294
* Fix username/password length limits in all areas
B
Bruce Momjian 已提交
295
* Remove compile-time upper limit on number of backends (MAXBACKENDS) (Tom)
B
Bruce Momjian 已提交
296
* Make sure all block numbers are unsigned to increase maximum table size
B
Bruce Momjian 已提交
297
* Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
B
Bruce Momjian 已提交
298
* HOLDER/HOLDERTAB reanme to PROCLOCKLINK/PROCLOCKLINKTAG (Tom)
B
Bruce Momjian 已提交
299
* Add version file format stamp to heap and other table types
B
Bruce Momjian 已提交
300
* Make elog(LOG) in WAL its own output type, distinct from DEBUG
B
Bruce Momjian 已提交
301
* Rename some /contrib modules from pg* to pg_*
B
Bruce Momjian 已提交
302 303
* Move some things from /contrib into main tree, like soundex
* Allow plug-in modules to emulate features from other databases
B
Bruce Momjian 已提交
304
* Remove warnings created by -Wcast-align
B
Bruce Momjian 已提交
305
* Move platform-specific ps status display info from ps_status.c to ports
B
Bruce Momjian 已提交
306
* Allow ps status display to work on Solaris/SVr4-based systems
B
Bruce Momjian 已提交
307
* -Decide on spelling of indexes/indices
B
Bruce Momjian 已提交
308
* Add mention of VACUUM, log rotation to Administrator's Guide
B
Bruce Momjian 已提交
309
* Use BlockNumber rather than int where appropriate
310

B
Bruce Momjian 已提交
311 312 313 314 315 316
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
	* Billy is Billy G. Allie <Bill.Allie@mug.org>
B
Bruce Momjian 已提交
317
	* Bruce is Bruce Momjian<pgman@candle.pha.pa.us>
B
Bruce Momjian 已提交
318 319
	* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
	* Edmund is Edmund Mergl <E.Mergl@bawue.de>
B
Bruce Momjian 已提交
320 321
	* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
	* Karel is Karel Zak <zakkr@zf.jcu.cz>
B
Bruce Momjian 已提交
322
	* Jan is Jan Wieck <wieck@sapserv.debis.de>
B
Bruce Momjian 已提交
323
	* Marc is Marc Fournier <scrappy@hub.org>
B
Bruce Momjian 已提交
324
	* Mark is Mark Hollomon <mhh@mindspring.com>
B
Bruce Momjian 已提交
325 326
	* Michael is Michael Meskes <meskes@postgresql.org>
	* Oleg is Oleg Bartunov <oleg@sai.msu.su>
B
Bruce Momjian 已提交
327
	* Peter M is Peter T Mount <peter@retep.org.uk>
B
Bruce Momjian 已提交
328
	* Peter E is Peter Eisentraut<peter_e@gmx.net>
B
Bruce Momjian 已提交
329
	* Philip is Philip Warner <pjw@rhyme.com.au>
B
Bruce Momjian 已提交
330
	* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
B
Bruce Momjian 已提交
331
	* Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
B
Bruce Momjian 已提交
332
	* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
B
Bruce Momjian 已提交
333 334
	* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
	* Thomas is Thomas Lockhart <lockhart@alumni.caltech.edu>
B
Bruce Momjian 已提交
335
	* Tom is Tom Lane <tgl@sss.pgh.pa.us>
B
Bruce Momjian 已提交
336
	* TomH is Tom I Helbekkmo <tih@Hamartun.Priv.NO>
B
Bruce Momjian 已提交
337
	* Vadim is Vadim B. Mikheev <vadim4o@email.com>