TODO 18.8 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Add:  
Bruce Momjian 已提交
3
Last updated:		Mon Feb 17 22:47:31 EST 2003
M
Marc G. Fournier 已提交
4

B
Bruce Momjian 已提交
5
Current maintainer:	Bruce Momjian (pgman@candle.pha.pa.us)
M
Marc G. Fournier 已提交
6

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

B
Bruce Momjian 已提交
10
A dash (-) marks changes that will appear in the upcoming 7.4 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
* Create native Win32 port [win32]
B
Bruce Momjian 已提交
30

31

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

* 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 已提交
38
* Make error messages more consistent [error]
B
Bruce Momjian 已提交
39
* Show location of syntax error in query [yacc]
B
Add:  
Bruce Momjian 已提交
40

B
Bruce Momjian 已提交
41

42 43
Administration
==============
B
Bruce Momjian 已提交
44 45

* Incremental backups
B
Bruce Momjian 已提交
46
* Remove unreferenced table files and temp tables during database vacuum
B
Bruce Momjian 已提交
47
  or postmaster startup (Bruce)
B
Bruce Momjian 已提交
48 49
* Remove behavior of postmaster -o after making postmaster/postgres
  flags unique
B
Add:  
Bruce Momjian 已提交
50
* Allow easy display of usernames in a group
B
Added:  
Bruce Momjian 已提交
51
* Allow configuration files to be specified in a different directory
B
Add:  
Bruce Momjian 已提交
52
* Add start time to pg_stat_activity
B
Add:  
Bruce Momjian 已提交
53
* Allow limits on per-db/user connections
B
Add:  
Bruce Momjian 已提交
54
* Have standalone backend read postgresql.conf
B
Add:  
Bruce Momjian 已提交
55 56
* Add group object ownership, so groups can rename/drop/grant on objects,
  so we can implement roles
B
Move:  
Bruce Momjian 已提交
57
* Add the concept of dataspaces/tablespaces [tablespaces]
B
Add:  
Bruce Momjian 已提交
58
* Allow incremental backups
B
Add:  
Bruce Momjian 已提交
59
* Allow CIDR format to be used in pg_hba.conf
B
Add:  
Bruce Momjian 已提交
60

B
Bruce Momjian 已提交
61

62 63
Data Types
==========
B
Bruce Momjian 已提交
64

B
Bruce Momjian 已提交
65
* Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
66
* Remove Money type, add money formatting for decimal type
B
Added  
Bruce Momjian 已提交
67
* Change factorial to return a numeric
B
Add:  
Bruce Momjian 已提交
68
* Change NUMERIC data type to use base 10,000 internally
B
Add:  
Bruce Momjian 已提交
69
* Change NUMERIC to enforce the maximum precision, and increase it
B
Bruce Momjian 已提交
70
* Add function to return compressed length of TOAST data values (Tom)
B
Add:  
Bruce Momjian 已提交
71
* Allow INET subnet tests using non-constants
B
Add:  
Bruce Momjian 已提交
72
* Add now("transaction|statement|clock") functionality
B
Bruce Momjian 已提交
73
* -Add GUC variables to control floating number output digits (Pedro Ferreira)
B
Add:  
Bruce Momjian 已提交
74
* Have sequence dependency track use of DEFAULT sequences, seqname.nextval
B
Update:  
Bruce Momjian 已提交
75
* Disallow changing default expression of a SERIAL column
B
Add:  
Bruce Momjian 已提交
76
* Allow infinite dates just like infinite timestamps
B
Add:  
Bruce Momjian 已提交
77
* Allow pg_dump to dump sequences using NO_MAXVALUE and NO_MINVALUE
B
Add:  
Bruce Momjian 已提交
78

B
Bruce Momjian 已提交
79 80 81 82 83

* CONVERSION
	o Allow better handling of numeric constants, type conversion 
	  [typeconv]

84
* ARRAYS
B
Bruce Momjian 已提交
85 86
	o Allow nulls in arrays
	o Allow arrays to be ORDER'ed
B
Bruce Momjian 已提交
87 88
	o Support construction of array result values in expressions

B
Bruce Momjian 已提交
89
* BINARY DATA
B
Bruce Momjian 已提交
90
	o Improve vacuum of large objects, like /contrib/vacuumlo
B
Bruce Momjian 已提交
91 92 93 94
	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 已提交
95

96

97 98
Multi-Language Support
======================
B
Bruce Momjian 已提交
99

100
* Add NCHAR (as distinguished from ordinary varchar),
B
Bruce Momjian 已提交
101
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
102
* Support multiple simultaneous character sets, per SQL92
B
Bruce Momjian 已提交
103
* Improve Unicode combined character handling
B
Bruce Momjian 已提交
104
* Optimize locale to have minimal performance impact when not used (Peter E)
B
Bruce Momjian 已提交
105
* Add octet_length_server() and octet_length_client() (Thomas, Tatsuo)
B
Bruce Momjian 已提交
106
* Make octet_length_client the same as octet_length() (?)
B
Added:  
Bruce Momjian 已提交
107 108
* Prevent mismatch of frontend/backend encodings from converting bytea
  data from being interpreted as encoded strings
B
Add:  
Bruce Momjian 已提交
109
* Remove Cyrillic recode support
110

B
Add:  
Bruce Momjian 已提交
111
 
112 113
Views / Rules
=============
B
Bruce Momjian 已提交
114

B
Bruce Momjian 已提交
115
* Automatically create rules on views so they are updateable, per SQL92 [view]
B
Bruce Momjian 已提交
116
* Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
B
Bruce Momjian 已提交
117
* Allow NOTIFY in rules involving conditionals
B
Bruce Momjian 已提交
118
* Have views on temporary tables exist in the temporary namespace
B
Bruce Momjian 已提交
119
* Move psql backslash information into views
B
Bruce Momjian 已提交
120
* Allow RULE recompilation
121

B
Add:  
Bruce Momjian 已提交
122

123 124
Indexes
=======
B
Bruce Momjian 已提交
125 126

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
127
  fails index can't store constant parameters
B
Bruce Momjian 已提交
128
* Order duplicate index entries by tid for faster heap lookups
B
Bruce Momjian 已提交
129 130
* Allow inherited tables to inherit index, UNIQUE constraint, and primary
  key, foreign key  [inheritance]
B
Bruce Momjian 已提交
131 132 133
* 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 已提交
134
* Add UNIQUE capability to non-btree indexes
B
Bruce Momjian 已提交
135 136
* Add btree index support for reltime, tinterval, regproc
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
137 138
* Certain indexes will not shrink, e.g. indexes on ever-increasing
  columns and indexes with many duplicate keys
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
* Allow LIKE indexing optimization for non-ASCII locales
B
Bruce Momjian 已提交
142 143 144 145
* 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
* Prevent index uniqueness checks when UPDATE does not modifying column
B
Update:  
Bruce Momjian 已提交
146 147
* Use bitmaps to fetch heap pages in sequential order [performance]
* Use bitmaps to combine existing indexes [performance]
B
Bruce Momjian 已提交
148
* Improve handling of index scans for NULL
B
Bruce Momjian 已提交
149 150
* Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
  float4, numeric/decimal too [optimizer]
B
Bruce Momjian 已提交
151
* Add FILLFACTOR to btree index creation
B
Reword:  
Bruce Momjian 已提交
152
* Add concurrency to GIST
B
Bruce Momjian 已提交
153
* Improve concurrency of hash indexes (Neil)
B
Bruce Momjian 已提交
154
* Require DROP COLUMN CASCADE for a column that is part of a multi-column index
B
Bruce Momjian 已提交
155

B
Bruce Momjian 已提交
156

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

B
Bruce Momjian 已提交
160
* Add BETWEEN ASYMMETRIC/SYMMETRIC (Christopher)
B
Bruce Momjian 已提交
161
* Allow LIMIT/OFFSET to use expressions
B
Bruce Momjian 已提交
162 163
* CREATE TABLE AS can not determine column lengths from expressions [atttypmod]
* Allow UPDATE to handle complex aggregates [update]
B
Bruce Momjian 已提交
164
* Allow command blocks to ignore certain types of errors
B
Added:  
Bruce Momjian 已提交
165
* Allow backslash handling in quoted strings to be disabled for portability
B
Add:  
Bruce Momjian 已提交
166
* Return proper effected tuple count from complex commands [return]
B
Add:  
Bruce Momjian 已提交
167
* Allow DELETE to handle table aliases for self-joins [delete]
B
Add:  
Bruce Momjian 已提交
168
* Add CORRESPONDING BY to UNION/INTERSECT/EXCEPT
B
Add:  
Bruce Momjian 已提交
169
* Allow REINDEX to rebuild all indexes, remove /contrib/reindex
B
Update:  
Bruce Momjian 已提交
170
* -Make a transaction-safe TRUNCATE (Rod)
B
Add:  
Bruce Momjian 已提交
171
* Add ROLLUP, CUBE, GROUPING SETS options to GROUP BY
B
Add:  
Bruce Momjian 已提交
172
* Add schema option to createlang
B
Add:  
Bruce Momjian 已提交
173

B
Bruce Momjian 已提交
174

B
Bruce Momjian 已提交
175
* ALTER
B
Bruce Momjian 已提交
176
	o ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
B
Bruce Momjian 已提交
177
	o ALTER TABLE ADD COLUMN column DEFAULT should fill existing
B
Bruce Momjian 已提交
178
	  rows with DEFAULT value
B
Bruce Momjian 已提交
179 180
	o ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence because
          of the item above
B
Bruce Momjian 已提交
181
	o -Add ALTER TABLE tab SET WITHOUT OIDS (Rod)
B
Add:  
Bruce Momjian 已提交
182
	* Add ALTER SEQUENCE to modify min/max/increment/cache/cycle values
B
Bruce Momjian 已提交
183

B
Bruce Momjian 已提交
184
* CLUSTER
B
Bruce Momjian 已提交
185
	o Automatically maintain clustering on a table
B
Bruce Momjian 已提交
186
	o -Allow CLUSTER to cluster all tables (Alvaro Herrera)
B
Bruce Momjian 已提交
187

B
Bruce Momjian 已提交
188
* COPY
B
Bruce Momjian 已提交
189
	o Allow dump/load of CSV format
B
Add:  
Bruce Momjian 已提交
190
	o Allow COPY to report error lines and continue;  optionally
191
	  allow error codes to be specified; requires savepoints or can
B
Bruce Momjian 已提交
192
	  not be run in a multi-statement transaction
B
Add:  
Bruce Momjian 已提交
193
	o Allow copy to understand \x as hex
B
Bruce Momjian 已提交
194

B
Bruce Momjian 已提交
195
* CURSOR
B
Bruce Momjian 已提交
196
	o Allow BINARY option to SELECT, just like DECLARE
B
Add:  
Bruce Momjian 已提交
197
	o -MOVE 0 should not move to end of cursor (Bruce)
B
Bruce Momjian 已提交
198
	o Allow UPDATE/DELETE WHERE CURRENT OF cursor using per-cursor tid
B
Bruce Momjian 已提交
199
	  stored in the backend
B
Bruce Momjian 已提交
200
	o Prevent DROP of table being referenced by our own open cursor
B
Add:  
Bruce Momjian 已提交
201
	o Allow cursors outside transactions [cursor]
B
Bruce Momjian 已提交
202

B
Bruce Momjian 已提交
203
* INSERT
B
Bruce Momjian 已提交
204 205
	o Allow INSERT/UPDATE of system-generated oid value for a row
	o Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
B
Bruce Momjian 已提交
206
	o Allow INSERT/UPDATE ... RETURNING new.col or old.col; handle
B
Bruce Momjian 已提交
207
	  RULE cases (Philip)
B
Bruce Momjian 已提交
208

B
Bruce Momjian 已提交
209
* SHOW/SET
B
Bruce Momjian 已提交
210
	o Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
B
Bruce Momjian 已提交
211
	  ANALYZE, and CLUSTER
B
Add:  
Bruce Momjian 已提交
212
	o Add SET SCHEMA
B
Add:  
Bruce Momjian 已提交
213
	o Allow EXPLAIN EXECUTE to see prepared plans
B
Add:  
Bruce Momjian 已提交
214
	o Allow SHOW of non-modifiable variables, like pg_controldata
B
Add:  
Bruce Momjian 已提交
215
	o Add GUC parameter to control the maximum number of rewrite cycles
B
Bruce Momjian 已提交
216

B
Bruce Momjian 已提交
217
* SERVER-SIDE LANGUAGES
B
Bruce Momjian 已提交
218 219 220
	o Allow PL/PgSQL's RAISE function to take expressions
	o Change PL/PgSQL to use palloc() instead of malloc()
	o Add untrusted version of plpython
B
Update:  
Bruce Momjian 已提交
221 222
	o Allow Java server-side programming, http://pljava.sourceforge.net
	  [java]
B
Add:  
Bruce Momjian 已提交
223
	o Fix problems with complex temporary table creation/destruction
224
	  without using PL/PgSQL EXECUTE, needs cache prevention/invalidation
B
Update:  
Bruce Momjian 已提交
225
        o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
B
Added:  
Bruce Momjian 已提交
226
	o Improve PL/PgSQL exception handling
B
Bruce Momjian 已提交
227
	o Allow parameters to be specified by name and type during 
B
Added:  
Bruce Momjian 已提交
228
	  definition
B
Bruce Momjian 已提交
229
	o Allow function parameters to be passed by name,
B
Added:  
Bruce Momjian 已提交
230 231
	  get_employee_salary(emp_id => 12345, tax_year => 2001)
	o Add PL/PgSQL packages
B
Bruce Momjian 已提交
232
	o Allow array declarations and other data types in PL/PgSQL DECLARE
B
Added:  
Bruce Momjian 已提交
233
	o Add PL/PgSQL PROCEDURES that can return multiple values
B
Add:  
Bruce Momjian 已提交
234
	o Add table function support to pltcl, plperl, plpython
B
Add:  
Bruce Momjian 已提交
235 236
	o Make PL/PgSQL %TYPE schema-aware
	o Allow PL/PgSQL to support array element assignment
B
Bruce Momjian 已提交
237

B
Add:  
Bruce Momjian 已提交
238

239 240
Clients
=======
B
Bruce Momjian 已提交
241

242
* Allow psql to show transaction status if backend protocol changes made
B
Bruce Momjian 已提交
243
* Add XML interface:  psql, pg_dump, COPY, separate server (?)
B
Done:  
Bruce Momjian 已提交
244
* -Add schema, cast, and conversion backslash commands to psql (Christopher)
B
Bruce Momjian 已提交
245
* -Allow pg_dump to dump a specific schema (Neil Conway)
B
Add:  
Bruce Momjian 已提交
246 247
* Allow psql to do table completion for SELECT * FROM schema_part and
  table completion for SELECT * FROM schema_name.
B
Bruce Momjian 已提交
248

B
Bruce Momjian 已提交
249
* JDBC
B
Bruce Momjian 已提交
250 251 252
	o Comprehensive test suite. This may be available already.
	o JDBC-standard BLOB support
	o Error Codes (pending backend implementation)
B
Added  
Bruce Momjian 已提交
253
	o Support both 'make' and 'ant'
B
Barry Lind 已提交
254 255
	o Fix LargeObject API to handle OIDs as unsigned ints
	o Use cursors implicitly to avoid large results (see setCursorName())
B
Bruce Momjian 已提交
256
	o Add LISTEN/NOTIFY support to the JDBC driver (Barry)
B
Bruce Momjian 已提交
257

B
Bruce Momjian 已提交
258
* ECPG
B
Bruce Momjian 已提交
259 260 261
	o Implement set descriptor, using descriptor
	o Make casts work in variable initializations
	o Implement SQLDA
B
Bruce Momjian 已提交
262
	o Allow multi-threaded use of SQLCA
B
Bruce Momjian 已提交
263
	o Solve cardinality > 1 for input descriptors / variables
B
Bruce Momjian 已提交
264 265 266 267 268 269 270
	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 已提交
271
	o fix handling of DB attributes that are arrays
B
Bruce Momjian 已提交
272

B
Bruce Momjian 已提交
273 274 275 276 277
* Python
	o Allow users to register their own types with _pg
	o Allow SELECT to return a dictionary of dictionaries
	o Allow COPY BINARY FROM

278

279 280
Referential Integrity
=====================
B
Bruce Momjian 已提交
281

B
Bruce Momjian 已提交
282
* Add MATCH PARTIAL referential integrity [foreign]
B
Bruce Momjian 已提交
283
* Add deferred trigger queue file (Jan)
B
Bruce Momjian 已提交
284
* Implement dirty reads and use them in RI triggers
B
Bruce Momjian 已提交
285
* Enforce referential integrity for system tables
B
Bruce Momjian 已提交
286
* Change foreign key constraint for array -> element to mean element
B
Bruce Momjian 已提交
287
  in array
B
Add:  
Bruce Momjian 已提交
288
* Allow DEFERRABLE UNIQUE constraints
B
Add:  
Bruce Momjian 已提交
289
* Allow triggers to be disabled [trigger]
B
Split:  
Bruce Momjian 已提交
290 291
* -Support statement-level triggers (Neil)
* Support triggers on columns (Neil)
292

B
Bruce Momjian 已提交
293

294 295
Dependency Checking
===================
B
Bruce Momjian 已提交
296

B
Bruce Momjian 已提交
297
* Flush cached query plans when their underlying catalog data changes
B
Add:  
Bruce Momjian 已提交
298
* Use dependency information to dump data in proper order
299

B
Add:  
Bruce Momjian 已提交
300

301 302
Transactions
============
B
Bruce Momjian 已提交
303 304

* Overhaul bufmgr/lockmgr/transaction manager
B
Bruce Momjian 已提交
305
* Allow savepoints / nested transactions [transactions] (Bruce)
B
Bruce Momjian 已提交
306

307

308 309
Exotic Features
===============
310

B
Add:  
Bruce Momjian 已提交
311 312
* Add SQL99 WITH clause to SELECT (Tom, Fernando)
* Add SQL99 WITH RECURSIVE to SELECT (Tom, Fernando)
B
Bruce Momjian 已提交
313
* Allow queries across multiple databases [crossdb]
B
Bruce Momjian 已提交
314
* Add pre-parsing phase that converts non-ANSI features to supported features
B
Bruce Momjian 已提交
315
* Allow plug-in modules to emulate features from other databases
B
Bruce Momjian 已提交
316
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
B
Bruce Momjian 已提交
317
  to clients
B
Added:  
Bruce Momjian 已提交
318
* Two-phase commit to implement distributed transactions
319

B
Bruce Momjian 已提交
320

B
Bruce Momjian 已提交
321
PERFORMANCE
322 323
===========

B
Bruce Momjian 已提交
324

325 326
Fsync
=====
B
Bruce Momjian 已提交
327

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

B
Bruce Momjian 已提交
333

334 335
Cache
=====
B
Bruce Momjian 已提交
336
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
B
Bruce Momjian 已提交
337
* Add free-behind capability for large sequential scans (Bruce)
B
Add  
Bruce Momjian 已提交
338
* Allow binding query args over FE/BE protocol
B
Bruce Momjian 已提交
339
* Consider use of open/fcntl(O_DIRECT) to minimize OS caching
B
Bruce Momjian 已提交
340
* Make blind writes go through the file descriptor cache
B
Add:  
Bruce Momjian 已提交
341
* Cache last known per-tuple offsets to speed long tuple access
B
Bruce Momjian 已提交
342

343

344 345
Vacuum
======
B
Bruce Momjian 已提交
346 347 348 349

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

B
Add:  
Bruce Momjian 已提交
353

354 355
Locking
=======
356 357 358

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

363

364 365
Startup Time
============
B
Bruce Momjian 已提交
366

B
Bruce Momjian 已提交
367
* Experiment with multi-threaded backend [thread]
B
Bruce Momjian 已提交
368
* Add connection pooling [pool]
B
Bruce Momjian 已提交
369
* Allow persistent backends [persistent]
B
Bruce Momjian 已提交
370 371
* Create a transaction processor to aid in persistent connections and
  connection pooling
372 373 374
* 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
375

376

377 378
Write-Ahead Log
===============
379

380 381
* 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 已提交
382
  partial page writes [wal]
383
* Turn off after-change writes if fsync is disabled (?)
B
Bruce Momjian 已提交
384
* Add WAL index reliability improvement to non-btree indexes
B
Add:  
Bruce Momjian 已提交
385 386 387
* 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 已提交
388 389
* Allow xlog directory location to be specified during initdb, perhaps
  using symlinks
B
Add:  
Bruce Momjian 已提交
390
* Allow pg_xlog to be moved without symlinks
391

B
Bruce Momjian 已提交
392

393 394
Optimizer / Executor
====================
395 396 397

* Improve Subplan list handling
* Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Done:  
Bruce Momjian 已提交
398
* -Add hash for evaluating GROUP BY aggregates (Tom)
B
Bruce Momjian 已提交
399
* Allow merge and hash joins on expressions not just simple variables (Tom)
B
Bruce Momjian 已提交
400
* -Make IN/NOT IN have similar performance to EXISTS/NOT EXISTS (Tom)
B
Bruce Momjian 已提交
401
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
B
Add:  
Bruce Momjian 已提交
402
* Allow ORDER BY ... LIMIT to select top values without sort or index
B
Bruce Momjian 已提交
403
  using a sequential scan for highest/lowest values (Oleg)
B
Done:  
Bruce Momjian 已提交
404
* -Inline simple SQL functions to avoid overhead (Tom)
B
Bruce Momjian 已提交
405
* Precompile SQL functions to avoid overhead (Neil)
B
Add:  
Bruce Momjian 已提交
406
* Add utility to compute accurate random_page_cost value
B
Bruce Momjian 已提交
407
* Improve ability to display optimizer analysis using OPTIMIZER_DEBUG
B
Bruce Momjian 已提交
408
* Use CHECK constraints to improve optimizer decisions
B
Add:  
Bruce Momjian 已提交
409
* Check GUC geqo_threshold to see if it is still accurate
B
Update:  
Bruce Momjian 已提交
410
* Allow sorting, temp files, temp tables to use multiple work directories
B
Bruce Momjian 已提交
411

B
Add:  
Bruce Momjian 已提交
412

413 414
Miscellaneous
=============
415 416

* Do async I/O for faster random read-ahead of data
B
Done:  
Bruce Momjian 已提交
417
* -Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
418
* Use mmap() rather than SYSV shared memory or to write WAL files (?) [mmap]
B
Added:  
Bruce Momjian 已提交
419
* Improve caching of attribute offsets when NULLs exist in the row
B
Add:  
Bruce Momjian 已提交
420
* Add a script to ask system configuration questions and tune postgresql.conf
B
Add:  
Bruce Momjian 已提交
421

B
Bruce Momjian 已提交
422

423
Source Code
424 425
===========

B
Bruce Momjian 已提交
426
* Add use of 'const' for variables in source tree
B
Bruce Momjian 已提交
427
* Rename some /contrib modules from pg* to pg_*
B
Bruce Momjian 已提交
428
* Move some things from /contrib into main tree
B
Bruce Momjian 已提交
429
* Remove warnings created by -Wcast-align
B
Bruce Momjian 已提交
430
* Move platform-specific ps status display info from ps_status.c to ports
B
Bruce Momjian 已提交
431
* Modify regression tests to prevent failures do to minor numeric rounding
B
Done:  
Bruce Momjian 已提交
432
* -Add OpenBSD's getpeereid() call for local socket authentication
B
Typo.  
Bruce Momjian 已提交
433
* Improve access-permissions check on data directory in Cygwin (Tom)
B
Added  
Bruce Momjian 已提交
434
* Add --port flag to regression tests
B
Bruce Momjian 已提交
435 436 437
* 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 已提交
438
* Clarify use of 'application' and 'command' tags in SGML docs
B
Bruce Momjian 已提交
439
* Better document ability to build only certain interfaces (Marc)
440
* Remove or relicense modules that are not under the BSD license, if possible
B
Added:  
Bruce Momjian 已提交
441
* Remove memory/file descriptor freeing befor elog(ERROR)  (Bruce)
B
Add:  
Bruce Momjian 已提交
442
* Acquire lock on a relation before building a relcache entry for it
B
Add:  
Bruce Momjian 已提交
443
* Research interaction of setitimer() and sleep() used by statement_timeout
444

B
Add:  
Bruce Momjian 已提交
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461
* Wire Protocol Changes
	o Show transaction status in psql
	o Allow binding of query parameters, support for prepared queries
	o Add optional textual message to NOTIFY
	o Remove hard-coded limits on user/db/password names
	o Remove unused elements of startup packet (unused, tty, passlength)
	o Fix COPY/fastpath protocol?
	o Allow fastpast to pass values in portable format
	o Replication support?
	o Error codes
	o Dynamic character set handling
	o Special passing of binary values in platform-neutral format (bytea?)
	o ecpg improvements?
	o Add decoded type, length, precision
	o Compression?


B
Bruce Momjian 已提交
462 463 464 465 466
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
B
Bruce Momjian 已提交
467
* Barry is Barry Lind <barry@xythos.com>
B
Bruce Momjian 已提交
468
* Billy is Billy G. Allie <Bill.Allie@mug.org>
B
Bruce Momjian 已提交
469 470 471 472
* 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 已提交
473
* Dave is Dave Cramer <dave@fastcrypt.com>
B
Bruce Momjian 已提交
474
* Edmund is Edmund Mergl <E.Mergl@bawue.de>
B
Bruce Momjian 已提交
475 476
* Fernando Nasser <fnasser@redhat.com> of Red Hat
* Gavin Sherry <swm@linuxworld.com.au> of Alcove Systems Engineering
B
Bruce Momjian 已提交
477 478
* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
* Karel is Karel Zak <zakkr@zf.jcu.cz>
B
Bruce Momjian 已提交
479 480 481
* Jan is Jan Wieck <JanWieck@Yahoo.com> of PeerDirect Corp.
* Liam is Liam Stewart <liams@redhat.com> of Red Hat
* Marc is Marc Fournier <scrappy@hub.org> of PostgreSQL, Inc.
B
Bruce Momjian 已提交
482
* Mark is Mark Hollomon <mhh@mindspring.com>
B
Bruce Momjian 已提交
483
* Michael is Michael Meskes <meskes@postgresql.org> of Credativ
B
Bruce Momjian 已提交
484
* Neil is Neil Conway <neilc@samurai.com>
B
Bruce Momjian 已提交
485
* Oleg is Oleg Bartunov <oleg@sai.msu.su>
B
Bruce Momjian 已提交
486
* Peter M is Peter T Mount <peter@retep.org.uk> of Retep Software
B
Bruce Momjian 已提交
487
* Peter E is Peter Eisentraut <peter_e@gmx.net>
B
Bruce Momjian 已提交
488
* Philip is Philip Warner <pjw@rhyme.com.au> of Albatross Consulting Pty. Ltd.
B
Bruce Momjian 已提交
489
* Rod is Rod Taylor <pg@rbt.ca)>
B
Bruce Momjian 已提交
490 491
* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
B
Bruce Momjian 已提交
492 493 494 495
* 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
* Vadim is Vadim B. Mikheev <vadim4o@email.com> of Sector Data