TODO 21.6 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Bruce Momjian 已提交
3
#A dash (-) marks changes that will appear in the upcoming 7.5 release.#
4 5

Bracketed items "[]" have more detail.
M
Marc G. Fournier 已提交
6

B
Bruce Momjian 已提交
7
Current maintainer:	Bruce Momjian (pgman@candle.pha.pa.us)
B
Add:  
Bruce Momjian 已提交
8
Last updated:		Sat Jul 10 20:18:28 EDT 2004
M
Marc G. Fournier 已提交
9

B
Bruce Momjian 已提交
10
The most recent version of this document can be viewed at the PostgreSQL web site, http://www.PostgreSQL.org.
B
Bruce Momjian 已提交
11

B
Bruce Momjian 已提交
12

13 14
Urgent
======
B
Bruce Momjian 已提交
15

B
Bruce Momjian 已提交
16 17
* Point-in-time data recovery using backup and write-ahead log,
* Create native Win32 port, http://momjian.postgresql.org/main/writings/pgsql/project/win32.html
B
Bruce Momjian 已提交
18

B
Bruce Momjian 已提交
19

20 21
Administration
==============
B
Bruce Momjian 已提交
22 23

* Incremental backups
B
Bruce Momjian 已提交
24 25
* Remove behavior of postmaster -o after making postmaster/postgres
  flags unique
B
Added:  
Bruce Momjian 已提交
26
* Allow configuration files to be specified in a different directory
B
Add:  
Bruce Momjian 已提交
27
* Allow limits on per-db/user connections
B
Add:  
Bruce Momjian 已提交
28 29
* Add group object ownership, so groups can rename/drop/grant on objects,
  so we can implement roles
B
Done:  
Bruce Momjian 已提交
30
* -Add the concept of dataspaces/tablespaces (Gavin)
B
Done:  
Bruce Momjian 已提交
31
* -Allow logging of only data definition(DDL), or DDL and modification statements
B
Done:  
Bruce Momjian 已提交
32
* -Allow log lines to include session-level information, like database and user
B
Add:;  
Bruce Momjian 已提交
33
* Allow server log information to be output as INSERT statements
34 35
* Prevent default re-use of sysids for dropped users and groups
* Prevent dropping user that still owns objects, or auto-drop the objects
B
Add:  
Bruce Momjian 已提交
36 37
* Allow pooled connections to query prepared queries
* Allow pooled connections to close all open WITH HOLD cursors
B
Add:  
Bruce Momjian 已提交
38
* Allow major upgrades without dump/reload, perhaps using pg_upgrade
B
Add:  
Bruce Momjian 已提交
39
* Have SHOW ALL and pg_settings show descriptions for server-side variables(Joe)
B
Add:  
Bruce Momjian 已提交
40
* Allow external interfaces to extend the GUC variable set
B
Add:  
Bruce Momjian 已提交
41
* Allow GRANT/REVOKE permissions to be given to all schema objects with one command
B
Bruce Momjian 已提交
42
* Remove unreferenced table files created by transactions that were
B
Bruce Momjian 已提交
43
  in-progress when the server terminated abruptly
B
Add:  
Bruce Momjian 已提交
44 45
* Allow reporting of which objects are in which tablespaces
* Allow database recovery where tablespaces can't be created
B
Add:  
Bruce Momjian 已提交
46 47
* Add include functionality to postgresql.conf

B
Bruce Momjian 已提交
48 49 50 51 52 53 54 55
* Improve replication solutions
	o Automatic failover
	o Load balancing
	o Master/slave replication
	o Multi-master replication
	o Partition data across servers
	o Queries across databases or servers (two-phase commit)
	o Allow replication over unreliable or non-persistent links
B
Add:  
Bruce Momjian 已提交
56

B
Bruce Momjian 已提交
57

58 59
Data Types
==========
B
Bruce Momjian 已提交
60 61

* Remove Money type, add money formatting for decimal type
B
Bruce Momjian 已提交
62
* -Change factorial to return a numeric (Gavin)
B
Add:  
Bruce Momjian 已提交
63
* Change NUMERIC to enforce the maximum precision, and increase it
B
Bruce Momjian 已提交
64
* Add function to return compressed length of TOAST data values (Tom)
B
Update:  
Bruce Momjian 已提交
65
* Allow INET subnet tests using non-constants to be indexed
B
Update:  
Bruce Momjian 已提交
66
* Add transaction_timestamp(), statement_timestamp(), clock_timestamp() functionality
B
Add:  
Bruce Momjian 已提交
67
* Have sequence dependency track use of DEFAULT sequences, seqname.nextval
B
Update:  
Bruce Momjian 已提交
68
* Disallow changing default expression of a SERIAL column
B
Add:  
Bruce Momjian 已提交
69
* Allow infinite dates just like infinite timestamps
B
Bruce Momjian 已提交
70
* -Allow pg_dump to dump sequences using NO_MAXVALUE and NO_MINVALUE
B
Bruce Momjian 已提交
71
* Allow backend to output result sets in XML
B
Bruce Momjian 已提交
72
* -Prevent whole-row references from leaking memory, e.g. SELECT COUNT(tab.*)
B
Bruce Momjian 已提交
73
* Have initdb set DateStyle based on locale?
B
Add:  
Bruce Momjian 已提交
74
* Add pg_get_acldef(), pg_get_typedefault(), and pg_get_attrdef()
B
Add:  
Bruce Momjian 已提交
75
* Add ALTER DOMAIN, AGGREGATE, CONVERSION, SEQUENCE ... OWNER TO
B
Add:  
Bruce Momjian 已提交
76
* Allow to_char to print localized month names (Karel)
B
Add:  
Bruce Momjian 已提交
77
* Allow functions to have a search path specified at creation time
B
Bruce Momjian 已提交
78
* -Make LENGTH() of CHAR() not count trailing spaces
B
Add:  
Bruce Momjian 已提交
79
* Allow substring/replace() to get/set bit values
B
Add:  
Bruce Momjian 已提交
80
* Add GUC variable to allow output of interval values in ISO8601 format
B
Bruce Momjian 已提交
81
* Support composite types as table columns
B
Add:  
Bruce Momjian 已提交
82

B
Bruce Momjian 已提交
83

84
* ARRAYS
B
Bruce Momjian 已提交
85
	o Allow nulls in arrays
B
Bruce Momjian 已提交
86
	o Allow MIN()/MAX() on arrays
B
Bruce Momjian 已提交
87 88
	o Delay resolution of array expression type so assignment coercion 
	  can be performed on empty array expressions (Joe)
B
Bruce Momjian 已提交
89 90 91
	o Modify array literal representation to handle array index lower bound
	  of other than one

B
Bruce Momjian 已提交
92

B
Bruce Momjian 已提交
93
* BINARY DATA
B
Bruce Momjian 已提交
94
	o Improve vacuum of large objects, like /contrib/vacuumlo
B
Bruce Momjian 已提交
95 96 97 98
	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 已提交
99

100

101 102
Multi-Language Support
======================
B
Bruce Momjian 已提交
103

104
* Add NCHAR (as distinguished from ordinary varchar),
B
Update:  
Bruce Momjian 已提交
105 106 107
* Allow locale to be set at database creation
* Allow locale on a per-column basis, default to ASCII
* Optimize locale to have minimal performance impact when not used (Peter E)
B
Bruce Momjian 已提交
108
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
109
* Improve Unicode combined character handling
B
Bruce Momjian 已提交
110
* Add octet_length_server() and octet_length_client() (Thomas, Tatsuo)
B
Bruce Momjian 已提交
111
* Make octet_length_client the same as octet_length() (?)
B
Added:  
Bruce Momjian 已提交
112 113
* Prevent mismatch of frontend/backend encodings from converting bytea
  data from being interpreted as encoded strings
B
Done:  
Bruce Momjian 已提交
114
* -Fix upper()/lower() to work for multibyte encodings
B
Add:  
Bruce Momjian 已提交
115

116

117 118
Views / Rules
=============
B
Bruce Momjian 已提交
119

B
Bruce Momjian 已提交
120
* Automatically create rules on views so they are updateable, per SQL92 [view]
B
Bruce Momjian 已提交
121
* Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
B
Bruce Momjian 已提交
122
* Allow NOTIFY in rules involving conditionals
B
Bruce Momjian 已提交
123
* Have views on temporary tables exist in the temporary namespace
B
Add:  
Bruce Momjian 已提交
124
* Allow temporary views on non-temporary tables
B
Bruce Momjian 已提交
125
* Allow RULE recompilation
126

B
Add:  
Bruce Momjian 已提交
127

128 129
Indexes
=======
B
Bruce Momjian 已提交
130

B
Done:  
Bruce Momjian 已提交
131
* -Order duplicate index entries on creation by tid for faster heap lookups
B
Bruce Momjian 已提交
132 133
* Allow inherited tables to inherit index, UNIQUE constraint, and primary
  key, foreign key  [inheritance]
B
Bruce Momjian 已提交
134 135 136
* 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 已提交
137
* Add UNIQUE capability to non-btree indexes
B
Bruce Momjian 已提交
138
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
139
* Use indexes for min() and max() or convert to SELECT col FROM tab ORDER
B
Bruce Momjian 已提交
140
  BY col DESC LIMIT 1 if appropriate index exists and WHERE clause acceptible
B
Bruce Momjian 已提交
141 142 143
* 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 已提交
144
* Prevent index uniqueness checks when UPDATE does not modify the column
B
Update:  
Bruce Momjian 已提交
145 146
* Use bitmaps to fetch heap pages in sequential order [performance]
* Use bitmaps to combine existing indexes [performance]
B
Bruce Momjian 已提交
147
* Allow use of indexes to search for NULLs
B
Bruce Momjian 已提交
148
* -Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
B
Bruce Momjian 已提交
149
  float4, numeric/decimal too
B
Bruce Momjian 已提交
150
* Add FILLFACTOR to btree index creation
B
Reword:  
Bruce Momjian 已提交
151
* Add concurrency to GIST
B
Add:  
Bruce Momjian 已提交
152
* Allow a single index to index multiple tables (for inheritance and subtables)
B
Reword:  
Bruce Momjian 已提交
153
* Pack hash index buckets onto disk pages more efficiently
B
Bruce Momjian 已提交
154

B
Bruce Momjian 已提交
155

156 157
Commands
========
B
Bruce Momjian 已提交
158

B
Bruce Momjian 已提交
159
* Add BETWEEN ASYMMETRIC/SYMMETRIC (Christopher)
B
Add:  
Bruce Momjian 已提交
160
* Change LIMIT/OFFSET to use int8
B
Bruce Momjian 已提交
161 162
* CREATE TABLE AS can not determine column lengths from expressions [atttypmod]
* Allow UPDATE to handle complex aggregates [update]
B
Bruce Momjian 已提交
163
* Allow command blocks to ignore certain types of errors
B
Added:  
Bruce Momjian 已提交
164
* Allow backslash handling in quoted strings to be disabled for portability
B
Update:  
Bruce Momjian 已提交
165
* Allow UPDATE, DELETE to handle table aliases for self-joins [delete]
B
Add:  
Bruce Momjian 已提交
166
* Add CORRESPONDING BY to UNION/INTERSECT/EXCEPT
B
Add:  
Bruce Momjian 已提交
167
* Allow REINDEX to rebuild all indexes, remove /contrib/reindex
B
Add:  
Bruce Momjian 已提交
168
* Add ROLLUP, CUBE, GROUPING SETS options to GROUP BY
B
Add:  
Bruce Momjian 已提交
169
* Add schema option to createlang
B
Bruce Momjian 已提交
170
* Allow savepoints / nested transactions [transactions] (Alvaro)
B
Add:  
Bruce Momjian 已提交
171
* Use nested transactions to prevent syntax errors from aborting a transaction
B
Add:  
Bruce Momjian 已提交
172
* Allow UPDATE tab SET ROW (col, ...) = (...) for updating multiple columns
B
Add:  
Bruce Momjian 已提交
173
* Allow SET CONSTRAINTS to be qualified by schema/table
B
Add:  
Bruce Momjian 已提交
174
* Prevent COMMENT ON DATABASE from using a database name
B
Done:  
Bruce Momjian 已提交
175
* -Add NO WAIT LOCKs
B
Add:  
Bruce Momjian 已提交
176
* Allow TRUNCATE ... CASCADE/RESTRICT
B
Add:  
Bruce Momjian 已提交
177
* Allow PREPARE of cursors
B
Add:  
Bruce Momjian 已提交
178
* Allow LISTEN/NOTIFY to store info in memory rather than tables
B
Done:  
Bruce Momjian 已提交
179
* -COMMENT ON [ CAST | CONVERSION | OPERATOR CLASS | LARGE OBJECT | LANGUAGE ] 
B
Update:  
Bruce Momjian 已提交
180
  (Christopher) 
B
Added:  
Bruce Momjian 已提交
181
* Dump large object comments in custom dump format
B
Bruce Momjian 已提交
182
* Add optional textual message to NOTIFY
B
Bruce Momjian 已提交
183
* -Allow more ISOLATION LEVELS to be accepted
B
Add:  
Bruce Momjian 已提交
184 185
* Allow CREATE TABLE foo (f1 INT CHECK (f1 > 0) CHECK (f1 < 10)) to work
  by searching for non-conflicting constraint names, and prefix with table name
B
Add:  
Bruce Momjian 已提交
186
* Use more reliable method for CREATE DATABASE to get a consistent copy of db
B
Done:  
Bruce Momjian 已提交
187
* -Have psql \dn show only visible temp schemas using current_schemas()
B
Done:  
Bruce Momjian 已提交
188
* -Have psql '\i ~/<tab><tab>' actually load files it displays from home dir
B
Add:  
Bruce Momjian 已提交
189
* Ignore temporary tables from other session when processing inheritance
B
Bruce Momjian 已提交
190
* -Add GUC setting to make created tables default to WITHOUT OIDS
B
Add:  
Bruce Momjian 已提交
191
* Have pg_ctl look at PGHOST in case it is a socket directory
B
Add:  
Bruce Momjian 已提交
192
* Allow column-level privileges
B
Done:  
Bruce Momjian 已提交
193
* Add a session mode to warn about non-standard SQL usage
B
Bruce Momjian 已提交
194
* Add MERGE command that does UPDATE/DELETE, or on failure, INSERT (rules, triggers?)
B
Add:  
Bruce Momjian 已提交
195
* Add ON COMMIT capability to CREATE TABLE AS SELECT
B
Add:  
Bruce Momjian 已提交
196

B
Bruce Momjian 已提交
197
* ALTER
B
Done:  
Bruce Momjian 已提交
198 199
	o -ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
	o -ALTER TABLE ADD COLUMN column DEFAULT should fill existing
B
Bruce Momjian 已提交
200
	  rows with DEFAULT value
B
Done:  
Bruce Momjian 已提交
201
	o -ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence because
B
Bruce Momjian 已提交
202
          of the item above
B
Add:  
Bruce Momjian 已提交
203
	o Have ALTER TABLE rename SERIAL sequences
B
Done:  
Bruce Momjian 已提交
204
	o -Allow ALTER TABLE to modify column lengths and change to binary
B
Add:  
Bruce Momjian 已提交
205
	  compatible types
B
Add:  
Bruce Momjian 已提交
206
	o Add ALTER DATABASE ... OWNER TO newowner
B
Add:  
Bruce Momjian 已提交
207
	o Add ALTER DOMAIN TYPE
B
Add:  
Bruce Momjian 已提交
208
	o Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
B
Add:  
Bruce Momjian 已提交
209
	o Allow ALTER TABLE to change constraint deferrability and actions
B
Add:  
Bruce Momjian 已提交
210
	o Disallow dropping of an inherited constraint
B
Add:  
Bruce Momjian 已提交
211
	o Allow the schema of objects to be changed
B
Add:  
Bruce Momjian 已提交
212 213
	o Add ALTER TABLESPACE to change location, name, owner
	o Allow objects to be moved between tablespaces
B
Bruce Momjian 已提交
214

B
Bruce Momjian 已提交
215
* CLUSTER
B
Bruce Momjian 已提交
216
	o Automatically maintain clustering on a table
B
Bruce Momjian 已提交
217
	o Add ALTER TABLE table SET WITHOUT CLUSTER (Christopher)
B
Add:  
Bruce Momjian 已提交
218
	o Add default clustering to system tables
B
Bruce Momjian 已提交
219

B
Bruce Momjian 已提交
220
* COPY
B
Done:  
Bruce Momjian 已提交
221
	o -Allow dump/load of CSV format
B
Add:  
Bruce Momjian 已提交
222
	o Allow COPY to report error lines and continue;  optionally
223
	  allow error codes to be specified; requires savepoints or can
B
Bruce Momjian 已提交
224
	  not be run in a multi-statement transaction
B
Add:  
Bruce Momjian 已提交
225 226
	o Allow COPY to understand \x as hex
	o Have COPY return number of rows loaded/unloaded
B
Bruce Momjian 已提交
227

B
Bruce Momjian 已提交
228
* CURSOR
B
Bruce Momjian 已提交
229
	o Allow UPDATE/DELETE WHERE CURRENT OF cursor using per-cursor tid
B
Bruce Momjian 已提交
230
	  stored in the backend (Gavin)
B
Bruce Momjian 已提交
231
	o Prevent DROP of table being referenced by our own open cursor
B
Bruce Momjian 已提交
232

B
Bruce Momjian 已提交
233
* INSERT
B
Bruce Momjian 已提交
234 235
	o Allow INSERT/UPDATE of system-generated oid value for a row
	o Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
B
Bruce Momjian 已提交
236
	o Allow INSERT/UPDATE ... RETURNING new.col or old.col; handle
B
Bruce Momjian 已提交
237
	  RULE cases (Philip)
B
Bruce Momjian 已提交
238

B
Bruce Momjian 已提交
239
* SHOW/SET
B
Bruce Momjian 已提交
240
	o Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
B
Bruce Momjian 已提交
241
	  ANALYZE, and CLUSTER
B
Bruce Momjian 已提交
242
	o Add SET PATH for schemas
B
Bruce Momjian 已提交
243

B
Bruce Momjian 已提交
244
* SERVER-SIDE LANGUAGES
B
Bruce Momjian 已提交
245 246
	o Allow PL/PgSQL's RAISE function to take expressions
	o Change PL/PgSQL to use palloc() instead of malloc()
B
Done:  
Bruce Momjian 已提交
247
	o -Allow Java server-side programming
B
Add:  
Bruce Momjian 已提交
248
	o Fix problems with complex temporary table creation/destruction
249
	  without using PL/PgSQL EXECUTE, needs cache prevention/invalidation
B
Update:  
Bruce Momjian 已提交
250
        o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
B
Added:  
Bruce Momjian 已提交
251
	o Improve PL/PgSQL exception handling
B
Bruce Momjian 已提交
252
	o Allow parameters to be specified by name and type during definition
B
Bruce Momjian 已提交
253
	o Allow function parameters to be passed by name,
B
Added:  
Bruce Momjian 已提交
254 255
	  get_employee_salary(emp_id => 12345, tax_year => 2001)
	o Add PL/PgSQL packages
B
Add:  
Bruce Momjian 已提交
256
	o Add table function support to pltcl, plperl, plpython
B
Add:  
Bruce Momjian 已提交
257
	o Allow PL/pgSQL to name columns by ordinal position, e.g. rec.(3)
B
Add:  
Bruce Momjian 已提交
258
	o Allow PL/pgSQL EXECUTE query_var INTO record_var;
B
Bruce Momjian 已提交
259
	o Add capability to create and call PROCEDURES
B
Add:  
Bruce Momjian 已提交
260
	o Allow PL/pgSQL to handle %TYPE arrays, e.g. tab.col%TYPE[]
B
Bruce Momjian 已提交
261

B
Add:  
Bruce Momjian 已提交
262

263 264
Clients
=======
B
Bruce Momjian 已提交
265

B
Bruce Momjian 已提交
266
* Add XML capability to pg_dump and COPY, when backend XML capability
B
Bruce Momjian 已提交
267
* -Allow psql \du to show users, and add \dg for groups
B
Bruce Momjian 已提交
268
* Allow clients to query a list of WITH HOLD cursors and prepared statements
B
Add:  
Bruce Momjian 已提交
269
* Add a libpq function to support Parse/DescribeStatement capability
B
Add:  
Bruce Momjian 已提交
270
* Prevent libpq's PQfnumber() from lowercasing the column name
B
Done:  
Bruce Momjian 已提交
271
* -Allow pg_dump to dump CREATE CONVERSION (Christopher)
B
Add:  
Bruce Momjian 已提交
272
* Allow libpq to return information about prepared queries
B
Done:  
Bruce Momjian 已提交
273
* -Make pg_restore continue after errors, so it acts more like pg_dump scripts
B
Add:  
Bruce Momjian 已提交
274
* Have psql show more information about sequences
B
Add:  
Bruce Momjian 已提交
275
* Allow pg_dumpall to use non-text output formats
B
Add:  
Bruce Momjian 已提交
276
* Have pg_dump use multi-statement transactions for INSERT dumps
B
Bruce Momjian 已提交
277
* Move psql backslash database information into the backend, use mnemonic
B
Add:  
Bruce Momjian 已提交
278
  commands? [psql]
B
Add:  
Bruce Momjian 已提交
279
* Allow pg_dump to use multiple -t and -n switches
B
Add:  
Bruce Momjian 已提交
280
* Fix oid2name and dbsize for tablespaces
B
Add:  
Bruce Momjian 已提交
281

B
Bruce Momjian 已提交
282

B
Bruce Momjian 已提交
283
* ECPG
M
Michael Meskes 已提交
284
	o Docs
B
Bruce Momjian 已提交
285
	o Implement set descriptor, using descriptor
B
Bruce Momjian 已提交
286
	o Solve cardinality > 1 for input descriptors / variables
B
Bruce Momjian 已提交
287 288
	o Improve error handling
	o Add a semantic check level, e.g. check if a table really exists
B
Bruce Momjian 已提交
289
	o fix handling of DB attributes that are arrays
B
Bruce Momjian 已提交
290
	o Use backend PREPARE/EXECUTE facility for ecpg where possible
B
Update:  
Bruce Momjian 已提交
291
	o Implement SQLDA
M
Michael Meskes 已提交
292 293
	o Fix nested C comments
	o sqlwarn[6] should be 'W' if the PRECISION or SCALE value specified
294
	o Make SET CONNECTION thread-aware, non-standard?
295
	o Allow multidimensional arrays
B
Bruce Momjian 已提交
296

B
Bruce Momjian 已提交
297

298

299 300
Referential Integrity
=====================
B
Bruce Momjian 已提交
301

B
Bruce Momjian 已提交
302
* Add MATCH PARTIAL referential integrity
B
Bruce Momjian 已提交
303
* Add deferred trigger queue file (Jan)
B
Modify:  
Bruce Momjian 已提交
304
* Implement dirty reads or shared row locks and use them in RI triggers
B
Bruce Momjian 已提交
305
* Enforce referential integrity for system tables
B
Bruce Momjian 已提交
306
* Change foreign key constraint for array -> element to mean element
B
Bruce Momjian 已提交
307
  in array
B
Add:  
Bruce Momjian 已提交
308
* Allow DEFERRABLE UNIQUE constraints
B
Add:  
Bruce Momjian 已提交
309
* Allow triggers to be disabled [trigger]
310
* With disabled triggers, allow pg_dump to use ALTER TABLE ADD FOREIGN KEY
B
Bruce Momjian 已提交
311
* Allow statement-level triggers to access modified rows
B
Split:  
Bruce Momjian 已提交
312
* Support triggers on columns (Neil)
B
Add:  
Bruce Momjian 已提交
313 314
* Have AFTER triggers execute after the appropriate SQL statement in a 
  function, not at the end of the function
B
Done:  
Bruce Momjian 已提交
315
* -Print table names with constraint names in error messages, or make constraint
B
Add:  
Bruce Momjian 已提交
316
  names unique within a schema
B
Done:  
Bruce Momjian 已提交
317
* -Issue NOTICE if foreign key data requires costly test to match primary key
B
Add:  
Bruce Momjian 已提交
318
* Remove CREATE CONSTRAINT TRIGGER
B
Add:  
Bruce Momjian 已提交
319
* Allow AFTER triggers on system tables
B
Add:  
Bruce Momjian 已提交
320

B
Bruce Momjian 已提交
321

322 323
Dependency Checking
===================
B
Bruce Momjian 已提交
324

B
Bruce Momjian 已提交
325
* Flush cached query plans when their underlying catalog data changes
B
Done:  
Bruce Momjian 已提交
326
* -Use dependency information to dump data in proper order
B
Bruce Momjian 已提交
327
* -Have pg_dump -c clear the database using dependency information
328

B
Add:  
Bruce Momjian 已提交
329

330 331
Exotic Features
===============
332

B
Add:  
Bruce Momjian 已提交
333 334
* Add SQL99 WITH clause to SELECT (Tom, Fernando)
* Add SQL99 WITH RECURSIVE to SELECT (Tom, Fernando)
B
Bruce Momjian 已提交
335
* Add pre-parsing phase that converts non-ANSI features to supported features
B
Bruce Momjian 已提交
336
* Allow plug-in modules to emulate features from other databases
B
Bruce Momjian 已提交
337
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
B
Bruce Momjian 已提交
338
  to clients
B
Bruce Momjian 已提交
339 340
* Add two-phase commit to all distributed transactions with 
  offline/readonly server status or administrator notification for failure
B
Bruce Momjian 已提交
341
* Allow cross-db queries with transaction semantics
342

B
Bruce Momjian 已提交
343

B
Bruce Momjian 已提交
344
PERFORMANCE
345 346
===========

B
Bruce Momjian 已提交
347

348 349
Fsync
=====
B
Bruce Momjian 已提交
350

B
Bruce Momjian 已提交
351
* Delay fsync() when other backends are about to commit too
B
Bruce Momjian 已提交
352
	o Determine optimal commit_delay value
B
Bruce Momjian 已提交
353
* Determine optimal fdatasync/fsync, O_SYNC/O_DSYNC options
B
Bruce Momjian 已提交
354
	o Allow multiple blocks to be written to WAL with one write()
B
Bruce Momjian 已提交
355

B
Bruce Momjian 已提交
356

357 358
Cache
=====
B
Bruce Momjian 已提交
359
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
B
Bruce Momjian 已提交
360
* Add free-behind capability for large sequential scans [fadvise]
B
Bruce Momjian 已提交
361
* Consider use of open/fcntl(O_DIRECT) to minimize OS caching
B
Bruce Momjian 已提交
362 363
* Cache last known per-tuple offsets to speed long tuple access, adjusting
  for NULLs and TOAST values
B
Modify:  
Bruce Momjian 已提交
364
* Use a fixed row count and a +/- count with MVCC visibility rules 
B
Bruce Momjian 已提交
365
  to allow fast COUNT(*) queries with no WHERE clause(?) [count]
B
Bruce Momjian 已提交
366

367

368 369
Vacuum
======
B
Bruce Momjian 已提交
370

B
Bruce Momjian 已提交
371
* Improve speed with indexes (perhaps recreate index instead)
B
Bruce Momjian 已提交
372
* Reduce lock time by moving tuples with read lock, then write
B
Bruce Momjian 已提交
373
  lock and truncate table
B
Bruce Momjian 已提交
374
* Provide automatic running of vacuum in the background in backend
B
Bruce Momjian 已提交
375
  rather than in /contrib
B
Add:  
Bruce Momjian 已提交
376
* Allow free space map to be auto-sized or warn when it is too small
B
Add:  
Bruce Momjian 已提交
377 378
* Maintain a map of recently-expired of pages so vacuum can reclaim
  free space without a sequential scan
B
Add:  
Bruce Momjian 已提交
379
* Have VACUUM FULL use REINDEX rather than index vacuum
B
Add:  
Bruce Momjian 已提交
380

B
Add:  
Bruce Momjian 已提交
381

382 383
Locking
=======
384 385 386

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

391

392 393
Startup Time
============
B
Bruce Momjian 已提交
394

B
Bruce Momjian 已提交
395
* Experiment with multi-threaded backend [thread]
B
Bruce Momjian 已提交
396
* Add connection pooling [pool]
B
Bruce Momjian 已提交
397
* Allow persistent backends [pool]
B
Bruce Momjian 已提交
398
* Create a transaction processor to aid in persistent connections and
B
Bruce Momjian 已提交
399
  connection pooling [pool]
400 401 402
* 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
403

404

405 406
Write-Ahead Log
===============
407

408 409
* 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 已提交
410
  partial page writes [wal]
411
* Turn off after-change writes if fsync is disabled (?)
B
Bruce Momjian 已提交
412
* Add WAL index reliability improvement to non-btree indexes
B
Add:  
Bruce Momjian 已提交
413
* Find proper defaults for postgresql.conf WAL entries
B
Add:  
Bruce Momjian 已提交
414 415
* Allow xlog directory location to be specified during initdb, perhaps
  using symlinks
B
Add:  
Bruce Momjian 已提交
416
* Allow WAL information to recover corrupted pg_controldata
B
Added:  
Bruce Momjian 已提交
417 418
* Find a way to reduce rotational delay when repeatedly writing
  last WAL page
419

B
Bruce Momjian 已提交
420

421 422
Optimizer / Executor
====================
423

B
Bruce Momjian 已提交
424
* Missing optimizer selectivities for date, r-tree, etc
B
Add:  
Bruce Momjian 已提交
425
* Allow ORDER BY ... LIMIT to select top values without sort or index
B
Bruce Momjian 已提交
426
  using a sequential scan for highest/lowest values (Oleg)
B
Bruce Momjian 已提交
427
* Precompile SQL functions to avoid overhead (Neil)
B
Add:  
Bruce Momjian 已提交
428
* Add utility to compute accurate random_page_cost value
B
Bruce Momjian 已提交
429
* Improve ability to display optimizer analysis using OPTIMIZER_DEBUG
B
Bruce Momjian 已提交
430
* Use CHECK constraints to improve optimizer decisions
B
Add:  
Bruce Momjian 已提交
431
* Check GUC geqo_threshold to see if it is still accurate
B
Update:  
Bruce Momjian 已提交
432
* Allow sorting, temp files, temp tables to use multiple work directories
B
Add:  
Bruce Momjian 已提交
433
* Improve the planner to use CHECK constraints to prune the plan (for subtables)
B
Add:  
Bruce Momjian 已提交
434
* Have EXPLAIN ANALYZE highlight poor optimizer estimates
B
Bruce Momjian 已提交
435

B
Add:  
Bruce Momjian 已提交
436

437 438
Miscellaneous
=============
439 440 441

* Do async I/O for faster random read-ahead of data
* Use mmap() rather than SYSV shared memory or to write WAL files (?) [mmap]
B
Added:  
Bruce Momjian 已提交
442
* Improve caching of attribute offsets when NULLs exist in the row
B
Add:  
Bruce Momjian 已提交
443
* Add a script to ask system configuration questions and tune postgresql.conf
B
Add:  
Bruce Momjian 已提交
444
* Allow partitioning of table into multiple subtables
445
* -Use background process to write dirty shared buffers to disk
B
Add:  
Bruce Momjian 已提交
446
* Investigate SMP context switching issues
B
Bruce Momjian 已提交
447

B
Add:  
Bruce Momjian 已提交
448

449
Source Code
450 451
===========

B
Bruce Momjian 已提交
452
* Add use of 'const' for variables in source tree
B
Bruce Momjian 已提交
453
* Rename some /contrib modules from pg* to pg_*
B
Bruce Momjian 已提交
454
* Move some things from /contrib into main tree
B
Bruce Momjian 已提交
455
* Remove warnings created by -Wcast-align
B
Bruce Momjian 已提交
456
* Move platform-specific ps status display info from ps_status.c to ports
B
Typo.  
Bruce Momjian 已提交
457
* Improve access-permissions check on data directory in Cygwin (Tom)
B
Bruce Momjian 已提交
458
* Add documentation for perl, including mention of DBI/DBD perl location
B
Add:  
Bruce Momjian 已提交
459
* Create improved PostgreSQL introductory documentation for the PHP
B
Bruce Momjian 已提交
460
  manuals
B
Bruce Momjian 已提交
461
* Add optional CRC checksum to heap and index pages
B
Bruce Momjian 已提交
462
* -Change representation of whole-tuple parameters to functions
B
Add:  
Bruce Momjian 已提交
463
* Clarify use of 'application' and 'command' tags in SGML docs
B
Bruce Momjian 已提交
464
* Better document ability to build only certain interfaces (Marc)
465
* Remove or relicense modules that are not under the BSD license, if possible
B
Bruce Momjian 已提交
466
* Remove memory/file descriptor freeing before ereport(ERROR)  (Bruce)
B
Add:  
Bruce Momjian 已提交
467
* Acquire lock on a relation before building a relcache entry for it
B
Add:  
Bruce Momjian 已提交
468
* Research interaction of setitimer() and sleep() used by statement_timeout
B
Bruce Momjian 已提交
469
* -Add checks for fclose() failure (Tom)
B
Done:  
Bruce Momjian 已提交
470
* -Change CVS ID to PostgreSQL
B
Done:  
Bruce Momjian 已提交
471
* -Exit postmaster if postgresql.conf can not be opened
B
Add:  
Bruce Momjian 已提交
472
* Rename /scripts directory because they are all C programs now
B
Add:  
Bruce Momjian 已提交
473
* Allow creation of a libpq-only tarball
B
Add:  
Bruce Momjian 已提交
474
* Promote debug_query_string into a server-side function current_query()
B
Add:  
Bruce Momjian 已提交
475
* Allow the identifier length to be increased via a configure option
B
Add:  
Bruce Momjian 已提交
476
* Improve CREATE SCHEMA regression test
B
Add:  
Bruce Momjian 已提交
477
* Allow binaries to be statically linked so they are more easily relocated
B
Add:  
Bruce Momjian 已提交
478

479

B
Add:  
Bruce Momjian 已提交
480 481 482 483
* Wire Protocol Changes
	o Dynamic character set handling
	o Add decoded type, length, precision
	o Compression?
B
Bruce Momjian 已提交
484 485
	o Update clients to use data types, typmod, schema.table.column names of
	  result sets using new query protocol
B
Add:  
Bruce Momjian 已提交
486

B
Bruce Momjian 已提交
487 488 489 490 491
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
B
Bruce Momjian 已提交
492
* Alvaro is Alvaro Herrera <alvherre@dcc.uchile.cl>
B
Bruce Momjian 已提交
493
* Barry is Barry Lind <barry@xythos.com>
B
Bruce Momjian 已提交
494
* Billy is Billy G. Allie <Bill.Allie@mug.org>
B
Bruce Momjian 已提交
495 496 497 498
* Bruce is Bruce Momjian <pgman@candle.pha.pa.us> of Software Research Assoc.
* Christopher is Christopher Kings-Lynne <chriskl@familyhealth.com.au> of
    Family Health Network
* D'Arcy is D'Arcy J.M. Cain <darcy@druid.net> of The Cain Gang Ltd.
B
Bruce Momjian 已提交
499
* Dave is Dave Cramer <dave@fastcrypt.com>
B
Bruce Momjian 已提交
500
* Edmund is Edmund Mergl <E.Mergl@bawue.de>
B
Bruce Momjian 已提交
501 502 503
* Fernando is Fernando Nasser <fnasser@redhat.com> of Red Hat
* Gavin is Gavin Sherry <swm@linuxworld.com.au> of Alcove Systems Engineering
* Greg is Greg Sabino Mullane <greg@turnstep.com>
B
Bruce Momjian 已提交
504 505
* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
* Karel is Karel Zak <zakkr@zf.jcu.cz>
B
Bruce Momjian 已提交
506
* Jan is Jan Wieck <JanWieck@Yahoo.com> of Afilias, Inc.
B
Bruce Momjian 已提交
507
* Joe is Joe Conway <mail@joeconway.com>
B
Bruce Momjian 已提交
508 509
* Liam is Liam Stewart <liams@redhat.com> of Red Hat
* Marc is Marc Fournier <scrappy@hub.org> of PostgreSQL, Inc.
B
Bruce Momjian 已提交
510
* Mark is Mark Hollomon <mhh@mindspring.com>
B
Bruce Momjian 已提交
511
* Michael is Michael Meskes <meskes@postgresql.org> of Credativ
B
Bruce Momjian 已提交
512
* Neil is Neil Conway <neilc@samurai.com>
B
Bruce Momjian 已提交
513
* Oleg is Oleg Bartunov <oleg@sai.msu.su>
B
Bruce Momjian 已提交
514
* Peter M is Peter T Mount <peter@retep.org.uk> of Retep Software
B
Bruce Momjian 已提交
515
* Peter E is Peter Eisentraut <peter_e@gmx.net>
B
Bruce Momjian 已提交
516
* Philip is Philip Warner <pjw@rhyme.com.au> of Albatross Consulting Pty. Ltd.
B
Bruce Momjian 已提交
517
* Rod is Rod Taylor <pg@rbt.ca>
B
Bruce Momjian 已提交
518 519
* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
B
Bruce Momjian 已提交
520 521 522
* Tatsuo is Tatsuo Ishii <t-ishii@sra.co.jp> of Software Research Assoc.
* Thomas is Thomas Lockhart <lockhart@fourpalms.org> of Jet Propulsion Labratory
* Tom is Tom Lane <tgl@sss.pgh.pa.us> of Red Hat