TODO 12.6 KB
Newer Older
B
Bruce Momjian 已提交
1 2
TODO list for PostgreSQL
========================
B
Bruce Momjian 已提交
3
Last updated:		Tue Sep 21 15:54:14 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

M
Marc G. Fournier 已提交
13 14
RELIABILITY
-----------
B
Bruce Momjian 已提交
15 16 17

RESOURCES

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

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 已提交
27
* Alter TABLE ADD COLUMN does not honor DEFAULT, add CONSTRAINT
B
Bruce Momjian 已提交
28 29
* Do not allow bpchar column creation without length
* Select a[1] FROM test fails, it needs test.a[1]
B
Bruce Momjian 已提交
30
* -Array index references without table name cause problems
B
Bruce Momjian 已提交
31
	(see TODO.detail/array)
B
Bruce Momjian 已提交
32
* Update table SET table.value = 3 fails
33
* Creating index of TIMESTAMP & RELTIME fails, or rename to DATETIME(Thomas)
B
Bruce Momjian 已提交
34
* SELECT foo UNION SELECT foo is incorrectly simplified to SELECT foo
B
Bruce Momjian 已提交
35 36
* -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 已提交
37
* UNION with LIMIT fails
B
Bruce Momjian 已提交
38 39
* 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 已提交
40
  (see TODO.detail/inherit)
B
Bruce Momjian 已提交
41
* CREATE TABLE x AS SELECT 1 UNION SELECT 2 fails
B
Bruce Momjian 已提交
42
* CREATE TABLE test(col char(2) DEFAULT user) fails in length restriction
B
Bruce Momjian 已提交
43 44
* mismatched types in CREATE TABLE ... DEFAULT causes problems
	(see TODO.detail/default)
B
Bruce Momjian 已提交
45
* SELECT ... UNION ... ORDER BY fails when sort expr not in result list
B
Bruce Momjian 已提交
46 47
* Be smarter about promoting types when UNION merges different data types
* SELECT ... UNION ... GROUP BY fails if column types disagree
B
Bruce Momjian 已提交
48
* redesign INSERT ... SELECT to have two levels of target list
B
Bruce Momjian 已提交
49
* -select * from pg_class where oid in (0,-1)
B
Bruce Momjian 已提交
50
* have INTERSECT/EXCEPT prevent duplicates unless ALL is specified
51
* prevent primary key of nine columns(see TODO.detail/primary)
B
Bruce Momjian 已提交
52 53 54 55

VIEWS

* Views containing aggregates sometimes fail(Jan)
B
Bruce Momjian 已提交
56
* Views with spaces in view name fail when referenced
B
Bruce Momjian 已提交
57

B
Bruce Momjian 已提交
58 59 60 61
MISC

* User who can create databases can modify pg_database table
* Plpgsql does not handle quoted mixed-case identifiers
B
Bruce Momjian 已提交
62
* Fix btree to give a useful elog when key > 1/2 (page - overhead)
B
Bruce Momjian 已提交
63
* pg_dump should preserve primary key information
M
Marc G. Fournier 已提交
64 65 66

ENHANCEMENTS
------------
B
Bruce Momjian 已提交
67 68 69

URGENT

B
Bruce Momjian 已提交
70 71
* Add referential integrity(Jan?)(see TODO.detail/primary)
* Add OUTER joins, left and right(see TODO.detail/outer)(Thomas, Bruce)
B
Bruce Momjian 已提交
72
* Allow long tuples by chaining or auto-storing outside db (chaining,large objs)
B
Bruce Momjian 已提交
73
* Eliminate limits on query length
B
Bruce Momjian 已提交
74
* Fix memory leak for expressions?, aggregates?(see TODO.detail/memory)(Tom?)
B
Bruce Momjian 已提交
75

B
Bruce Momjian 已提交
76 77
ADMIN

B
Bruce Momjian 已提交
78
* Better interface for adding to pg_group
B
Bruce Momjian 已提交
79
* More access control over who can create tables and access the database
B
Bruce Momjian 已提交
80 81 82 83
* Add syslog functionality
* Allow elog() to return error codes, not just messages
* Allow international error message support and add error codes
* Generate postmaster pid file and remove flock/fcntl lock code
B
Bruce Momjian 已提交
84 85
	(see TODO.detail/flock)
* Add ability to specifiy location of lock/socket files (see TODO.detail/flock)
B
Bruce Momjian 已提交
86

B
Bruce Momjian 已提交
87 88
TYPES

B
Bruce Momjian 已提交
89 90 91 92
* Add BIT, BIT VARYING
* Nchar (as distinguished from ordinary varchar),
* Domain capability
* Add STDDEV/VARIANCE() function for standard deviation computation/variance
B
Bruce Momjian 已提交
93 94
* Allow compression of large fields or a compressed field type
* Large objects
B
Bruce Momjian 已提交
95 96
	o Fix large object mapping scheme, own typeid or reltype(Peter)
	o Allow large text type to use large objects(Peter)
B
Bruce Momjian 已提交
97 98
	o Not to stuff everything as files in a single directory, hash dirs
	o Allow large object vacuuming
99
	o Tables that start with xinv confused to be large objects
B
Bruce Momjian 已提交
100 101 102 103 104 105
* 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 已提交
106 107
* Allow LOCALE on a per-column basis, default to ASCII
* Allow array on int8[]
B
Bruce Momjian 已提交
108
* Allow nulls in arrays
B
Bruce Momjian 已提交
109
* Remove Money type, add money formatting for decimal type
110
* Declare typein/out functions in pg_proc with a special "C string" data type
111
* Add non-large-object binary field
B
Bruce Momjian 已提交
112
* Add index on NUMERIC/DECIMAL type
B
Bruce Momjian 已提交
113
* Make Absolutetime/Relativetime int4 because time_t can be int8 on some ports
114
* Functions returning sets don't really work right(see TODO.detail/function)
B
Bruce Momjian 已提交
115 116

VIEWS
B
Bruce Momjian 已提交
117

B
Bruce Momjian 已提交
118
* Allow DISTINCT on views
B
Bruce Momjian 已提交
119
* Allow views of aggregate columns
B
Bruce Momjian 已提交
120 121
* Allow views with subselects

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 127 128 129
* 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 已提交
130 131 132 133
* Allow indexing of LIKE with localle character sets
* Allow indexing of more than eight columns

COMMANDS
B
Bruce Momjian 已提交
134 135

* ALTER TABLE ADD COLUMN to inherited table put column in wrong place
B
Bruce Momjian 已提交
136
	(see TODO.detail/inherit)
B
Bruce Momjian 已提交
137
* Add ALTER TABLE DROP/ALTER COLUMN feature
B
Bruce Momjian 已提交
138 139
* Allow CLUSTER on all tables at once, and improve CLUSTER, loses NOT
	NULL specification on table(see TODO.detail/cluster)
140
* Generate error on CREATE OPERATOR of ~~, ~ and and ~*
B
Bruce Momjian 已提交
141
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
B
Bruce Momjian 已提交
142
* Auto-destroy sequence on DROP of table with SERIAL(Ryan)
B
Bruce Momjian 已提交
143 144
* 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 已提交
145
* Allow ESCAPE '\' at the end of LIKE for ANSI compliance(see TODO.detail/like)
B
Bruce Momjian 已提交
146
* Rewrite the LIKE handling by rewriting the user string with the 
B
Bruce Momjian 已提交
147
  supplied ESCAPE(see TODO.detail/like)
B
Bruce Momjian 已提交
148
* Move LIKE index optimization handling to the optimizer
B
Bruce Momjian 已提交
149
* Allow RULE recompilation
B
Bruce Momjian 已提交
150
* Support UNION/INTERSECT/EXCEPT in sub-selects
B
Bruce Momjian 已提交
151
  
B
Bruce Momjian 已提交
152 153
CLIENTS

B
Bruce Momjian 已提交
154
* Make NULL's come out at the beginning or end depending on the 
B
Bruce Momjian 已提交
155
  ORDER BY direction
B
Bruce Momjian 已提交
156
* Allow flag to control COPY input/output of NULLs
B
Bruce Momjian 已提交
157
* Update reltuples from COPY command
B
Bruce Momjian 已提交
158 159
* Allow psql \copy to allow delimiters
* Add a function to return the last inserted oid, for use in psql scripts
160
* Allow psql to print nulls as distinct from ""(see TODO.detail/null)
B
Bruce Momjian 已提交
161
* PQrequestCancel() be able to terminate backend waiting for lock
B
Bruce Momjian 已提交
162

163 164 165 166 167 168 169
EXOTIC FEATURES

* Add sql3 recursive unions
* Add the concept of dataspaces
* Add replication of distributed databases
* Allow queries across multiple databases

B
Bruce Momjian 已提交
170 171
MISC

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

PERFORMANCE
-----------
B
Bruce Momjian 已提交
208 209 210

FSYNC

B
Bruce Momjian 已提交
211 212 213
* -Allow transaction commits with rollback with no-fsync performance
	(see TODO.detail/fsync)
* -Prevent fsync in SELECT-only queries
B
Bruce Momjian 已提交
214

B
Bruce Momjian 已提交
215 216
INDEXES

217
* Use indexes in ORDER BY for restrictive data sets, min(), max()
B
Bruce Momjian 已提交
218 219
* 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 已提交
220 221
  non-consecutive keys or OR clauses, so fewer heap accesses
* Convert function(constant) into a constant for index use
B
Bruce Momjian 已提交
222
* Allow LIMIT ability on single-table queries that have no ORDER BY to use
B
Bruce Momjian 已提交
223
  a matching index(see TODO.detail/limit)
B
Bruce Momjian 已提交
224
* Improve LIMIT processing by using index to limit rows processed
B
Bruce Momjian 已提交
225
	(see TODO.detail/limit) 
B
Bruce Momjian 已提交
226
* Have optimizer take LIMIT into account when considering index scans
B
Bruce Momjian 已提交
227
	(see TODO.detail/limit)
B
Bruce Momjian 已提交
228
* Make index creation use psort code, because it is now faster(Vadim)
229
* Allow creation of sort temp tables > 1 Gig
B
Bruce Momjian 已提交
230 231 232
* 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 已提交
233
* Allow SELECT * FROM tab WHERE int2col = 4 use int2col index
B
Bruce Momjian 已提交
234
	(see TODO.detail/optimizer)
B
Bruce Momjian 已提交
235
* Allow optimizer to prefer plans that match ORDER BY
B
Bruce Momjian 已提交
236

B
Bruce Momjian 已提交
237 238
CACHE

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

B
Bruce Momjian 已提交
244

B
Bruce Momjian 已提交
245 246
MISC

B
Bruce Momjian 已提交
247
* Allow compression of log and meta data
B
Bruce Momjian 已提交
248
* Update pg_statistic table to remove operator column
B
Bruce Momjian 已提交
249 250
* 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 已提交
251
* -Fix memory exhaustion when using many OR's(see TODO.detail/cnfify)
B
Bruce Momjian 已提交
252
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
B
Bruce Momjian 已提交
253
  when it is available
B
Bruce Momjian 已提交
254 255 256
* Use mmap() rather than SYSV shared memory(?)
* Process const = const parts of OR clause in separate pass
* Make oid use oidin/oidout not int4in/int4out in pg_type.h
B
Bruce Momjian 已提交
257
* Improve Subplan list handling
B
Bruce Momjian 已提交
258
* Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Bruce Momjian 已提交
259 260 261
* 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 已提交
262
  allocation(see TODO.detail/memory)
B
Bruce Momjian 已提交
263
* fix memory leak in cache code when non-existant table is referenced
264
* In WHERE tab1.x=3 AND tab1.x=tab2.y, add tab2.y=3
B
Bruce Momjian 已提交
265
* pass atttypmod through parser in more cases(see TODO.detail/atttypmod)
266
* remove duplicate type in/out functions for disk and net
B
Bruce Momjian 已提交
267
* change VACUUM ANALYZE to use btree comparison functions, not <,=,> calls
B
Bruce Momjian 已提交
268 269
* Allow persistent backends(see TODO.detail/persistent)
* Misc(see TODO.detail/performance)
270

B
Bruce Momjian 已提交
271 272
SOURCE CODE
-----------
B
Bruce Momjian 已提交
273
* Add use of 'const' for varibles in source tree
B
Bruce Momjian 已提交
274
* Fix C optimizer problem where fmgr_ptr calls return different types
B
Bruce Momjian 已提交
275 276
	(see TODO.detail/alpha)
* -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
B
Bruce Momjian 已提交
280 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>