TODO 13.0 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
Last updated:		Thu May 17 18:06:54 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 21

PARSER

* SELECT pg_class FROM pg_class generates strange error
B
Bruce Momjian 已提交
22 23
* ALTER TABLE ADD COLUMN does not honor DEFAULT or add CONSTRAINT
* UNIQUE INDEX on base column not honored on inserts from inherited table
B
Bruce Momjian 已提交
24
  INSERT INTO inherit_table (unique_index_col) VALUES (dup) should fail
B
Bruce Momjian 已提交
25
  [inheritance]
B
Bruce Momjian 已提交
26

B
Bruce Momjian 已提交
27 28 29
MISC

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

M
Marc G. Fournier 已提交
31 32
ENHANCEMENTS
------------
B
Bruce Momjian 已提交
33 34 35

URGENT

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

B
Bruce Momjian 已提交
47 48
ADMIN

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

B
Bruce Momjian 已提交
61 62
TYPES

B
Bruce Momjian 已提交
63
* Add domain capability
B
Bruce Momjian 已提交
64
* Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
65
* Add conversion function from text to inet
B
Bruce Momjian 已提交
66
* Store binary-compatible type information in the system
B
Bruce Momjian 已提交
67
* Support construction of array result values in expressions
B
Bruce Momjian 已提交
68
* Remove Money type, add money formatting for decimal type
69
* Declare typein/out functions in pg_proc with a special "C string" data type
70
* Add non-large-object binary field
B
Bruce Momjian 已提交
71
* Make binary/file in/out interface for TOAST columns
B
Bruce Momjian 已提交
72
* Functions returning sets do not totally work
B
Bruce Momjian 已提交
73
* SELECT col FROM tab WHERE numeric_col = 10.1 fails
B
Bruce Momjian 已提交
74
* Allow better handling of numeric constants, type conversion [typeconv]
B
Bruce Momjian 已提交
75 76 77 78
* 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()
79 80 81 82
* ARRAYS
	* Allow nulls in arrays
	* Allow arrays to be ORDER'ed
	* fix array handling in ECPG
B
Bruce Momjian 已提交
83 84 85

MULTILANGUAGE SUPPORT

86
* Add NCHAR (as distinguished from ordinary varchar),
B
Bruce Momjian 已提交
87
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
88
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
89 90 91
* 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 已提交
92 93

VIEWS
B
Bruce Momjian 已提交
94

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

B
Bruce Momjian 已提交
100
INDEXES
B
Bruce Momjian 已提交
101 102

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

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 已提交
133
* -Remove unused pg_variable, pg_inheritproc, pg_ipl tables
B
Bruce Momjian 已提交
134 135

COMMANDS
B
Bruce Momjian 已提交
136

137 138 139 140 141 142 143 144
* 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
* 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 173 174 175 176 177 178 179
* COPY
	* Update reltuples in 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
	* 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

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

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


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