TODO 12.5 KB
Newer Older
B
Bruce Momjian 已提交
1 2
TODO list for PostgreSQL
========================
B
Bruce Momjian 已提交
3
Last updated:		Tue Oct  5 17:11:29 EDT 1999
M
Marc G. Fournier 已提交
4

B
Bruce Momjian 已提交
5
Current maintainer:	Bruce Momjian (maillist@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 next 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

RESOURCES

B
Bruce Momjian 已提交
21
* Elog() does not free all its memory(Jan)
B
Bruce Momjian 已提交
22
* spinlock stuck problem when elog(FATAL) and elog(ERROR) inside bufmgr
B
Bruce Momjian 已提交
23
* Recover or force failure when disk space is exhausted
B
Bruce Momjian 已提交
24 25 26 27 28 29

PARSER

* Disallow inherited columns with the same name as new columns
* INSERT INTO ... SELECT with AS columns matching result columns problem
* SELECT pg_class FROM pg_class generates strange error
B
Bruce Momjian 已提交
30
* Alter TABLE ADD COLUMN does not honor DEFAULT, add CONSTRAINT
B
Bruce Momjian 已提交
31
* Do not allow bpchar column creation without length
B
Bruce Momjian 已提交
32
* -Select a[1] FROM test fails, it needs test.a[1]
B
Bruce Momjian 已提交
33
* -Array index references without table name cause problems [array]
B
Bruce Momjian 已提交
34
* Update table SET table.value = 3 fails(SQL standard says this is OK)
35
* Creating index of TIMESTAMP & RELTIME fails, or rename to DATETIME(Thomas)
B
Bruce Momjian 已提交
36
* SELECT foo UNION SELECT foo is incorrectly simplified to SELECT foo
B
Bruce Momjian 已提交
37 38
* -INSERT ... SELECT ... GROUP BY groups by target columns not source columns
* -CREATE TABLE test (a char(5) DEFAULT text '', b int4) fails on INSERT
B
Bruce Momjian 已提交
39
* UNION with LIMIT fails
B
Bruce Momjian 已提交
40 41
* 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 已提交
42
  [inherit] 
B
Bruce Momjian 已提交
43
* CREATE TABLE x AS SELECT 1 UNION SELECT 2 fails
B
Bruce Momjian 已提交
44
* CREATE TABLE test(col char(2) DEFAULT user) fails in length restriction
B
Bruce Momjian 已提交
45
* mismatched types in CREATE TABLE ... DEFAULT causes problems [default]
B
Bruce Momjian 已提交
46
* SELECT ... UNION ... ORDER BY fails when sort expr not in result list
B
Bruce Momjian 已提交
47 48
* Be smarter about promoting types when UNION merges different data types
* SELECT ... UNION ... GROUP BY fails if column types disagree
B
Bruce Momjian 已提交
49
* redesign INSERT ... SELECT to have two levels of target list
B
Bruce Momjian 已提交
50
* -select * from pg_class where oid in (0,-1)
B
Bruce Momjian 已提交
51
* have INTERSECT/EXCEPT prevent duplicates unless ALL is specified
B
Bruce Momjian 已提交
52
* prevent primary key of nine columns [primary]
B
Bruce Momjian 已提交
53
* SELECT COUNT('asdf') FROM pg_class WHERE oid=12 crashes
B
Bruce Momjian 已提交
54
* SELECT DISTINCT ON col1 col1 col2 FROM tab1 is broken [distinct]
B
Bruce Momjian 已提交
55
* -When using aggregates + GROUP BY, no rows in should yield no rows out
B
Bruce Momjian 已提交
56 57 58 59

VIEWS

* Views containing aggregates sometimes fail(Jan)
B
Bruce Momjian 已提交
60
* Views with spaces in view name fail when referenced
61 62
* Creating view and inheriting the view causes view* to show
  duplicates(inherit) 
B
Bruce Momjian 已提交
63

B
Bruce Momjian 已提交
64 65 66 67
MISC

* User who can create databases can modify pg_database table
* Plpgsql does not handle quoted mixed-case identifiers
B
Bruce Momjian 已提交
68
* Fix btree to give a useful elog when key > 1/2 (page - overhead)
B
Bruce Momjian 已提交
69
* pg_dump should preserve primary key information
70
* plpgsql regression tests fail on BSD/OS
B
Bruce Momjian 已提交
71
* database names with spaces fail
M
Marc G. Fournier 已提交
72 73 74

ENHANCEMENTS
------------
B
Bruce Momjian 已提交
75 76 77

URGENT

B
Bruce Momjian 已提交
78 79
* Add referential integrity(Jan?)[primary]
* Add OUTER joins, left and right[outer](Thomas, Bruce)
B
Bruce Momjian 已提交
80
* Allow long tuples by chaining or auto-storing outside db (chaining,large objs)
B
Bruce Momjian 已提交
81
* Eliminate limits on query length
B
Bruce Momjian 已提交
82
* Fix memory leak for expressions?[memory](Tom?) 
B
Bruce Momjian 已提交
83
* -Fix memory leak for aggregates?
B
Bruce Momjian 已提交
84

B
Bruce Momjian 已提交
85 86
ADMIN

B
Bruce Momjian 已提交
87
* Better interface for adding to pg_group
B
Bruce Momjian 已提交
88
* More access control over who can create tables and access the database
B
Bruce Momjian 已提交
89
* Test syslog functionality
B
Bruce Momjian 已提交
90 91
* Allow elog() to return error codes, not just messages
* Allow international error message support and add error codes
B
Bruce Momjian 已提交
92 93
* Generate postmaster pid file and remove flock/fcntl lock code [flock]
* Add ability to specifiy location of lock/socket files [flock]
B
Bruce Momjian 已提交
94

B
Bruce Momjian 已提交
95 96
TYPES

B
Bruce Momjian 已提交
97 98 99 100
* Add BIT, BIT VARYING
* Nchar (as distinguished from ordinary varchar),
* Domain capability
* Add STDDEV/VARIANCE() function for standard deviation computation/variance
B
Bruce Momjian 已提交
101 102
* Allow compression of large fields or a compressed field type
* Large objects
B
Bruce Momjian 已提交
103 104
	o Fix large object mapping scheme, own typeid or reltype(Peter)
	o Allow large text type to use large objects(Peter)
B
Bruce Momjian 已提交
105 106
	o Not to stuff everything as files in a single directory, hash dirs
	o Allow large object vacuuming
107
	o Tables that start with xinv confused to be large objects
B
Bruce Momjian 已提交
108 109 110 111 112 113
* Allow pg_descriptions when creating types, tables, columns, and functions
* Add IPv6 capability to INET/CIDR types
* Make a separate SERIAL type?
* Store binary-compatible type information in the system
* Allow user to define char1 column
* Add support for & operator
B
Bruce Momjian 已提交
114 115
* Allow LOCALE on a per-column basis, default to ASCII
* Allow array on int8[]
B
Bruce Momjian 已提交
116
* Allow nulls in arrays
B
Bruce Momjian 已提交
117
* Allow arrays to be ORDER'ed
B
Bruce Momjian 已提交
118
* Remove Money type, add money formatting for decimal type
119
* Declare typein/out functions in pg_proc with a special "C string" data type
120
* Add non-large-object binary field
121
* -Add index on NUMERIC/DECIMAL type
B
Bruce Momjian 已提交
122
* Make Absolutetime/Relativetime int4 because time_t can be int8 on some ports
B
Bruce Momjian 已提交
123
* Functions returning sets don't really work right[function]
B
Bruce Momjian 已提交
124 125

VIEWS
B
Bruce Momjian 已提交
126

B
Bruce Momjian 已提交
127
* Allow DISTINCT on views
B
Bruce Momjian 已提交
128
* Allow views of aggregate columns
B
Bruce Momjian 已提交
129 130
* Allow views with subselects

B
Bruce Momjian 已提交
131
INDEXES
B
Bruce Momjian 已提交
132 133

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
134
  fails index can't store constant parameters
B
Bruce Momjian 已提交
135 136 137 138
* Allow creation of functional indexes to use default types
* Permissions on indexes - prevent them?
* Allow SQL function indexes
* Add FILLFACTOR to index creation
B
Bruce Momjian 已提交
139 140 141 142
* Allow indexing of LIKE with localle character sets
* Allow indexing of more than eight columns

COMMANDS
B
Bruce Momjian 已提交
143

B
Bruce Momjian 已提交
144
* ALTER TABLE ADD COLUMN to inherited table put column in wrong place [inherit]
B
Bruce Momjian 已提交
145
* Add ALTER TABLE DROP/ALTER COLUMN feature
B
Bruce Momjian 已提交
146
* Allow CLUSTER on all tables at once, and improve CLUSTER, loses NOT
B
Bruce Momjian 已提交
147
	NULL specification on table [cluster]
B
Bruce Momjian 已提交
148
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
B
Bruce Momjian 已提交
149
* Auto-destroy sequence on DROP of table with SERIAL(Ryan)
B
Bruce Momjian 已提交
150 151
* Allow LOCK TABLE tab1, tab2, tab3 so all tables locked in unison
* Allow INSERT/UPDATE of system-generated oid value for a row
B
Bruce Momjian 已提交
152
* Allow ESCAPE '\' at the end of LIKE for ANSI compliance [like]
B
Bruce Momjian 已提交
153
* Rewrite the LIKE handling by rewriting the user string with the 
B
Bruce Momjian 已提交
154
  supplied ESCAPE [like]
B
Bruce Momjian 已提交
155
* -Move LIKE index optimization handling to the optimizer
B
Bruce Momjian 已提交
156
* Allow RULE recompilation
B
Bruce Momjian 已提交
157
* Support UNION/INTERSECT/EXCEPT in sub-selects
B
Bruce Momjian 已提交
158
* Allow DELETE and UPDATE to use inheritance using tablename*
B
Bruce Momjian 已提交
159
  
B
Bruce Momjian 已提交
160 161
CLIENTS

B
Bruce Momjian 已提交
162
* Make NULL's come out at the beginning or end depending on the 
B
Bruce Momjian 已提交
163
  ORDER BY direction
B
Bruce Momjian 已提交
164
* Allow flag to control COPY input/output of NULLs
B
Bruce Momjian 已提交
165
* Update reltuples from COPY command
B
Bruce Momjian 已提交
166 167
* Allow psql \copy to allow delimiters
* Add a function to return the last inserted oid, for use in psql scripts
B
Bruce Momjian 已提交
168
* Allow psql to print nulls as distinct from "" [null]
B
Bruce Momjian 已提交
169

170 171 172 173 174 175
EXOTIC FEATURES

* Add sql3 recursive unions
* Add the concept of dataspaces
* Add replication of distributed databases
* Allow queries across multiple databases
B
Bruce Momjian 已提交
176
* Allow nested transactions
177

B
Bruce Momjian 已提交
178 179
MISC

B
Bruce Momjian 已提交
180
* Increase identifier length(NAMEDATALEN) if small performance hit
B
Bruce Momjian 已提交
181 182 183
* 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 已提交
184
* Add UNIQUE capability to non-btree indexes
B
Bruce Momjian 已提交
185
* -Certain indexes will not shrink, i.e. oid indexes with many inserts
B
Bruce Momjian 已提交
186 187 188 189 190
* Restore unused oid's on backend exit if no one else has gotten oids
* Have UPDATE/DELETE clean out indexes
* Allow WHERE restriction on ctid
* Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions
* Allow PQrequestCancel() to terminate when in waiting-for-lock state
B
Bruce Momjian 已提交
191
* -Transaction log, so re-do log can be on a separate disk by
B
Bruce Momjian 已提交
192
  with after-row images(Vadim) [logging]
B
Bruce Momjian 已提交
193 194
* Populate backend status area and write program to dump status data
* Make oid use unsigned int more reliably, pg_atoi()
B
Bruce Momjian 已提交
195
* Allow subqueries in target list
B
Bruce Momjian 已提交
196 197
* Put sort files, large objects in their own directory
* Do autocommit so always in a transaction block(?)
B
Bruce Momjian 已提交
198 199 200 201
* Show location of syntax error in query [yacc]
* Redesign the function call interface to handle NULLs better [function]
* Document/trigger/rule so changes to pg_shadow recreate pg_pwd [pg_shadow]
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
B
Bruce Momjian 已提交
202 203
* Overhaul mdmgr/smgr to fix double unlinking and double opens, cleanup
* Overhaul bufmgr/lockmgr/transaction manager
B
Bruce Momjian 已提交
204
* Add PL/Perl(Mark Hollomon)
205
* Make postgres user have a password by default
B
Bruce Momjian 已提交
206
* Add configure test to check for C++ need for *.h and namespaces
207
* Allow BLCKSZ <= 64k, not <= 32k
B
Bruce Momjian 已提交
208
* redesign UNION structures to have separarate target lists
B
Bruce Momjian 已提交
209
* Allow multi-level query trees for INSERT INTO ... SELECT
B
Bruce Momjian 已提交
210 211 212

PERFORMANCE
-----------
B
Bruce Momjian 已提交
213 214 215

FSYNC

B
Bruce Momjian 已提交
216
* -Allow transaction commits with rollback with no-fsync performance [fsync]
B
Bruce Momjian 已提交
217
* -Prevent fsync in SELECT-only queries
B
Bruce Momjian 已提交
218

B
Bruce Momjian 已提交
219 220
INDEXES

221
* Use indexes in ORDER BY for restrictive data sets, min(), max()
B
Bruce Momjian 已提交
222 223
* Pull requested data directly from indexes, bypassing heap data
* Use index to restrict rows returned by multi-key index when used with
B
Bruce Momjian 已提交
224
  non-consecutive keys or OR clauses, so fewer heap accesses
B
Bruce Momjian 已提交
225
* -Convert function(constant) into a constant for index use
B
Bruce Momjian 已提交
226
* Allow LIMIT ability on single-table queries that have no ORDER BY to use
B
Bruce Momjian 已提交
227 228 229
  a matching index [limit]
* Improve LIMIT processing by using index to limit rows processed [limit]
* Have optimizer take LIMIT into account when considering index scans [limit]
B
Bruce Momjian 已提交
230
* Make index creation use psort code, because it is now faster(Vadim)
231
* Allow creation of sort temp tables > 1 Gig
B
Bruce Momjian 已提交
232 233 234
* Create more system table indexes for faster cache lookups
* fix indexscan() so it does leak memory by not requiring caller to free
* Improve _bt_binsrch() to handle equal keys better, remove _bt_firsteq()(Tom)
B
Bruce Momjian 已提交
235 236 237
* Allow SELECT * FROM tab WHERE int2col = 4 use int2col index, int8,
  float4, numeric/decimal too [optimizer]
* -Allow optimizer to prefer plans that match ORDER BY
B
Bruce Momjian 已提交
238

B
Bruce Momjian 已提交
239 240
CACHE

B
Bruce Momjian 已提交
241
* Cache most recent query plan(s) [prepare]
B
Bruce Momjian 已提交
242
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
B
Bruce Momjian 已提交
243 244 245
* elog() flushes cache, try invalidating just entries from current xact,
  perhaps using invalidation cache

B
Bruce Momjian 已提交
246

B
Bruce Momjian 已提交
247 248
MISC

B
Bruce Momjian 已提交
249
* Allow compression of log and meta data
B
Bruce Momjian 已提交
250 251
* Allow char() not to use variable-sized header to reduce disk size
* Do async I/O to do better read-ahead of data
B
Bruce Momjian 已提交
252
* -Fix memory exhaustion when using many OR's [cnfify]
B
Bruce Momjian 已提交
253
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
B
Bruce Momjian 已提交
254
  when it is available
B
Bruce Momjian 已提交
255
* Use mmap() rather than SYSV shared memory(?)
B
Bruce Momjian 已提交
256
* -Process const = const parts of OR clause in separate pass
B
Bruce Momjian 已提交
257
* Make oid use oidin/oidout not int4in/int4out in pg_type.h
B
Bruce Momjian 已提交
258
* Improve Subplan list handling
B
Bruce Momjian 已提交
259
* Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Bruce Momjian 已提交
260
  [subquery]
B
Bruce Momjian 已提交
261 262 263
* use fmgr_info()/fmgr_faddr() instead of fmgr() calls in high-traffic
  places, like GROUP BY, UNIQUE, index processing, etc.
* improve dynamic memory allocation by introducing tuple-context memory
B
Bruce Momjian 已提交
264
  allocation [memory]
B
Bruce Momjian 已提交
265
* fix memory leak in cache code when non-existant table is referenced
266
* In WHERE tab1.x=3 AND tab1.x=tab2.y, add tab2.y=3
B
Bruce Momjian 已提交
267
* pass atttypmod through parser in more cases [atttypmod]
268
* remove duplicate type in/out functions for disk and net
B
Bruce Momjian 已提交
269 270
* Allow persistent backends [persistent]
* Misc [performance]
271

B
Bruce Momjian 已提交
272 273
SOURCE CODE
-----------
B
Bruce Momjian 已提交
274
* Add use of 'const' for varibles in source tree
B
Bruce Momjian 已提交
275
* Fix C optimizer problem where fmgr_ptr calls return different types [alpha]
B
Bruce Momjian 已提交
276
* -Add needed includes and removed unneeded include files(Bruce)
B
Bruce Momjian 已提交
277
* Make configure --enable-debug add -g on compile line
B
Bruce Momjian 已提交
278
* Does Mariposa source contain any other bug fixes?
B
Bruce Momjian 已提交
279
* Remove SET KSQO option if OR processing is improved(Tom)
B
Bruce Momjian 已提交
280

B
Bruce Momjian 已提交
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
	* Billy is Billy G. Allie <Bill.Allie@mug.org>
	* Brook is Brook Milligan <brook@trillium.NMSU.Edu>
	* Bruce is Bruce Momjian<maillist@candle.pha.pa.us>
	* 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>
	* Hiroshi is Hiroshi Inoue<Inoue@tpf.co.jp>
	* 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 已提交
301
	* Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
B
Bruce Momjian 已提交
302 303 304 305 306 307 308 309
	* 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>
	* Vadim is "Vadim B. Mikheev" <vadim@krs.ru>