TODO 22.1 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
3
Last updated:		Mon Sep  2 00:42:59 EDT 2002
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

10
A dash (-) marks changes that will appear in the upcoming 7.3 release.
B
Bruce Momjian 已提交
11

B
Bruce Momjian 已提交
12
Bracketed items "[]" have more detailed.
B
Bruce Momjian 已提交
13

B
Bruce Momjian 已提交
14

15 16
Urgent
======
B
Bruce Momjian 已提交
17

B
Bruce Momjian 已提交
18
* Add replication of distributed databases [replication]
B
Bruce Momjian 已提交
19
	o automatic failover
B
Bruce Momjian 已提交
20 21 22 23 24 25
	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)
B
Add:  
Bruce Momjian 已提交
26
	o allow replication over unreliable or non-persistent links
B
Bruce Momjian 已提交
27
	o http://gborg.postgresql.org/project/pgreplication/projdisplay.php
B
Bruce Momjian 已提交
28
* Point-in-time data recovery using backup and write-ahead log
B
Bruce Momjian 已提交
29

30

31 32
Reporting
=========
B
Bruce Momjian 已提交
33 34 35 36

* Allow elog() to return error codes, module name, file name, line
  number, not just messages (Peter E)
* Add error codes (Peter E)
B
Add:  
Bruce Momjian 已提交
37
* Make error messages more consistent [error]
B
Bruce Momjian 已提交
38
* -Change DEBUG startup tag to LOG (Bruce)
B
Bruce Momjian 已提交
39
* Show location of syntax error in query [yacc]
B
Done:  
Bruce Momjian 已提交
40
* -Add getpid() function to backend
B
Bruce Momjian 已提交
41
* Allow logging of query durations
B
Bruce Momjian 已提交
42

43

44 45
Permissions
===========
B
Bruce Momjian 已提交
46

B
Done:  
Bruce Momjian 已提交
47
* -Improve control over user privileges, including table creation
B
Bruce Momjian 已提交
48
* -Allow user/group names to be specified directly in pg_hba.conf (Bruce)
B
Done:  
Bruce Momjian 已提交
49
* -Add PGPASSWORDFILE environment variable or ~/.pgpass to store
B
Bruce Momjian 已提交
50
  user/host/password combinations
B
Bruce Momjian 已提交
51 52
* Make single-user local access permissions the default by limiting
  permissions on the socket file (Peter E)
53
* -Allow permissions for functions (Peter E)
B
Add:  
Bruce Momjian 已提交
54
* -Allow object creation to be disabled for specific users
B
Add:  
Bruce Momjian 已提交
55

B
Bruce Momjian 已提交
56

57 58
Administration
==============
B
Bruce Momjian 已提交
59 60

* Incremental backups
61
* -Make it easier to create a database owned by someone who can't createdb,
B
Change:  
Bruce Momjian 已提交
62
  perhaps CREATE DATABASE dbname WITH OWNER = "user" (Gavin)
63
* -Make equals sign optional in CREATE DATABASE WITH param = 'val'
B
Bruce Momjian 已提交
64
* Remove unreferenced table files and temp tables during database vacuum
B
Bruce Momjian 已提交
65
  or postmaster startup (Bruce)
B
Bruce Momjian 已提交
66 67
* Remove behavior of postmaster -o after making postmaster/postgres
  flags unique
B
Bruce Momjian 已提交
68
* -Prevent SIGHUP and 'pg_ctl reload' from changing command line
B
Bruce Momjian 已提交
69
  specified parameters to postgresql.conf defaults (Peter E)
B
Add:  
Bruce Momjian 已提交
70
* Allow easy display of usernames in a group
B
Added:  
Bruce Momjian 已提交
71
* Allow configuration files to be specified in a different directory
B
Bruce Momjian 已提交
72
* Reserve last few process slots for super-user if max_connections reached
B
Add:  
Bruce Momjian 已提交
73
* Add GUC parameter to print queries that generate errors
B
Bruce Momjian 已提交
74

75 76
Data Types
==========
B
Bruce Momjian 已提交
77

B
Bruce Momjian 已提交
78
* -Add domain capability (Rod Taylor)
B
Bruce Momjian 已提交
79
* Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
80
* Remove Money type, add money formatting for decimal type
B
Done:  
Bruce Momjian 已提交
81
* -SELECT cash_out(2) crashes because of opaque
82
* Declare typein/out functions in pg_proc with a special "C string" data type
B
Bruce Momjian 已提交
83
* Functions returning sets do not totally work
B
Added  
Bruce Momjian 已提交
84
* Change factorial to return a numeric
B
Add:  
Bruce Momjian 已提交
85
* Change NUMERIC data type to use base 10,000 internally
B
Add:  
Bruce Momjian 已提交
86
* Change NUMERIC to enforce the maximum precision, and increase it
B
Bruce Momjian 已提交
87
* Add function to return compressed length of TOAST data values (Tom)
B
Bruce Momjian 已提交
88
* -Add GUC parameter for DATESTYLE
B
Add:  
Bruce Momjian 已提交
89
* Allow INET subnet tests using non-constants
B
Add:  
Bruce Momjian 已提交
90
* Allow bytea to handle LIKE with non-TEXT patterns
B
Add:  
Bruce Momjian 已提交
91

B
Bruce Momjian 已提交
92 93 94 95 96

* CONVERSION
	o Store binary-compatible type information in the system
	o Allow better handling of numeric constants, type conversion 
	  [typeconv]
B
Done:  
Bruce Momjian 已提交
97
	o -SELECT col FROM tab WHERE numeric_col = 10.1 fails, requires quotes
B
Bruce Momjian 已提交
98

99
* ARRAYS
B
Bruce Momjian 已提交
100 101
	o Allow nulls in arrays
	o Allow arrays to be ORDER'ed
B
Bruce Momjian 已提交
102
	o Ensure we have array-eq operators for every built-in array type
B
Bruce Momjian 已提交
103 104
	o Support construction of array result values in expressions

B
Bruce Momjian 已提交
105
* BINARY DATA
B
Bruce Momjian 已提交
106
	o Improve vacuum of large objects, like /contrib/vacuumlo
B
Bruce Momjian 已提交
107 108 109 110
	o Add security checking for large objects
	o Make file in/out interface for TOAST columns, similar to large object
	  interface (force out-of-line storage and no compression)
	o Auto-delete large objects when referencing row is deleted
B
Bruce Momjian 已提交
111

112

113 114
Multi-Language Support
======================
B
Bruce Momjian 已提交
115

116
* Add NCHAR (as distinguished from ordinary varchar),
B
Bruce Momjian 已提交
117
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
118
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
119
* Allow setting database character set without multibyte enabled
B
Bruce Momjian 已提交
120
* Improve Unicode combined character handling
B
Bruce Momjian 已提交
121
* Optimize locale to have minimal performance impact when not used (Peter E)
B
Bruce Momjian 已提交
122
* Add octet_length_server() and octet_length_client() (Thomas, Tatsuo)
B
Bruce Momjian 已提交
123
* Make octet_length_client the same as octet_length() (?)
B
Added:  
Bruce Momjian 已提交
124 125
* Prevent mismatch of frontend/backend encodings from converting bytea
  data from being interpreted as encoded strings
126

127 128
Views / Rules
=============
B
Bruce Momjian 已提交
129

B
Bruce Momjian 已提交
130
* Automatically create rules on views so they are updateable, per SQL92 [view]
B
Bruce Momjian 已提交
131
* Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
B
Bruce Momjian 已提交
132
* Allow NOTIFY in rules involving conditionals
B
Bruce Momjian 已提交
133
* Have views on temporary tables exist in the temporary namespace
B
Bruce Momjian 已提交
134
* Move psql backslash information into views
B
Bruce Momjian 已提交
135
* Allow RULE recompilation
B
Bruce Momjian 已提交
136
* -Remove brackets as multi-statement rule grouping, must use parens (Bruce)
B
Add  
Bruce Momjian 已提交
137
* Prevent aggregates from being used in rule WHERE clauses
138

B
Add:  
Bruce Momjian 已提交
139

140 141
Indexes
=======
B
Bruce Momjian 已提交
142 143

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
144
  fails index can't store constant parameters
B
Bruce Momjian 已提交
145
* Order duplicate index entries by tid for faster heap lookups
B
Bruce Momjian 已提交
146 147
* Allow inherited tables to inherit index, UNIQUE constraint, and primary
  key, foreign key  [inheritance]
B
Bruce Momjian 已提交
148 149 150
* 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
Done:  
Bruce Momjian 已提交
151
* -Allow UPDATE/DELETE on inherited table
B
Bruce Momjian 已提交
152
* Have UPDATE/DELETE clean out indexes
B
Bruce Momjian 已提交
153
* Add UNIQUE capability to non-btree indexes
B
Bruce Momjian 已提交
154 155
* Add btree index support for reltime, tinterval, regproc
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
156 157
* Certain indexes will not shrink, e.g. indexes on ever-increasing
  columns and indexes with many duplicate keys
B
Bruce Momjian 已提交
158
* Use indexes for min() and max() or convert to SELECT col FROM tab ORDER
B
Bruce Momjian 已提交
159
  BY col DESC LIMIT 1 if appropriate index exists and WHERE clause acceptible
B
Bruce Momjian 已提交
160
* Allow LIKE indexing optimization for non-ASCII locales
B
Bruce Momjian 已提交
161 162 163
* Use index to restrict rows returned by multi-key index when used with
  non-consecutive keys or OR clauses, so fewer heap accesses
* Be smarter about insertion of already-ordered data into btree index
B
Bruce Momjian 已提交
164
* -Add deleted bit to index tuples to reduce heap access
B
Bruce Momjian 已提交
165
* Prevent index uniqueness checks when UPDATE does not modifying column
B
Update:  
Bruce Momjian 已提交
166 167
* Use bitmaps to fetch heap pages in sequential order [performance]
* Use bitmaps to combine existing indexes [performance]
B
Bruce Momjian 已提交
168
* Improve handling of index scans for NULL
B
Bruce Momjian 已提交
169 170
* Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
  float4, numeric/decimal too [optimizer]
B
Bruce Momjian 已提交
171
* Add FILLFACTOR to btree index creation
B
Bruce Momjian 已提交
172
* Improve concurrency in GIST
B
Bruce Momjian 已提交
173
* Improve concurrency of hash indexes (Neil Conway)
B
Done:  
Bruce Momjian 已提交
174
* -Test hash index performance and discourage usage
B
Bruce Momjian 已提交
175

B
Bruce Momjian 已提交
176

177 178
Commands
========
B
Bruce Momjian 已提交
179

B
Bruce Momjian 已提交
180
* -Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
B
Bruce Momjian 已提交
181
* Add BETWEEN ASYMMETRIC/SYMMETRIC (Christopher)
B
Bruce Momjian 已提交
182
* -Remove LIMIT #,# and force use LIMIT and OFFSET clauses in 7.3 (Bruce)
B
Bruce Momjian 已提交
183
* Allow LIMIT/OFFSET to use expressions
B
Done:  
Bruce Momjian 已提交
184
* -Disallow TRUNCATE on tables that are involved in referential constraints
B
Bruce Momjian 已提交
185
* Add OR REPLACE clauses to non-FUNCTION object creation
B
Bruce Momjian 已提交
186 187
* CREATE TABLE AS can not determine column lengths from expressions [atttypmod]
* Allow UPDATE to handle complex aggregates [update]
B
Bruce Momjian 已提交
188
* -Prevent create/drop scripts from allowing extra args (Bruce)
B
Bruce Momjian 已提交
189
* Allow command blocks to ignore certain types of errors
B
Added:  
Bruce Momjian 已提交
190
* Allow backslash handling in quoted strings to be disabled for portability
B
Add:  
Bruce Momjian 已提交
191
* Return proper effected tuple count from complex commands [return]
B
Add:  
Bruce Momjian 已提交
192
* Allow DELETE to handle table aliases for self-joins [delete]
B
Add:  
Bruce Momjian 已提交
193
* Add CORRESPONDING BY to UNION/INTERSECT/EXCEPT
B
Add:  
Bruce Momjian 已提交
194
* Allow REINDEX to rebuild all indexes, remove /contrib/reindex
B
Bruce Momjian 已提交
195

B
Bruce Momjian 已提交
196
* ALTER
B
Bruce Momjian 已提交
197 198
	o ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
	o ALTER TABLE ADD COLUMN to inherited table put column in wrong place
B
Bruce Momjian 已提交
199
	  [inheritance]
200
	o -Add ALTER TABLE DROP COLUMN feature
B
Bruce Momjian 已提交
201
	o Add ALTER FUNCTION
B
Bruce Momjian 已提交
202
	o -Add ALTER TABLE DROP non-CHECK CONSTRAINT
B
Bruce Momjian 已提交
203 204 205
	o -ALTER TABLE ADD PRIMARY KEY (Tom)
	o -ALTER TABLE ADD UNIQUE (Tom)
	o -ALTER TABLE ALTER COLUMN SET/DROP NOT NULL (Christopher Kings-Lynne)
B
Bruce Momjian 已提交
206
	o ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence
B
Bruce Momjian 已提交
207
	o ALTER TABLE ADD COLUMN column DEFAULT should fill existing
B
Bruce Momjian 已提交
208
	  rows with DEFAULT value
209
	o -Have ALTER TABLE OWNER change all dependant objects like indexes
B
Add:  
Bruce Momjian 已提交
210
	o Add ALTER TABLE tab SET WITHOUT OIDS
B
Bruce Momjian 已提交
211

B
Bruce Momjian 已提交
212
* CLUSTER
B
Done:  
Bruce Momjian 已提交
213
	o -Cluster all tables at once using pg_index.indisclustered set during
B
Update:  
Bruce Momjian 已提交
214
          previous CLUSTER
B
Done:  
Bruce Momjian 已提交
215
	o -Prevent loss of indexes, permissions, inheritance
B
Bruce Momjian 已提交
216
	o Automatically maintain clustering on a table
B
Add:  
Bruce Momjian 已提交
217
	o Allow CLUSTER to cluster all tables, remove clusterdb
B
Bruce Momjian 已提交
218

B
Bruce Momjian 已提交
219
* COPY
B
Bruce Momjian 已提交
220
	o -Allow specification of column names
B
Bruce Momjian 已提交
221
	o Allow dump/load of CSV format
B
Bruce Momjian 已提交
222
	o -Change syntax to WITH DELIMITER, (keep old syntax around?)
B
Add:  
Bruce Momjian 已提交
223
	o Allow COPY to report error lines and continue;  optionally
224
	  allow error codes to be specified; requires savepoints or can
B
Bruce Momjian 已提交
225
	  not be run in a multi-statement transaction
B
Done:  
Bruce Momjian 已提交
226
	o -Generate failure on short COPY lines rather than pad NULLs
B
Bruce Momjian 已提交
227

B
Bruce Momjian 已提交
228
* CURSOR
B
Bruce Momjian 已提交
229
	o Allow BINARY option to SELECT, just like DECLARE
B
Bruce Momjian 已提交
230
	o MOVE 0 should not move to end of cursor
B
Bruce Momjian 已提交
231
	o Allow UPDATE/DELETE WHERE CURRENT OF cursor using per-cursor tid
B
Bruce Momjian 已提交
232
	  stored in the backend
B
Bruce Momjian 已提交
233
	o Prevent DROP of table being referenced by our own open cursor
B
Add:  
Bruce Momjian 已提交
234
	o Allow cursors outside transactions [cursor]
B
Bruce Momjian 已提交
235

B
Bruce Momjian 已提交
236
* INSERT
B
Bruce Momjian 已提交
237 238
	o Allow INSERT/UPDATE of system-generated oid value for a row
	o Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
B
Bruce Momjian 已提交
239
	o -Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
B
Bruce Momjian 已提交
240
	o -Disallow missing columns in INSERT ... VALUES, per ANSI
B
Bruce Momjian 已提交
241
	o Allow INSERT/UPDATE ... RETURNING new.col or old.col; handle
B
Bruce Momjian 已提交
242
	  RULE cases (Philip)
B
Bruce Momjian 已提交
243

B
Bruce Momjian 已提交
244
* SHOW/SET
B
Done:  
Bruce Momjian 已提交
245
	o -Add command to display locks
B
Bruce Momjian 已提交
246
	o -Add SET or BEGIN timeout parameter to cancel query
B
Bruce Momjian 已提交
247
	o Add SET REAL_FORMAT and SET DOUBLE_PRECISION_FORMAT using printf args
B
Bruce Momjian 已提交
248
	o -Remove SET KSQO option now that OR processing is improved (Tom)
B
Bruce Momjian 已提交
249
	o Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
B
Bruce Momjian 已提交
250
	  ANALYZE, and CLUSTER
B
Bruce Momjian 已提交
251
	o Add SHOW command to see locale
B
Bruce Momjian 已提交
252
	o -Allow SHOW to output as a query result, like EXPLAIN
B
Bruce Momjian 已提交
253
	o -Abort all SET changes made in an aborted transaction
B
Add:  
Bruce Momjian 已提交
254
	o Add SET SCHEMA
B
Bruce Momjian 已提交
255

B
Bruce Momjian 已提交
256
* SERVER-SIDE LANGUAGES
B
Bruce Momjian 已提交
257
	o Allow PL/PgSQL's RAISE function to take expressions
B
Done:  
Bruce Momjian 已提交
258
	o -Fix PL/PgSQL to handle quoted mixed-case identifiers
B
Bruce Momjian 已提交
259 260
	o Change PL/PgSQL to use palloc() instead of malloc()
	o Add untrusted version of plpython
B
Update:  
Bruce Momjian 已提交
261 262
	o Allow Java server-side programming, http://pljava.sourceforge.net
	  [java]
B
Add:  
Bruce Momjian 已提交
263
	o Fix problems with complex temporary table creation/destruction
264
	  without using PL/PgSQL EXECUTE, needs cache prevention/invalidation
B
Update:  
Bruce Momjian 已提交
265
        o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
B
Added:  
Bruce Momjian 已提交
266
	o Improve PL/PgSQL exception handling
B
Bruce Momjian 已提交
267
	o Allow parameters to be specified by name and type during 
B
Added:  
Bruce Momjian 已提交
268
	  definition
B
Bruce Momjian 已提交
269
	o Allow function parameters to be passed by name,
B
Added:  
Bruce Momjian 已提交
270 271 272 273
	  get_employee_salary(emp_id => 12345, tax_year => 2001)
	o Add PL/PgSQL packages
	o Allow array declarations and other data types in PL/PgSQl DECLARE
	o Add PL/PgSQL PROCEDURES that can return multiple values
B
Add:  
Bruce Momjian 已提交
274
	o Add table function support to pltcl, plperl, plpython
B
Add:  
Bruce Momjian 已提交
275

B
Bruce Momjian 已提交
276

277 278
Clients
=======
B
Bruce Momjian 已提交
279

B
Bruce Momjian 已提交
280
* Have pg_dump use LEFT OUTER JOIN in multi-table SELECTs
B
Bruce Momjian 已提交
281
  or multiple SELECTS to avoid bad system catalog entries
B
Bruce Momjian 已提交
282
* -Have pg_dump -C dump database location and encoding information
B
Bruce Momjian 已提交
283
* -Allow psql \d to show foreign keys
B
Bruce Momjian 已提交
284
* -Allow psql \d to show temporary table structure (Tom)
285
* Allow psql to show transaction status if backend protocol changes made
B
Bruce Momjian 已提交
286
* Add XML interface:  psql, pg_dump, COPY, separate server (?)
B
Bruce Momjian 已提交
287
* Add config file check for $ODBCINI, $HOME/.odbc.ini, installpath/etc/odbc.ini
288
* -Have pg_dump use ADD PRIMARY KEY after COPY, for performance (Neil Conway)
B
Bruce Momjian 已提交
289

B
Bruce Momjian 已提交
290
* JDBC
B
Bruce Momjian 已提交
291
	o Comprehensive test suite. This may be available already.
B
Bruce Momjian 已提交
292
	o -Updateable resultSet
B
Bruce Momjian 已提交
293 294
	o JDBC-standard BLOB support
	o Error Codes (pending backend implementation)
B
Added  
Bruce Momjian 已提交
295
	o Support both 'make' and 'ant'
B
Barry Lind 已提交
296
	o Fix LargeObject API to handle OIDs as unsigned ints
297
	o -Implement cancel() method on Statement
B
Barry Lind 已提交
298
	o Use cursors implicitly to avoid large results (see setCursorName())
B
Done:  
Bruce Momjian 已提交
299
        o -Add support for CallableStatements
B
Bruce Momjian 已提交
300
	o Add LISTEN/NOTIFY support to the JDBC driver (Barry)
B
Done:  
Bruce Momjian 已提交
301
	o -Compile under jdk 1.4
B
Bruce Momjian 已提交
302

B
Bruce Momjian 已提交
303
* ECPG
B
Bruce Momjian 已提交
304 305 306
	o Implement set descriptor, using descriptor
	o Make casts work in variable initializations
	o Implement SQLDA
B
Bruce Momjian 已提交
307
	o Allow multi-threaded use of SQLCA
B
Bruce Momjian 已提交
308
	o Solve cardinality > 1 for input descriptors / variables
B
Bruce Momjian 已提交
309 310 311 312 313 314 315
	o Understand structure definitions outside a declare section
	o sqlwarn[6] should be 'W' if the PRECISION or SCALE value specified
	o Improve error handling
	o Allow :var[:index] or :var[<integer>] as cvariable for an array var
	o Add a semantic check level, e.g. check if a table really exists
	o Fix nested C comments
	o Add SQLSTATE
B
Bruce Momjian 已提交
316
	o fix handling of DB attributes that are arrays
B
Bruce Momjian 已提交
317

B
Added:  
Bruce Momjian 已提交
318 319 320 321 322
* ODBC
	o ODBC 3.0 support
	o Unicode(UCS-2) support
	o Updatable cursors support

323

324 325
Referential Integrity
=====================
B
Bruce Momjian 已提交
326

B
Bruce Momjian 已提交
327
* Add MATCH PARTIAL referential integrity [foreign]
B
Bruce Momjian 已提交
328
* Add deferred trigger queue file (Jan)
B
Bruce Momjian 已提交
329
* -Allow oid to act as a foreign key
B
Bruce Momjian 已提交
330
* Implement dirty reads and use them in RI triggers
B
Bruce Momjian 已提交
331
* Make triggers refer to columns by number, not name
B
Bruce Momjian 已提交
332
* Enforce referential integrity for system tables
333
* -Allow user to control trigger firing order (Tom)
B
Bruce Momjian 已提交
334
* -Add ALTER TRIGGER ... RENAME
B
Bruce Momjian 已提交
335
* Change foreign key constraint for array -> element to mean element
B
Bruce Momjian 已提交
336
  in array
B
Bruce Momjian 已提交
337
* Fix foreign key constraints to not error on intermediate db states (Stephan)
B
Add:  
Bruce Momjian 已提交
338
* Allow DEFERRABLE UNIQUE constraints
B
Add:  
Bruce Momjian 已提交
339
* Allow triggers to be disabled [trigger]
340

B
Bruce Momjian 已提交
341

342 343
Dependency Checking
===================
B
Bruce Momjian 已提交
344

B
Bruce Momjian 已提交
345
* -Add pg_depend table for dependency recording; use sysrelid, oid,
B
Bruce Momjian 已提交
346
  depend_sysrelid, depend_oid, name
B
Bruce Momjian 已提交
347
* -Auto-destroy sequence on DROP of table with SERIAL; perhaps a separate
B
Bruce Momjian 已提交
348
  SERIAL type
B
Bruce Momjian 已提交
349 350
* Have SERIAL generate non-colliding sequence names when we have 
  auto-destruction
B
Bruce Momjian 已提交
351
* -Prevent column dropping if column is used by foreign key
B
Bruce Momjian 已提交
352
* Propagate column or table renaming to foreign key constraints
B
Bruce Momjian 已提交
353 354
* -Automatically drop constraints/functions when object is dropped
* -Make foreign key constraints clearer in dump file
B
Bruce Momjian 已提交
355
* -Make other constraints clearer in dump file
B
Bruce Momjian 已提交
356
* -Make foreign keys easier to identify
B
Bruce Momjian 已提交
357
* Flush cached query plans when their underlying catalog data changes
B
Add:  
Bruce Momjian 已提交
358
* Use dependency information to dump data in proper order
359

B
Add:  
Bruce Momjian 已提交
360

361 362
Transactions
============
B
Bruce Momjian 已提交
363 364 365

* Allow autocommit so always in a transaction block
* Overhaul bufmgr/lockmgr/transaction manager
B
Bruce Momjian 已提交
366
* Allow savepoints / nested transactions [transactions]
B
Bruce Momjian 已提交
367

368

369 370
Exotic Features
===============
371 372

* Add sql3 recursive unions
B
Bruce Momjian 已提交
373
* Add the concept of dataspaces/tablespaces [tablespaces]
B
Bruce Momjian 已提交
374
* -Add SQL92 schemas (Tom)
B
Bruce Momjian 已提交
375
* Allow queries across multiple databases [crossdb]
B
Bruce Momjian 已提交
376
* Add pre-parsing phase that converts non-ANSI features to supported features
B
Bruce Momjian 已提交
377
* Allow plug-in modules to emulate features from other databases
B
Bruce Momjian 已提交
378
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
B
Bruce Momjian 已提交
379
  to clients
380

B
Bruce Momjian 已提交
381

B
Bruce Momjian 已提交
382
PERFORMANCE
383 384
===========

B
Bruce Momjian 已提交
385

386 387
Fsync
=====
B
Bruce Momjian 已提交
388

B
Bruce Momjian 已提交
389
* Delay fsync() when other backends are about to commit too [fsync]
B
Bruce Momjian 已提交
390
	o Determine optimal commit_delay value
B
Bruce Momjian 已提交
391
* Determine optimal fdatasync/fsync, O_SYNC/O_DSYNC options
B
Bruce Momjian 已提交
392
	o Allow multiple blocks to be written to WAL with one write()
B
Bruce Momjian 已提交
393

B
Bruce Momjian 已提交
394

395 396
Cache
=====
B
Bruce Momjian 已提交
397
* Cache most recent query plan(s) (Neil) [prepare]
B
Bruce Momjian 已提交
398
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
B
Bruce Momjian 已提交
399
* Add free-behind capability for large sequential scans (Bruce)
B
Add  
Bruce Momjian 已提交
400
* Allow binding query args over FE/BE protocol
B
Bruce Momjian 已提交
401
* Consider use of open/fcntl(O_DIRECT) to minimize OS caching
B
Bruce Momjian 已提交
402
* Make blind writes go through the file descriptor cache
B
Bruce Momjian 已提交
403

404

405 406
Vacuum
======
B
Bruce Momjian 已提交
407 408 409 410

* 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]
411
* Provide automatic running of vacuum in the background (Tom)
B
Add:  
Bruce Momjian 已提交
412
* Allow free space map to be auto-sized or warn when it is too small
B
Add:  
Bruce Momjian 已提交
413

414 415
Locking
=======
416 417 418

* Make locking of shared data structures more fine-grained
* Add code to detect an SMP machine and handle spinlocks accordingly
B
Bruce Momjian 已提交
419 420
  from distributted.net, http://www1.distributed.net/source, 
  in client/common/cpucheck.cpp
421 422
* Research use of sched_yield() for spinlock acquisition failure

423

424 425
Startup Time
============
B
Bruce Momjian 已提交
426

B
Bruce Momjian 已提交
427
* Experiment with multi-threaded backend [thread]
B
Bruce Momjian 已提交
428
* Add connection pooling [pool]
B
Bruce Momjian 已提交
429
* Allow persistent backends [persistent]
B
Bruce Momjian 已提交
430 431
* Create a transaction processor to aid in persistent connections and
  connection pooling
432 433 434
* Do listen() in postmaster and accept() in pre-forked backend
* Have pre-forked backend pre-connect to last requested database or pass
  file descriptor to backend pre-forked for matching database
B
Bruce Momjian 已提交
435
* -Cache system catalog information in per-database files (Tom)
436

437

438 439
Write-Ahead Log
===============
440

441 442
* Have after-change WAL write()'s write only modified data to kernel
* Reduce number of after-change WAL writes; they exist only to gaurd against
B
Add:  
Bruce Momjian 已提交
443
  partial page writes [wal]
444
* Turn off after-change writes if fsync is disabled (?)
B
Bruce Momjian 已提交
445
* Add WAL index reliability improvement to non-btree indexes
446
* -Reorder postgresql.conf WAL items in order of importance (Bruce)
B
Add:  
Bruce Momjian 已提交
447 448 449 450
* Remove wal_files postgresql.conf option because WAL files are now recycled
* Find proper defaults for postgresql.conf WAL entries
* Add checkpoint_min_warning postgresql.conf option to warn about checkpoints
  that are too frequent
B
Add:  
Bruce Momjian 已提交
451 452
* Allow xlog directory location to be specified during initdb, perhaps
  using symlinks
453

B
Bruce Momjian 已提交
454

455 456
Optimizer / Executor
====================
457 458 459 460 461 462

* Improve Subplan list handling
* Allow Subplans to use efficient joins(hash, merge) with upper variable
* Improve dynamic memory allocation by introducing tuple-context memory
  allocation (Tom)
* Add hash for evaluating GROUP BY aggregates
B
Bruce Momjian 已提交
463 464
* Nested FULL OUTER JOINs don't work (Tom)
* Allow merge and hash joins on expressions not just simple variables (Tom)
B
Bruce Momjian 已提交
465
* -Add new pg_proc cachable settings to specify whether function can be
B
Bruce Momjian 已提交
466
  evaluated only once or once per query
467
* -Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
B
Add  
Bruce Momjian 已提交
468
* Make IN/NOT IN have similar performance to EXISTS/NOT EXISTS [exists]
B
Bruce Momjian 已提交
469
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
B
Add:  
Bruce Momjian 已提交
470
* Allow ORDER BY ... LIMIT to select top values without sort or index
B
Bruce Momjian 已提交
471
  using a sequential scan for highest/lowest values (Oleg)
B
Modify:  
Bruce Momjian 已提交
472 473
* Inline simple SQL functions to avoid overhead (Tom)
* Precompile SQL functions to avoid overhead (Neil Conway)
B
Add:  
Bruce Momjian 已提交
474
* Add utility to compute accurate random_page_cost value
B
Bruce Momjian 已提交
475
* Improve ability to display optimizer analysis using OPTIMIZER_DEBUG
B
Bruce Momjian 已提交
476
* Use CHECK constraints to improve optimizer decisions
477

B
Bruce Momjian 已提交
478

479 480
Miscellaneous
=============
481 482 483 484 485

* Do async I/O for faster random read-ahead of data
* Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
  when it is available
* Use mmap() rather than SYSV shared memory or to write WAL files (?) [mmap]
B
Added:  
Bruce Momjian 已提交
486
* Improve caching of attribute offsets when NULLs exist in the row
B
Done:  
Bruce Momjian 已提交
487
* -Add Intimate Shared Memory(ISM) for Solaris
B
Added:  
Bruce Momjian 已提交
488
* Add documentation to lock shared memory into RAM for each OS, if possible
B
Bruce Momjian 已提交
489
* -Use faster flex flags for performance improvement (Peter E)
B
Done:  
Bruce Momjian 已提交
490
* -Add BSD-licensed qsort() for Solaris
B
Bruce Momjian 已提交
491

B
Bruce Momjian 已提交
492

493
Source Code
494 495
===========

B
Bruce Momjian 已提交
496
* Add use of 'const' for variables in source tree
497
* -Fix problems with libpq non-blocking/async code
B
Done:  
Bruce Momjian 已提交
498
* -Make sure all block numbers are unsigned to increase maximum table size
B
Done:  
Bruce Momjian 已提交
499
* -Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
B
Done:  
Bruce Momjian 已提交
500
* -HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG (Bruce)
B
Done:  
Bruce Momjian 已提交
501
* -Remove LockMethodTable.prio field, not used (Bruce)
B
Bruce Momjian 已提交
502
* Rename some /contrib modules from pg* to pg_*
B
Bruce Momjian 已提交
503
* Move some things from /contrib into main tree
B
Bruce Momjian 已提交
504
* Remove warnings created by -Wcast-align
B
Bruce Momjian 已提交
505
* Move platform-specific ps status display info from ps_status.c to ports
B
Done:  
Bruce Momjian 已提交
506
* -Make one version of simple_prompt() in code (Bruce, Tom)
507
* -Compile in syslog functionaility by default (Tatsuo)
B
Bruce Momjian 已提交
508
* Modify regression tests to prevent failures do to minor numeric rounding
B
Added:  
Bruce Momjian 已提交
509
* Add OpenBSD's getpeereid() call for local socket authentication (Bruce)
B
Typo.  
Bruce Momjian 已提交
510
* Improve access-permissions check on data directory in Cygwin (Tom)
511
* -Report failure to find readline or zlib at end of configure run
B
Added  
Bruce Momjian 已提交
512
* Add --port flag to regression tests
B
Done:  
Bruce Momjian 已提交
513 514
* -Increase identifier length (NAMEDATALEN) if small performance hit,
* -Increase maximum number of function parameters if little wasted space
B
Bruce Momjian 已提交
515 516 517
* Add documentation for perl, including mention of DBI/DBD perl location
* Add optional CRC checksum to heap and index pages
* Change representation of whole-tuple parameters to functions
B
Add:  
Bruce Momjian 已提交
518
* Clarify use of 'application' and 'command' tags in SGML docs
B
Bruce Momjian 已提交
519
* Better document ability to build only certain interfaces (Marc)
520
* Remove or relicense modules that are not under the BSD license, if possible
B
Added:  
Bruce Momjian 已提交
521
* Remove memory/file descriptor freeing befor elog(ERROR)  (Bruce)
B
Add:  
Bruce Momjian 已提交
522
* Create native Win32 port [win32]
B
Added:  
Bruce Momjian 已提交
523 524
* Fix glibc's mktime() to handle pre-1970's dates

525

B
Bruce Momjian 已提交
526 527 528 529 530
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
B
Bruce Momjian 已提交
531
* Barry is Barry Lind <barry@xythos.com>
B
Bruce Momjian 已提交
532
* Billy is Billy G. Allie <Bill.Allie@mug.org>
B
Bruce Momjian 已提交
533
* Bruce is Bruce Momjian <pgman@candle.pha.pa.us>
B
Bruce Momjian 已提交
534
* Christopher is Christopher Kings-Lynne <chriskl@familyhealth.com.au>
B
Bruce Momjian 已提交
535
* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net>
B
Bruce Momjian 已提交
536
* Dave is Dave Cramer <dave@fastcrypt.com>
B
Bruce Momjian 已提交
537 538 539 540
* Edmund is Edmund Mergl <E.Mergl@bawue.de>
* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
* Karel is Karel Zak <zakkr@zf.jcu.cz>
* Jan is Jan Wieck <wieck@sapserv.debis.de>
B
Bruce Momjian 已提交
541
* Liam is Liam Stewart <liams@redhat.com>
B
Bruce Momjian 已提交
542 543
* Marc is Marc Fournier <scrappy@hub.org>
* Mark is Mark Hollomon <mhh@mindspring.com>
B
Bruce Momjian 已提交
544
* Marko is Marko Kreen <marko@l-t.ee>
B
Bruce Momjian 已提交
545
* Michael is Michael Meskes <meskes@postgresql.org>
B
Bruce Momjian 已提交
546
* Neil is Neil Conway <nconway@klamath.dyndns.org>
B
Bruce Momjian 已提交
547 548
* Oleg is Oleg Bartunov <oleg@sai.msu.su>
* Peter M is Peter T Mount <peter@retep.org.uk>
B
Bruce Momjian 已提交
549
* Peter E is Peter Eisentraut <peter_e@gmx.net>
B
Bruce Momjian 已提交
550
* Philip is Philip Warner <pjw@rhyme.com.au>
B
Bruce Momjian 已提交
551
* Rod is Rod Taylor <rbt@zort.ca>
B
Bruce Momjian 已提交
552 553 554 555
* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
* Ryan is Ryan Bradetich <rbrad@hpb50023.boi.hp.com>
* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp>
B
Bruce Momjian 已提交
556
* Thomas is Thomas Lockhart <lockhart@fourpalms.org>
B
Bruce Momjian 已提交
557
* Tom is Tom Lane <tgl@sss.pgh.pa.us>
B
Bruce Momjian 已提交
558
* TomH is Tom I Helbekkmo <tih@Hamartun.Priv.no>
B
Bruce Momjian 已提交
559
* Vadim is Vadim B. Mikheev <vadim4o@email.com>