TODO 13.6 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
Last updated:		Tue Jun 12 14:15:23 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

B
Bruce Momjian 已提交
19
* -SELECT pg_class FROM pg_class generates strange error (Bruce)
B
Bruce Momjian 已提交
20
* PL/PgSQL does not handle quoted mixed-case identifiers
B
Bruce Momjian 已提交
21

M
Marc G. Fournier 已提交
22 23
ENHANCEMENTS
------------
B
Bruce Momjian 已提交
24 25 26

URGENT

B
Bruce Momjian 已提交
27
* Add replication of distributed databases [replication]
B
Bruce Momjian 已提交
28
	o automatic failover
B
Bruce Momjian 已提交
29 30 31 32 33 34 35
	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 已提交
36
* Allow row re-use without vacuum (Vadim)
B
Bruce Momjian 已提交
37

B
Bruce Momjian 已提交
38 39
ADMIN

B
Bruce Momjian 已提交
40
* Improve control over user privileges, including table creation and
B
Bruce Momjian 已提交
41
  lock use [privileges] (Karel, others)
B
Bruce Momjian 已提交
42
* -Permission to DELETE table also allows UPDATE (Peter E)
B
Bruce Momjian 已提交
43
* Allow elog() to return error codes, module name, file name, line
B
Bruce Momjian 已提交
44
  number, not just messages (Peter E) [elog]
B
Bruce Momjian 已提交
45 46 47 48
* -Allow international error message support and add error codes[elog](Peter E)
* -Remove unused sort files on postmaster startup (Bruce)
* Remove unreferenced table files and temp tables during database vacuum
  or postmaster startup
B
Bruce Momjian 已提交
49
* Add table name mapping for numeric file names
B
Bruce Momjian 已提交
50
* Overhaul pg_hba.conf host-based authentication
B
Bruce Momjian 已提交
51
* Encrpyt passwords in pg_shadow table using MD5 (Vince)
B
Bruce Momjian 已提交
52
* Incremental backups
B
Bruce Momjian 已提交
53

B
Bruce Momjian 已提交
54 55
TYPES

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

MULTILANGUAGE SUPPORT

79
* Add NCHAR (as distinguished from ordinary varchar),
B
Bruce Momjian 已提交
80
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
81
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
82 83 84
* 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 已提交
85 86

VIEWS
B
Bruce Momjian 已提交
87

B
Bruce Momjian 已提交
88
* Automatically create rules on views so they are updateable, per SQL92 [view]
B
Bruce Momjian 已提交
89
* Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
B
Bruce Momjian 已提交
90
* Allow NOTIFY in rules involving conditionals
B
Bruce Momjian 已提交
91
* Evaluate INSERT rules at end of query, rather than beginning
B
Bruce Momjian 已提交
92

B
Bruce Momjian 已提交
93
INDEXES
B
Bruce Momjian 已提交
94 95

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

SYSTEM TABLES

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

COMMANDS
B
Bruce Momjian 已提交
134

135 136 137 138 139 140 141
* 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 已提交
142
* Allow PL/PgSQL's RAISE function to take expressions
B
Bruce Momjian 已提交
143
* ALTER
B
Bruce Momjian 已提交
144 145
	* ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK 
	  CONSTRAINT
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 non-CHECK CONSTRAINT
B
Bruce Momjian 已提交
151 152 153 154
	* -Add ALTER TABLE DROP CHECK CONSTRAINT (Christopher Kings-Lynne)
	* ALTER TABLE ADD PRIMARY KEY (Christopher Kings-Lynne)
	* ALTER TABLE ADD UNIQUE (Christopher Kings-Lynne)

B
Bruce Momjian 已提交
155 156
* CLUSTER
	* cluster all tables at once
B
Bruce Momjian 已提交
157
	* prevent lose of indexes, permissions, inheritance
B
Bruce Momjian 已提交
158
	* Automatically keep clustering on a table
B
Bruce Momjian 已提交
159
	* -Keep statistics about clustering
B
Bruce Momjian 已提交
160
	  [optimizer]
B
Bruce Momjian 已提交
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
* 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 已提交
177
	* Add SHOW command to show all settings
B
Bruce Momjian 已提交
178 179 180 181 182 183
	* 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 已提交
184
	* Add SHOW command to see locale
B
Bruce Momjian 已提交
185

B
Bruce Momjian 已提交
186 187
CLIENTS

B
Bruce Momjian 已提交
188 189
* -Make NULL's come out at the beginning or end depending on the
  ORDER BY direction (Tom)
B
Bruce Momjian 已提交
190 191
* have pg_dump use LEFT OUTER JOIN in multi-table SELECTs
  or multiple SELECTS to avoid bad system catalog entries
B
Bruce Momjian 已提交
192
* allow psql \d to show foreign keys
B
Bruce Momjian 已提交
193
* allow psql \d to show temporary table structure
B
Bruce Momjian 已提交
194
* add XML interface capability
B
Bruce Momjian 已提交
195
* Remove <=6.3 version compatibility in ODBC?
B
Bruce Momjian 已提交
196
* Fix libpq to properly handle socket failures under native MS Win32 [libpq]
B
Bruce Momjian 已提交
197

B
Bruce Momjian 已提交
198 199 200
REFERENTIAL INTEGRITY

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

TRANSACTIONS

B
Bruce Momjian 已提交
218 219
* Implement UNDO using transaction log, overwriting storage manager? 
  [vacuum] (Vadim)
B
Bruce Momjian 已提交
220 221 222 223
* Allow autocommit so always in a transaction block
* Overhaul bufmgr/lockmgr/transaction manager
* Allow nested transactions (Vadim)
* Handle transaction rollover [transactions]
B
Bruce Momjian 已提交
224

225 226 227
EXOTIC FEATURES

* Add sql3 recursive unions
B
Bruce Momjian 已提交
228
* Add the concept of dataspaces/tablespaces [tablespaces]
B
Bruce Momjian 已提交
229
* Allow SQL92 schemas [schema]
230
* Allow queries across multiple databases
B
Bruce Momjian 已提交
231
* Add pre-parsing phase that converts non-ANSI features to supported features
B
Bruce Momjian 已提交
232
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
B
Bruce Momjian 已提交
233
  to clients
234

B
Bruce Momjian 已提交
235
MISCELLANEOUS
B
Bruce Momjian 已提交
236

B
Bruce Momjian 已提交
237
* Increase identifier length(NAMEDATALEN) if small performance hit
B
Bruce Momjian 已提交
238
* Create a background process for each database that runs while
B
Bruce Momjian 已提交
239 240 241 242
  database is idle, finding superceeded rows, gathering stats and
  vacuuming (Tom)
* Populate backend status area and write program to dump status data (Jan)
* -Put sort files in their own directory (Bruce)
B
Bruce Momjian 已提交
243
* Show location of syntax error in query [yacc]
B
Bruce Momjian 已提交
244
* Allow Java server-side programming [java]
B
Bruce Momjian 已提交
245
* Add sed-like regular expression search/replace capability
B
Bruce Momjian 已提交
246
* Change representation of whole-tuple parameters to functions
B
Bruce Momjian 已提交
247 248 249

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

B
Bruce Momjian 已提交
251
FSYNC
B
Bruce Momjian 已提交
252

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

B
Bruce Momjian 已提交
258 259
CACHE

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

B
Bruce Momjian 已提交
263 264 265 266 267
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 已提交
268 269
* -Make ANALYZE a separate command (Tom)
* -Allow ANALYZE to ESTIMATE based on certain random precentage of rows (Tom)
B
Bruce Momjian 已提交
270 271 272
* Add LAZY VACUUM (Vadim)

MISCELLANEOUS
B
Bruce Momjian 已提交
273

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

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

B
Bruce Momjian 已提交
318 319 320 321 322 323
---------------------------------------------------------------------------


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