TODO 12.9 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
Last updated:		Wed May 16 20:09:52 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
* Allow nulls in arrays
B
Bruce Momjian 已提交
68
* Allow arrays to be ORDER'ed
B
Bruce Momjian 已提交
69
* Support construction of array result values in expressions
B
Bruce Momjian 已提交
70
* Remove Money type, add money formatting for decimal type
71
* Declare typein/out functions in pg_proc with a special "C string" data type
72
* Add non-large-object binary field
B
Bruce Momjian 已提交
73
* Make binary/file in/out interface for TOAST columns
B
Bruce Momjian 已提交
74
* Functions returning sets do not totally work
B
Bruce Momjian 已提交
75
* SELECT col FROM tab WHERE numeric_col = 10.1 fails
B
Bruce Momjian 已提交
76
* Allow better handling of numeric constants, type conversion [typeconv]
B
Bruce Momjian 已提交
77 78 79 80 81 82 83 84 85
* 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()

MULTILANGUAGE SUPPORT

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

VIEWS
B
Bruce Momjian 已提交
92

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

B
Bruce Momjian 已提交
98
INDEXES
B
Bruce Momjian 已提交
99 100

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

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

COMMANDS
B
Bruce Momjian 已提交
134

B
Bruce Momjian 已提交
135
* ALTER
B
Bruce Momjian 已提交
136
	* ALTER TABLE ADD COLUMN to inherited table put column in wrong place
B
Bruce Momjian 已提交
137 138
	  [inheritance]
	* Add ALTER TABLE DROP COLUMN feature [drop]
B
Bruce Momjian 已提交
139
	* Add ALTER FUNCTION
B
Bruce Momjian 已提交
140
	* Add ALTER TABLE DROP CONSTRAINT
B
Bruce Momjian 已提交
141 142
* CLUSTER
	* cluster all tables at once
B
Bruce Momjian 已提交
143
	* prevent lose of indexes, permissions, inheritance
B
Bruce Momjian 已提交
144 145 146
	* Automatically keep clustering on a table
	* Keep statistics about clustering, perhaps during VACUUM ANALYZE
	  [optimizer]
B
Bruce Momjian 已提交
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
* 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)
B
Bruce Momjian 已提交
162
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
B
Bruce Momjian 已提交
163
* Auto-destroy sequence on DROP of table with SERIAL, perhaps with a separate
B
Bruce Momjian 已提交
164
  SERIAL type
B
Bruce Momjian 已提交
165
* Allow LOCK TABLE tab1, tab2, tab3 so all tables locked in unison [lock]
B
Bruce Momjian 已提交
166
* Allow RULE recompilation
B
Bruce Momjian 已提交
167
* Add BETWEEN ASYMMETRIC/SYMMETRIC
B
Bruce Momjian 已提交
168 169 170 171 172 173 174 175
* 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 已提交
176
	* Add SHOW command to see locale
B
Bruce Momjian 已提交
177
* Change LIMIT val,val to offset,limit to match MySQL
B
Bruce Momjian 已提交
178
* Allow Pl/PgSQL's RAISE function to take expressions
B
Bruce Momjian 已提交
179

B
Bruce Momjian 已提交
180 181
CLIENTS

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

B
Bruce Momjian 已提交
192 193 194
REFERENTIAL INTEGRITY

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

217 218 219
EXOTIC FEATURES

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

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

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

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

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

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

B
Bruce Momjian 已提交
250 251
CACHE

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

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

MISCELLANEOUS
B
Bruce Momjian 已提交
265

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

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

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


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