TODO 13.2 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
Last updated:		Sun Dec 10 20:44:26 EST 2000
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.1 release.
B
Bruce Momjian 已提交
11

B
Bruce Momjian 已提交
12 13 14
Names in brackets "[]" indicate more detailed information is available in
the directory pgsql/doc/TODO.detail/ under that name.

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
* -Creating index of TIMESTAMP & RELTIME fails, or rename to DATETIME(Thomas)
B
Bruce Momjian 已提交
24
* -SELECT foo UNION SELECT foo is incorrectly simplified to SELECT foo
B
Bruce Momjian 已提交
25 26
* 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 已提交
27
  [inherit] 
B
Bruce Momjian 已提交
28 29
* -Be smarter about promoting types when UNION merges different data types
* -redesign INSERT ... SELECT to have two levels of target list
B
Bruce Momjian 已提交
30
* have INTERSECT/EXCEPT prevent duplicates unless ALL is specified
B
Bruce Momjian 已提交
31
* SELECT col::DECIMAL(12,10); fails
B
Bruce Momjian 已提交
32 33 34

VIEWS

B
Bruce Momjian 已提交
35
* -Views containing aggregates sometimes fail(Jan)
36 37
* Creating view and inheriting the view causes view* to show
  duplicates(inherit) 
B
Bruce Momjian 已提交
38
* -Disallow LOCK on view(Mark Hollomon)
B
Bruce Momjian 已提交
39

B
Bruce Momjian 已提交
40 41 42
MISC

* Plpgsql does not handle quoted mixed-case identifiers
B
Bruce Momjian 已提交
43 44
* Buffer reference counting bugfixes
* Fix libpq bug that causes it to drop backend error message sent
B
Bruce Momjian 已提交
45
  just before connection closure (ie, any FATAL error message)
B
Bruce Momjian 已提交
46 47
* -SELECT ... UNION ... ORDER BY fails when sort expr not in result list
* -SELECT ... UNION ... GROUP BY fails if column types disagree, no type
B
Bruce Momjian 已提交
48
  promotion occurs
B
Bruce Momjian 已提交
49 50
* Modification  of  pg_class  can  happen while table in use by
  another backend.  Might  lead  to  MVCC  inside  of  syscache
B
Bruce Momjian 已提交
51
* Permission to DELETE table allows UPDATE also
B
Bruce Momjian 已提交
52

M
Marc G. Fournier 已提交
53 54
ENHANCEMENTS
------------
B
Bruce Momjian 已提交
55 56 57

URGENT

58
* -Add OUTER joins, left and right[outer](Tom, Thomas)
B
Bruce Momjian 已提交
59
* -Allow long tuples by chaining or auto-storing outside db (TOAST)(Jan)
B
Bruce Momjian 已提交
60
* Fix memory leak for expressions[memory](Tom?) 
B
Bruce Momjian 已提交
61

B
Bruce Momjian 已提交
62 63
ADMIN

B
Bruce Momjian 已提交
64
* More access control over who can create tables and use locks(Karel)
B
Bruce Momjian 已提交
65
* -Test syslog functionality
B
Bruce Momjian 已提交
66
* Convert remaining fprintf(stderr,...) to elog()
B
Bruce Momjian 已提交
67 68
* Allow elog() to return error codes, module name, file name, line
  number, not just messages
B
Bruce Momjian 已提交
69
* Allow international error message support and add error codes
B
Bruce Momjian 已提交
70 71
* -Unify configuration into one configuration file (Peter E)
* -use setproctitle() if it exists for 'ps' display of status
B
Bruce Momjian 已提交
72
* Prevent initdb from running wrong version of postmaster/postgres
B
Bruce Momjian 已提交
73

B
Bruce Momjian 已提交
74 75
TYPES

B
Bruce Momjian 已提交
76 77
* Nchar (as distinguished from ordinary varchar),
* Domain capability
B
Bruce Momjian 已提交
78
* -Add STDDEV/VARIANCE() function for standard deviation computation/variance
B
Bruce Momjian 已提交
79 80 81 82 83 84
* -Allow compression of large fields or a compressed field type
* -Large objects
	o -Fix large object mapping scheme, own typeid or reltype(Peter)
	o -Not to stuff everything as files in a single directory, hash dirs
	o -Allow large object vacuuming
	o -Tables that start with xinv confused to be large objects
B
Bruce Momjian 已提交
85
* Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
86
* Fix improper masking of some inet/cidr types [cidr]
B
Bruce Momjian 已提交
87 88 89
* Make a separate SERIAL type?
* Store binary-compatible type information in the system
* Add support for & operator
B
Bruce Momjian 已提交
90
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
91
* Allow nulls in arrays
B
Bruce Momjian 已提交
92
* Allow arrays to be ORDER'ed
B
Bruce Momjian 已提交
93
* Support construction of array result values in expressions
B
Bruce Momjian 已提交
94 95
* Change foreign key constraint for array -> element to mean element
   in array
B
Bruce Momjian 已提交
96
* Remove Money type, add money formatting for decimal type
97
* Declare typein/out functions in pg_proc with a special "C string" data type
98
* Add non-large-object binary field
B
Bruce Momjian 已提交
99
* Functions returning sets don't really work right[function]
B
Bruce Momjian 已提交
100
* -Add hash for int8 (Tom)
B
Bruce Momjian 已提交
101
* SELECT col FROM tab WHERE numeric_col = 10.1 fails
B
Bruce Momjian 已提交
102
* Get BIT type working
B
Bruce Momjian 已提交
103
* Allow better handling of numeric constants, type conversion [typeconv]
B
Bruce Momjian 已提交
104
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
105 106 107
* 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 已提交
108
* Update macaddr manufacturer numbers, or remove the function macaddr_manuf()
B
Bruce Momjian 已提交
109 110
* Add btree index support for reltime, tinterval, regproc, bit, varbit
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
111
* Make file in/out interface to TOAST columns
B
Bruce Momjian 已提交
112 113

VIEWS
B
Bruce Momjian 已提交
114

B
Bruce Momjian 已提交
115 116 117
* -Allow DISTINCT on views
* -Allow views of aggregate columns
* -Allow views with subselects
B
Bruce Momjian 已提交
118
* Create insert, update and delete rules for simple one table views
B
Bruce Momjian 已提交
119
* -Change elog for complex view ins|upd|del to "cannot {ins|upd|del}
B
Bruce Momjian 已提交
120
* Add the functionality for "with check option" clause of create view
B
Bruce Momjian 已提交
121

B
Bruce Momjian 已提交
122
INDEXES
B
Bruce Momjian 已提交
123 124

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
125
  fails index can't store constant parameters
B
Bruce Momjian 已提交
126
* -Allow SQL function indexes
B
Bruce Momjian 已提交
127
* Add FILLFACTOR to index creation
B
Bruce Momjian 已提交
128
* Re-enable partial indexes
B
Bruce Momjian 已提交
129
* Allow inherited tables to inherit index
B
Bruce Momjian 已提交
130 131

COMMANDS
B
Bruce Momjian 已提交
132

B
Bruce Momjian 已提交
133
* ALTER TABLE ADD COLUMN to inherited table put column in wrong place [inherit]
B
Bruce Momjian 已提交
134 135
* -Add ALTER TABLE ALTER COLUMN feature(Peter E)
* Add ALTER TABLE DROP COLUMN feature [drop]
B
Bruce Momjian 已提交
136
* Add ALTER TABLE command to change table ownership (Mark H)
B
Bruce Momjian 已提交
137 138
* Add ALTER FUNCTION 
* Add ALTER TABLE ... DROP CONSTRAINT
B
Bruce Momjian 已提交
139
* Add ALTER USER command to change user db attributes
B
Bruce Momjian 已提交
140
* Automatically drop constraints/functions when object is dropped
B
Bruce Momjian 已提交
141
* Allow CLUSTER on all tables at once, and improve CLUSTER, loses NOT
B
Bruce Momjian 已提交
142
	NULL specification, indexes, permissions, etc on table
B
Bruce Momjian 已提交
143
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
B
Bruce Momjian 已提交
144
* Auto-destroy sequence on DROP of table with SERIAL(Ryan)
B
Bruce Momjian 已提交
145
* Allow LOCK TABLE tab1, tab2, tab3 so all tables locked in unison [lock]
B
Bruce Momjian 已提交
146
* Allow INSERT/UPDATE of system-generated oid value for a row
B
Bruce Momjian 已提交
147
* -Allow ESCAPE '\' at the end of LIKE for ANSI compliance (Thomas)
B
Bruce Momjian 已提交
148
* -Rewrite the LIKE handling by rewriting the user string with the 
B
Bruce Momjian 已提交
149
  supplied ESCAPE [like]
B
Bruce Momjian 已提交
150
* Allow RULE recompilation
B
Bruce Momjian 已提交
151
* -Support UNION/INTERSECT/EXCEPT in sub-selects
B
Bruce Momjian 已提交
152
* -Allow DELETE and UPDATE to use inheritance
B
Bruce Momjian 已提交
153
* Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
B
Bruce Momjian 已提交
154
* Allow BINARY option to SELECT, like we do with DECLARE
B
Bruce Momjian 已提交
155
* MOVE 0 should not move to end of cursor
B
Bruce Momjian 已提交
156
* Overhaul ACL (access control) code
B
Bruce Momjian 已提交
157
* Allow ORDER BY...LIMIT in INSERT INTO ... SELECT
B
Bruce Momjian 已提交
158
* Add SHOW command to display locks
B
Bruce Momjian 已提交
159
* Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
B
Bruce Momjian 已提交
160

B
Bruce Momjian 已提交
161 162
CLIENTS

B
Bruce Momjian 已提交
163
* Make NULL's come out at the beginning or end depending on the 
B
Bruce Momjian 已提交
164
  ORDER BY direction
B
Bruce Momjian 已提交
165
* Update reltuples from COPY command
B
Bruce Momjian 已提交
166
* Allow COPY to specify column names
B
Bruce Momjian 已提交
167
* fix array handling for ECPG
B
Bruce Momjian 已提交
168
* add pg_dump option to dump type names as standard ANSI types
B
Bruce Momjian 已提交
169
* -make pg_dump dump in oid order, so dependencies are resolved (Philip)
B
Bruce Momjian 已提交
170
* allow psql \d to show primary and foreign keys
B
Bruce Momjian 已提交
171
* allow psql \d to show temporary table schema
B
Bruce Momjian 已提交
172
* add XML interface capability
B
Bruce Momjian 已提交
173
* -Allow dumping of users/groups separately
B
Bruce Momjian 已提交
174

B
Bruce Momjian 已提交
175 176 177 178 179 180 181 182 183 184
REFERENTIAL INTEGRITY

* Add MATCH PARTIAL referential integrity
* Foreign key does not check that columns referenced form a primary key
  or constrained by UNIQUE 
* 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
* Emit a warning at foreign key creation time if no UNIQUE index
  exists on referenced primary key attributes
B
Bruce Momjian 已提交
185
* Add deferred trigger queue file (Jan)
B
Bruce Momjian 已提交
186
* Allow oid to act as a foreign key
B
Bruce Momjian 已提交
187
* Implement dirty reads and use them in RI triggers
B
Bruce Momjian 已提交
188

189 190 191
EXOTIC FEATURES

* Add sql3 recursive unions
B
Bruce Momjian 已提交
192
* Add the concept of dataspaces/tablespaces [tablespaces]
B
Bruce Momjian 已提交
193
* Add replication of distributed databases [replication]
194
* Allow queries across multiple databases
B
Bruce Momjian 已提交
195
* Allow nested transactions (Vadim)
B
Bruce Momjian 已提交
196
* Allow INSERT/UPDATE to return new.col or old.col (Philip)
B
Bruce Momjian 已提交
197 198
* SQL*Net listener that makes PostgreSQL appear as an Oracle database 
  to clients
199

B
Bruce Momjian 已提交
200 201
MISC

B
Bruce Momjian 已提交
202
* Increase identifier length(NAMEDATALEN) if small performance hit
B
Bruce Momjian 已提交
203 204 205
* Allow row re-use without vacuum(Vadim)
* Create a background process for each database that runs while
  database is idle, finding superceeded rows, gathering stats and vacuuming
B
Bruce Momjian 已提交
206
* Add UNIQUE capability to non-btree indexes
B
Bruce Momjian 已提交
207
* Certain indexes will not shrink, i.e. oid indexes with many inserts(Vadim)
B
Bruce Momjian 已提交
208 209 210
* Restore unused oid's on backend exit if no one else has gotten oids
* Have UPDATE/DELETE clean out indexes
* Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions
B
Bruce Momjian 已提交
211
* Allow DELETE WHERE CURRENT OF cursor
B
Bruce Momjian 已提交
212 213
* -Transaction log, so re-do log can be on a separate disk by
  with after-row images(Vadim) [logging](Vadim)
B
Bruce Momjian 已提交
214 215
* Populate backend status area and write program to dump status data
* Make oid use unsigned int more reliably, pg_atoi()
B
Bruce Momjian 已提交
216
* Put sort files in their own directory
B
Bruce Momjian 已提交
217
* Allow autocommit so always in a transaction block
B
Bruce Momjian 已提交
218
* Show location of syntax error in query [yacc]
B
Bruce Momjian 已提交
219
* -Redesign the function call interface to handle NULLs better[function](Tom)
B
Bruce Momjian 已提交
220
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
B
Bruce Momjian 已提交
221
* Overhaul bufmgr/lockmgr/transaction manager
B
Bruce Momjian 已提交
222 223
* -redesign UNION structures to have separarate target lists
* -Allow multi-level query trees for INSERT INTO ... SELECT
B
Bruce Momjian 已提交
224
* Use IPC_EXCL when creating shared memory and semaphores
B
Bruce Momjian 已提交
225
* have pg_upgrade use pg_ctl to stop/start postmaster
B
Bruce Momjian 已提交
226
* Encrpyt passwords in pg_shadow table using MD5(Vince)
B
Bruce Momjian 已提交
227
* Use flock() to prevent multiple postmasters on the same port [flock]
B
Bruce Momjian 已提交
228 229 230

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

B
Bruce Momjian 已提交
232
-FSYNC
B
Bruce Momjian 已提交
233

B
Bruce Momjian 已提交
234 235
* -Allow transaction commits with rollback with no-fsync performance
  (Vadim)
B
Bruce Momjian 已提交
236

B
Bruce Momjian 已提交
237 238
INDEXES

B
Bruce Momjian 已提交
239
* Use indexes to find min() and max()
B
Bruce Momjian 已提交
240
* Use index to restrict rows returned by multi-key index when used with
B
Bruce Momjian 已提交
241
  non-consecutive keys or OR clauses, so fewer heap accesses
B
Bruce Momjian 已提交
242 243
* Allow SELECT * FROM tab WHERE int2col = 4 use int2col index, int8,
  float4, numeric/decimal too [optimizer]
B
Bruce Momjian 已提交
244
* Include heap CTID in btree index keys, remove equal-key cruft from btree
B
Bruce Momjian 已提交
245
* Use indexes with CIDR '<<' (contains) operator
B
Bruce Momjian 已提交
246
* Fix LIKE indexing optimization for non-ASCII locales
B
Bruce Momjian 已提交
247

B
Bruce Momjian 已提交
248 249
CACHE

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

B
Bruce Momjian 已提交
253 254
MISC

B
Bruce Momjian 已提交
255
* Allow compression of log and meta data
B
Bruce Momjian 已提交
256 257 258
* Allow char() not to use variable-sized header to reduce disk size
* 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 已提交
259
  when it is available
B
Bruce Momjian 已提交
260 261
* Use mmap() rather than SYSV shared memory(?)
* Make oid use oidin/oidout not int4in/int4out in pg_type.h
B
Bruce Momjian 已提交
262
* Improve Subplan list handling
B
Bruce Momjian 已提交
263
* Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Bruce Momjian 已提交
264
  [subquery]
B
Bruce Momjian 已提交
265
* -use fmgr_info()/fmgr_faddr() instead of fmgr() calls in high-traffic
B
Bruce Momjian 已提交
266 267
  places, like GROUP BY, UNIQUE, index processing, etc.
* improve dynamic memory allocation by introducing tuple-context memory
B
Bruce Momjian 已提交
268
  allocation [memory]
B
Bruce Momjian 已提交
269
* -In WHERE tab1.x=3 AND tab1.x=tab2.y, add tab2.y=3
B
Bruce Momjian 已提交
270 271
* prevent labels from being output for stored rules (Tom)
* allow configuration of maximum number of open files
B
Bruce Momjian 已提交
272
* Remove pg_listener index
B
Bruce Momjian 已提交
273 274
* -Redesign ANALYZE in VACUUM so it can be run separately without locks
* Make ANALYZE a separate command
B
Bruce Momjian 已提交
275
* Gather more accurate dispersion statistics using indexes
B
Bruce Momjian 已提交
276
* Keep statistics about clustering of table rows [optimizer]
B
Bruce Momjian 已提交
277
* Improve statistics storage in pg_class [performance]
278
* Improve VACUUM speed with indexes [vacuum]
B
Bruce Momjian 已提交
279 280
* Reduce VACUUM lock time by moving tuples with read lock, then write
  lock and truncate table [vacuum]
B
Bruce Momjian 已提交
281
* -BSD/OS does not support locale because there is no LC_MESSAGES (Bruce)
B
Bruce Momjian 已提交
282
* Add connection pooling [pool]
B
Bruce Momjian 已提交
283
* Allow persistent backends [persistent]
B
Bruce Momjian 已提交
284 285
* Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
  ANALYZE, and CLUSTER
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
* -Fix C optimizer problem where fmgr_ptr calls return different types (Tom)
B
Bruce Momjian 已提交
291
* Does Mariposa source contain any other bug fixes?
B
Bruce Momjian 已提交
292
* Remove SET KSQO option now that OR processing is improved(Tom)
293
* -Use macros to define NT open() file parameters, remove NT-specific defines
B
Bruce Momjian 已提交
294
* -Change CURRENT to OLD internally for rules (Bruce)
B
Bruce Momjian 已提交
295
* replace the use of fprint(stderr, ...) with elog() in backend code
296

B
Bruce Momjian 已提交
297 298 299 300 301 302 303
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
	* Billy is Billy G. Allie <Bill.Allie@mug.org>
	* Brook is Brook Milligan <brook@trillium.NMSU.Edu>
B
Bruce Momjian 已提交
304
	* Bruce is Bruce Momjian<pgman@candle.pha.pa.us>
B
Bruce Momjian 已提交
305 306 307 308 309
	* Bryan is Bryan Henderson<bryanh@giraffe.netgate.net>
	* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
	* David is David Hartwig <daveh@insightdist.com>
	* Edmund is Edmund Mergl <E.Mergl@bawue.de>
	* Goran is Goran Thyni <goran@kyla.kiruna.se>
B
Bruce Momjian 已提交
310
	* Hiroshi is Hiroshi Inoue<Inoue@tpf.co.jp>
B
Bruce Momjian 已提交
311 312 313 314 315 316
	* Jan is Jan Wieck <wieck@sapserv.debis.de>
 	* Marc is Marc Fournier <scrappy@hub.org>
	* Massimo Dal Zotto <dz@cs.unitn.it>
	* Michael is Michael Meskes <meskes@postgresql.org>
	* Oleg is Oleg Bartunov <oleg@sai.msu.su>
	* Peter is Peter T Mount <peter@retep.org.uk>
B
Bruce Momjian 已提交
317
	* Philip Warner <pjw@rhyme.com.au>
B
Bruce Momjian 已提交
318
	* Peter E is Peter Eisentraut<peter_e@gmx.net>
B
Bruce Momjian 已提交
319
	* Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
B
Bruce Momjian 已提交
320 321 322 323 324
	* Stefan Simkovics <ssimkovi@rainbow.studorg.tuwien.ac.at>
	* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
	* Tom is Tom Lane <tgl@sss.pgh.pa.us>
	* Thomas is Thomas Lockhart <lockhart@alumni.caltech.edu>
	* TomH is Tom I Helbekkmo <tih@Hamartun.Priv.NO>
B
Bruce Momjian 已提交
325
	* Vadim is "Vadim B. Mikheev" <vadim4o@email.com>