TODO 12.4 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
Last updated:		Thu Apr 19 11:21:49 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
* Alter TABLE ADD COLUMN does not honor DEFAULT, add CONSTRAINT
B
Bruce Momjian 已提交
23 24
* Unique index on base column not honored on inserts from inherited table
  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
* Permission to DELETE table allows UPDATE also
B
Bruce Momjian 已提交
31
* SELECT cash_out(1) causes crash
B
Bruce Momjian 已提交
32

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

URGENT

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

B
Bruce Momjian 已提交
49 50
ADMIN

B
Bruce Momjian 已提交
51
* More access control over who can create tables and use locks (Karel)
B
Bruce Momjian 已提交
52
* Allow elog() to return error codes, module name, file name, line
B
Bruce Momjian 已提交
53 54
  number, not just messages [elog]
* Allow international error message support and add error codes [elog]
B
Bruce Momjian 已提交
55
* Remove unused files during database vacuum or postmaster startup
B
Bruce Momjian 已提交
56

B
Bruce Momjian 已提交
57 58
TYPES

B
Bruce Momjian 已提交
59 60 61
* Nchar (as distinguished from ordinary varchar),
* Domain capability
* Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
62
* Add conversion function from text to inet
B
Bruce Momjian 已提交
63 64
* Make a separate SERIAL type?
* Store binary-compatible type information in the system
B
Bruce Momjian 已提交
65
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
66
* Add SHOW command to see locale
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 71
* Change foreign key constraint for array -> element to mean element
   in array
B
Bruce Momjian 已提交
72
* Remove Money type, add money formatting for decimal type
73
* Declare typein/out functions in pg_proc with a special "C string" data type
74
* Add non-large-object binary field
B
Bruce Momjian 已提交
75
* Functions returning sets do not totally work
B
Bruce Momjian 已提交
76
* SELECT col FROM tab WHERE numeric_col = 10.1 fails
B
Bruce Momjian 已提交
77
* Allow better handling of numeric constants, type conversion [typeconv]
B
Bruce Momjian 已提交
78
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
79 80 81
* 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 已提交
82
* Add btree index support for reltime, tinterval, regproc
B
Bruce Momjian 已提交
83
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
84
* Make binary/file in/out interface for TOAST columns
B
Bruce Momjian 已提交
85
* SELECT cash_out(2) crashes because of opaque
B
Bruce Momjian 已提交
86
* Add SQL standard function bit_length()
B
Bruce Momjian 已提交
87 88
* Make oid use unsigned int more reliably, pg_atoi()
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
B
Bruce Momjian 已提交
89 90

VIEWS
B
Bruce Momjian 已提交
91

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

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

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
100
  fails index can't store constant parameters
B
Bruce Momjian 已提交
101
* Add FILLFACTOR to index creation
B
Bruce Momjian 已提交
102
* Re-enable partial indexes
B
Bruce Momjian 已提交
103
* Allow inherited tables to inherit index, UNIQUE constraint, and primary key
B
Bruce Momjian 已提交
104
  [inheritance]
B
Bruce Momjian 已提交
105 106 107 108
* Prevent pg_attribute from having duplicate oids for indexes (Tom)
* Add UNIQUE capability to non-btree indexes
* Certain indexes will not shrink, i.e. oid indexes with many inserts (Vadim)
* Have UPDATE/DELETE clean out indexes
B
Bruce Momjian 已提交
109 110

COMMANDS
B
Bruce Momjian 已提交
111

B
Bruce Momjian 已提交
112 113
* ALTER TABLE ADD COLUMN to inherited table put column in wrong place 
  [inheritance]
B
Bruce Momjian 已提交
114
* Add ALTER TABLE DROP COLUMN feature [drop]
B
Bruce Momjian 已提交
115 116 117
* Add ALTER FUNCTION 
* Add ALTER TABLE ... DROP CONSTRAINT
* Automatically drop constraints/functions when object is dropped
B
Bruce Momjian 已提交
118 119
* CLUSTER
	* cluster all tables at once
B
Bruce Momjian 已提交
120
	* prent lose of indexes, permissions, inheritance
B
Bruce Momjian 已提交
121 122 123
	* Automatically keep clustering on a table
	* Keep statistics about clustering, perhaps during VACUUM ANALYZE
	  [optimizer]
B
Bruce Momjian 已提交
124
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
B
Bruce Momjian 已提交
125
* Auto-destroy sequence on DROP of table with SERIAL (Ryan)
B
Bruce Momjian 已提交
126
* Allow LOCK TABLE tab1, tab2, tab3 so all tables locked in unison [lock]
B
Bruce Momjian 已提交
127
* Allow INSERT/UPDATE of system-generated oid value for a row
B
Bruce Momjian 已提交
128 129
* Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
* Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
B
Bruce Momjian 已提交
130
* Allow RULE recompilation
B
Bruce Momjian 已提交
131
* Allow BINARY option to SELECT, like we do with DECLARE
B
Bruce Momjian 已提交
132
* MOVE 0 should not move to end of cursor
B
Bruce Momjian 已提交
133
* Overhaul ACL (access control) code
B
Bruce Momjian 已提交
134
* Add SHOW command to display locks
B
Bruce Momjian 已提交
135 136
* Bring INSERT ... VALUES up to full SQL92 spec, disallow missing
  columns, allow DEFAULT
B
Bruce Momjian 已提交
137 138
* Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions
* Allow DELETE WHERE CURRENT OF cursor
B
Bruce Momjian 已提交
139
* Add BETWEEN ASYMMETRIC/SYMMETRIC
B
Bruce Momjian 已提交
140
* Add SET or BEGIN timeout parameter to cancel query if waiting too long
B
Bruce Momjian 已提交
141

B
Bruce Momjian 已提交
142 143
CLIENTS

B
Bruce Momjian 已提交
144
* Make NULL's come out at the beginning or end depending on the
B
Bruce Momjian 已提交
145
  ORDER BY direction
B
Bruce Momjian 已提交
146 147 148 149
* COPY
	* Update reltuples in COPY
	* Allow specification of column names
	* Allow dump/load of CSV format
B
Bruce Momjian 已提交
150
* fix array handling for ECPG
B
Bruce Momjian 已提交
151 152
* have pg_dump use LEFT OUTER JOIN in multi-table SELECTs
  or multiple SELECTS to avoid bad system catalog entries
B
Bruce Momjian 已提交
153
* allow psql \d to show primary and foreign keys
B
Bruce Momjian 已提交
154
* allow psql \d to show temporary table structure
B
Bruce Momjian 已提交
155
* add XML interface capability
B
Bruce Momjian 已提交
156
* Add a global RESET command for use with connection pooling
B
Bruce Momjian 已提交
157
* Remove <=6.3 version compatibility in ODBC?
B
Bruce Momjian 已提交
158
* Add SET REAL_FORMAT and SET DOUBLE_PRECISION_FORMAT using printf args
B
Bruce Momjian 已提交
159

B
Bruce Momjian 已提交
160 161 162 163 164 165
REFERENTIAL INTEGRITY

* Add MATCH PARTIAL referential integrity
* Check that primary key exists at foreign key definition time
* Prevent column dropping if column is used by foreign key
* Propagate column or table renaming to foreign key constraints
B
Bruce Momjian 已提交
166
* Add deferred trigger queue file (Jan)
B
Bruce Momjian 已提交
167
* Allow oid to act as a foreign key
B
Bruce Momjian 已提交
168
* Implement dirty reads and use them in RI triggers
B
Bruce Momjian 已提交
169
* Enforce referential integrity for system tables
B
Bruce Momjian 已提交
170 171
* INSERT & UPDATE/DELETE in transaction of primary key fails with 
  deferredTriggerGetPreviousEvent or "change violation" [foreign]
B
Bruce Momjian 已提交
172
* Add unique indexes to pg_shadow.usename and pg_shadow.usesysid
B
Bruce Momjian 已提交
173 174
* Add unique indexes on pg_database
* Check all system tables and add unique indexes as needed
B
Bruce Momjian 已提交
175

176 177 178
EXOTIC FEATURES

* Add sql3 recursive unions
B
Bruce Momjian 已提交
179
* Add the concept of dataspaces/tablespaces [tablespaces]
180
* Allow queries across multiple databases
B
Bruce Momjian 已提交
181
* Allow nested transactions (Vadim)
182
* Allow INSERT/UPDATE ... RETURNING new.col or old.col (Philip)
B
Bruce Momjian 已提交
183
* Add pre-parsing phase that convets non-ANSI features to supported features
B
Bruce Momjian 已提交
184 185
* SQL*Net listener that makes PostgreSQL appear as an Oracle database 
  to clients
B
Bruce Momjian 已提交
186 187
* Incremental backups
* Allow SQL92 schemas
B
Bruce Momjian 已提交
188
* Handle transaction rollover [transactions]
189

B
Bruce Momjian 已提交
190
MISCELLANEOUS
B
Bruce Momjian 已提交
191

B
Bruce Momjian 已提交
192
* Increase identifier length(NAMEDATALEN) if small performance hit
B
Bruce Momjian 已提交
193 194
* Create a background process for each database that runs while
  database is idle, finding superceeded rows, gathering stats and vacuuming
B
Bruce Momjian 已提交
195
* Implement UNDO using transaction log
B
Bruce Momjian 已提交
196
* Populate backend status area and write program to dump status data
B
Bruce Momjian 已提交
197
* Put sort files in their own directory
B
Bruce Momjian 已提交
198
* Allow autocommit so always in a transaction block
B
Bruce Momjian 已提交
199
* Show location of syntax error in query [yacc]
B
Bruce Momjian 已提交
200
* Overhaul bufmgr/lockmgr/transaction manager
B
Bruce Momjian 已提交
201
* Encrpyt passwords in pg_shadow table using MD5 (Vince)
B
Bruce Momjian 已提交
202
* Allow Java server-side programming [java]
B
Bruce Momjian 已提交
203
* Add sed-like regular expression search/replace capability
B
Bruce Momjian 已提交
204 205 206

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

B
Bruce Momjian 已提交
208
-FSYNC
B
Bruce Momjian 已提交
209

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

B
Bruce Momjian 已提交
215 216
INDEXES

B
Bruce Momjian 已提交
217
* Use indexes to find min() and max()
B
Bruce Momjian 已提交
218
* Use index to restrict rows returned by multi-key index when used with
B
Bruce Momjian 已提交
219
  non-consecutive keys or OR clauses, so fewer heap accesses
B
Bruce Momjian 已提交
220 221
* Allow SELECT * FROM tab WHERE int2col = 4 use int2col index, int8,
  float4, numeric/decimal too [optimizer]
B
Bruce Momjian 已提交
222
* Use indexes with CIDR '<<' (contains) operator
B
Bruce Momjian 已提交
223
* Allow LIKE indexing optimization for non-ASCII locales
B
Bruce Momjian 已提交
224 225 226 227
* 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 modify column
B
Bruce Momjian 已提交
228

B
Bruce Momjian 已提交
229 230
CACHE

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

B
Bruce Momjian 已提交
234 235 236 237 238 239 240 241 242 243
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]
* Make ANALYZE a separate command
* Allow ANALYZE to ESTIMATE based on certain random precentage of rows
* Add LAZY VACUUM (Vadim)

MISCELLANEOUS
B
Bruce Momjian 已提交
244

B
Bruce Momjian 已提交
245
* Allow compression of log and meta data
B
Bruce Momjian 已提交
246 247
* Do async I/O to do better read-ahead of data
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
B
Bruce Momjian 已提交
248
  when it is available
B
Bruce Momjian 已提交
249
* Use mmap() rather than SYSV shared memory(?) [mmap]
B
Bruce Momjian 已提交
250
* Improve Subplan list handling
B
Bruce Momjian 已提交
251
* Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Bruce Momjian 已提交
252
* improve dynamic memory allocation by introducing tuple-context memory
B
Bruce Momjian 已提交
253
  allocation (Tom)
B
Bruce Momjian 已提交
254
* allow configuration of maximum number of open files
B
Bruce Momjian 已提交
255
* Remove pg_listener index
B
Bruce Momjian 已提交
256
* Improve statistics storage in pg_class [performance]
B
Bruce Momjian 已提交
257
* Add connection pooling [pool]
B
Bruce Momjian 已提交
258
* Allow persistent backends [persistent]
B
Bruce Momjian 已提交
259 260
* Create a transaction processor to aid in persistent connections and
  connection pooling
B
Bruce Momjian 已提交
261 262
* Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
  ANALYZE, and CLUSTER
B
Bruce Momjian 已提交
263 264
* Force transactions that commit at near the same time use a single fsync()
* Make blind writes go through the file descriptor cache
B
Bruce Momjian 已提交
265
* Allow logging of query durations
B
Bruce Momjian 已提交
266

B
Bruce Momjian 已提交
267 268
SOURCE CODE
-----------
B
Bruce Momjian 已提交
269
* Add use of 'const' for variables in source tree
B
Bruce Momjian 已提交
270
* Does Mariposa source contain any other bug fixes?
B
Bruce Momjian 已提交
271
* Remove SET KSQO option now that OR processing is improved (Tom)
B
Bruce Momjian 已提交
272
* Convert remaining fprintf(stderr,...)/perror() to elog()
B
Bruce Momjian 已提交
273
* Remove unused pg_variable, pg_inheritproc, pg_ipl tables
B
Bruce Momjian 已提交
274
* Experiment with multi-threaded backend [thread]
B
Bruce Momjian 已提交
275
* Fix problems with libpq non-blocking/async code [async]
B
Bruce Momjian 已提交
276
* Merge global and template BKI files (Peter E)
B
Bruce Momjian 已提交
277
* Fix username/password length limits in all areas
B
Bruce Momjian 已提交
278
* Remove compile-time upper limit on number of backends (MAXBACKENDS) (Tom)
B
Bruce Momjian 已提交
279
* Make sure all block numbers are unsigned to increase maximum table size
B
Bruce Momjian 已提交
280
* Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
B
Bruce Momjian 已提交
281
* HOLDER/HOLDERTAB reanme to PROCLOCKLINK/PROCLOCKLINKTAG (Tom)
B
Bruce Momjian 已提交
282
* Add version file format stamp to heap and other table types
B
Bruce Momjian 已提交
283
* Make elog(LOG) in WAL its own output type, distinct from DEBUG
B
Bruce Momjian 已提交
284
* Rename some /contrib modules from pg* to pg_*
B
Bruce Momjian 已提交
285
* Remove warnings created by -Wcast-align
B
Bruce Momjian 已提交
286
* Move platform-specific ps status display info from ps_status.c to ports
B
Bruce Momjian 已提交
287
* Decide on spelling of indexes/indices
B
Bruce Momjian 已提交
288
* Allow ps status display to work on Solaris/SVr4-based systems
289

B
Bruce Momjian 已提交
290 291 292 293 294 295
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
	* Billy is Billy G. Allie <Bill.Allie@mug.org>
B
Bruce Momjian 已提交
296
	* Bruce is Bruce Momjian<pgman@candle.pha.pa.us>
B
Bruce Momjian 已提交
297 298
	* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
	* Edmund is Edmund Mergl <E.Mergl@bawue.de>
B
Bruce Momjian 已提交
299 300
	* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
	* Karel is Karel Zak <zakkr@zf.jcu.cz>
B
Bruce Momjian 已提交
301 302
	* Jan is Jan Wieck <wieck@sapserv.debis.de>
 	* Marc is Marc Fournier <scrappy@hub.org>
B
Bruce Momjian 已提交
303
	* Mark is Mark Hollomon <mhh@mindspring.com>
B
Bruce Momjian 已提交
304 305
	* Michael is Michael Meskes <meskes@postgresql.org>
	* Oleg is Oleg Bartunov <oleg@sai.msu.su>
B
Bruce Momjian 已提交
306
	* Peter M is Peter T Mount <peter@retep.org.uk>
B
Bruce Momjian 已提交
307
	* Peter E is Peter Eisentraut<peter_e@gmx.net>
B
Bruce Momjian 已提交
308
	* Philip is Philip Warner <pjw@rhyme.com.au>
B
Bruce Momjian 已提交
309
	* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
B
Bruce Momjian 已提交
310
	* Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
B
Bruce Momjian 已提交
311
 	* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
B
Bruce Momjian 已提交
312 313
	* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
	* Thomas is Thomas Lockhart <lockhart@alumni.caltech.edu>
B
Bruce Momjian 已提交
314
	* Tom is Tom Lane <tgl@sss.pgh.pa.us>
B
Bruce Momjian 已提交
315
	* TomH is Tom I Helbekkmo <tih@Hamartun.Priv.NO>
B
Bruce Momjian 已提交
316
	* Vadim is Vadim B. Mikheev <vadim4o@email.com>