TODO 23.8 KB
Newer Older
B
Bruce Momjian 已提交
1
TODO list for PostgreSQL
B
Bruce Momjian 已提交
2
========================
B
Add:  
Bruce Momjian 已提交
3
Last updated:		Thu Oct  9 15:36:14 EDT 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
Add:  
Bruce Momjian 已提交
19 20 21 22 23 24 25
	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
Bruce Momjian 已提交
26
	o http://gborg.postgresql.org/project/pgreplication/projdisplay.php
B
Bruce Momjian 已提交
27
* Point-in-time data recovery using backup and write-ahead log
B
Bruce Momjian 已提交
28 29
* Create native Win32 port, http://momjian.postgresql.org/main/writings/pgsql/win32.html

B
Bruce Momjian 已提交
30

31

32 33
Reporting
=========
B
Bruce Momjian 已提交
34

B
Bruce Momjian 已提交
35 36 37 38
* -Allow elog() to return error codes, module name, file name, line
  number, not just messages (Tom)
* -Add error codes (Tom)
* -Make error messages more consistent
B
Bruce Momjian 已提交
39
* Show location of syntax error in query [yacc]
B
Bruce Momjian 已提交
40
* -Add GUC log_statement_and_duration to print statement and >= min duration
B
Add:  
Bruce Momjian 已提交
41

B
Bruce Momjian 已提交
42

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

* Incremental backups
B
Bruce Momjian 已提交
47
* Remove unreferenced table files and temp tables during database vacuum
B
Bruce Momjian 已提交
48
  or postmaster startup (Bruce)
B
Bruce Momjian 已提交
49 50
* Remove behavior of postmaster -o after making postmaster/postgres
  flags unique
B
Bruce Momjian 已提交
51
* -Allow easy display of usernames in a group
B
Added:  
Bruce Momjian 已提交
52
* Allow configuration files to be specified in a different directory
B
Bruce Momjian 已提交
53
* -Add start time to pg_stat_activity
B
Add:  
Bruce Momjian 已提交
54
* Allow limits on per-db/user connections
B
Done:  
Bruce Momjian 已提交
55
* -Have standalone backend read postgresql.conf (Tom)
B
Add:  
Bruce Momjian 已提交
56 57
* Add group object ownership, so groups can rename/drop/grant on objects,
  so we can implement roles
B
Move:  
Bruce Momjian 已提交
58
* Add the concept of dataspaces/tablespaces [tablespaces]
B
Done:  
Bruce Momjian 已提交
59
* -Allow CIDR format to be used in pg_hba.conf
B
Add:  
Bruce Momjian 已提交
60
* Allow logging of only data definition(DDL), or DDL and modification statements
B
Modify:  
Bruce Momjian 已提交
61
* Allow log lines to include session-level information, like database and user
B
Add:;  
Bruce Momjian 已提交
62
* Allow server log information to be output as INSERT statements
63 64
* 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 已提交
65 66
* Allow pooled connections to query prepared queries
* Allow pooled connections to close all open WITH HOLD cursors
B
Add:  
Bruce Momjian 已提交
67
* Allow major upgrades without dump/reload, perhaps using pg_upgrade
B
Add:  
Bruce Momjian 已提交
68
* Have SHOW ALL and pg_settings show descriptions for server-side variables(Joe)
B
Add:  
Bruce Momjian 已提交
69

B
Bruce Momjian 已提交
70

71 72
Data Types
==========
B
Bruce Momjian 已提交
73

B
Done:  
Bruce Momjian 已提交
74
* -Add IPv6 capability to INET/CIDR types
B
Bruce Momjian 已提交
75
* Remove Money type, add money formatting for decimal type
B
Added  
Bruce Momjian 已提交
76
* Change factorial to return a numeric
B
Done:  
Bruce Momjian 已提交
77
* -Change NUMERIC data type to use base 10,000 internally
B
Add:  
Bruce Momjian 已提交
78
* Change NUMERIC to enforce the maximum precision, and increase it
B
Bruce Momjian 已提交
79
* Add function to return compressed length of TOAST data values (Tom)
B
Add:  
Bruce Momjian 已提交
80
* Allow INET subnet tests using non-constants
B
Update:  
Bruce Momjian 已提交
81
* Add transaction_timestamp(), statement_timestamp(), clock_timestamp() functionality
B
Bruce Momjian 已提交
82
* -Add GUC variables to control floating number output digits (Pedro Ferreira)
B
Add:  
Bruce Momjian 已提交
83
* Have sequence dependency track use of DEFAULT sequences, seqname.nextval
B
Update:  
Bruce Momjian 已提交
84
* Disallow changing default expression of a SERIAL column
B
Add:  
Bruce Momjian 已提交
85
* Allow infinite dates just like infinite timestamps
B
Add:  
Bruce Momjian 已提交
86
* Allow pg_dump to dump sequences using NO_MAXVALUE and NO_MINVALUE
87
* Allow better handling of numeric constants, type conversion [typeconv]
B
Bruce Momjian 已提交
88
* Allow backend to output result sets in XML
B
Add:  
Bruce Momjian 已提交
89
* Prevent whole-row references from leaking memory, e.g. SELECT COUNT(tab.*)
B
Bruce Momjian 已提交
90
* -Allow current datestyle to restrict dates;  prevent month/day swapping
B
Bruce Momjian 已提交
91
  from making invalid dates valid
B
Bruce Momjian 已提交
92
* -Prevent month/day swapping of ISO dates to make invalid dates valid
B
Bruce Momjian 已提交
93
* Have initdb set DateStyle based on locale?
B
Add:  
Bruce Momjian 已提交
94
* Add pg_get_acldef(), pg_get_typedefault(), and pg_get_attrdef()
B
Add:  
Bruce Momjian 已提交
95
* Add ALTER DOMAIN, AGGREGATE, CONVERSION, SEQUENCE ... OWNER TO
B
Add:  
Bruce Momjian 已提交
96
* Allow to_char to print localized month names (Karel)
B
Add:  
Bruce Momjian 已提交
97

B
Bruce Momjian 已提交
98

99
* ARRAYS
B
Bruce Momjian 已提交
100
	o Allow nulls in arrays
B
Bruce Momjian 已提交
101
	o -Allow arrays to be ORDER'ed
B
Bruce Momjian 已提交
102 103 104
	o -Support construction of array result values in expressions (Joe)
	o Delay resolution of array expression type so assignment coercion 
	  can be performed on empty array expressions (Joe)
B
Bruce Momjian 已提交
105

B
Bruce Momjian 已提交
106
* BINARY DATA
B
Bruce Momjian 已提交
107
	o Improve vacuum of large objects, like /contrib/vacuumlo
B
Bruce Momjian 已提交
108 109 110 111
	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 已提交
112

113

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

117
* Add NCHAR (as distinguished from ordinary varchar),
B
Bruce Momjian 已提交
118
* Allow LOCALE on a per-column basis, default to ASCII
B
Bruce Momjian 已提交
119
* Support multiple simultaneous character sets, per SQL92
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
B
Bruce Momjian 已提交
126
* -Remove Cyrillic recode support
B
Add:  
Bruce Momjian 已提交
127 128
* Fix upper()/lower() to work for multibyte encodings

129

130 131
Views / Rules
=============
B
Bruce Momjian 已提交
132

B
Bruce Momjian 已提交
133
* Automatically create rules on views so they are updateable, per SQL92 [view]
B
Bruce Momjian 已提交
134
* Add the functionality for WITH CHECK OPTION clause of CREATE VIEW
B
Bruce Momjian 已提交
135
* Allow NOTIFY in rules involving conditionals
B
Bruce Momjian 已提交
136
* Have views on temporary tables exist in the temporary namespace
B
Bruce Momjian 已提交
137
* Move psql backslash information into views
B
Bruce Momjian 已提交
138
* Allow RULE recompilation
139

B
Add:  
Bruce Momjian 已提交
140

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

* Allow CREATE INDEX zman_index ON test (date_trunc( 'day', zman ) datetime_ops)
B
Bruce Momjian 已提交
145
  fails index can't store constant parameters
B
Bruce Momjian 已提交
146
* Order duplicate index entries by tid for faster heap lookups
B
Bruce Momjian 已提交
147 148
* Allow inherited tables to inherit index, UNIQUE constraint, and primary
  key, foreign key  [inheritance]
B
Bruce Momjian 已提交
149 150 151
* 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 已提交
152
* Add UNIQUE capability to non-btree indexes
B
Done:  
Bruce Momjian 已提交
153
* -Add btree index support for reltime, tinterval, regproc (Tom)
B
Bruce Momjian 已提交
154
* Add rtree index support for line, lseg, path, point
B
Bruce Momjian 已提交
155
* -Certain indexes will not shrink, e.g. indexes on ever-increasing
B
Bruce Momjian 已提交
156
  columns and indexes with many duplicate keys
B
Bruce Momjian 已提交
157
* Use indexes for min() and max() or convert to SELECT col FROM tab ORDER
B
Bruce Momjian 已提交
158
  BY col DESC LIMIT 1 if appropriate index exists and WHERE clause acceptible
B
Bruce Momjian 已提交
159
* -Allow LIKE indexing optimization for non-ASCII locales using special index
B
Bruce Momjian 已提交
160 161 162
* 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 已提交
163
* Prevent index uniqueness checks when UPDATE does not modify the column
B
Update:  
Bruce Momjian 已提交
164 165
* Use bitmaps to fetch heap pages in sequential order [performance]
* Use bitmaps to combine existing indexes [performance]
B
Bruce Momjian 已提交
166
* Improve handling of index scans for NULL
B
Bruce Momjian 已提交
167 168
* Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
  float4, numeric/decimal too [optimizer]
B
Bruce Momjian 已提交
169
* Add FILLFACTOR to btree index creation
B
Reword:  
Bruce Momjian 已提交
170
* Add concurrency to GIST
B
Bruce Momjian 已提交
171
* -Improve concurrency of hash indexes (Tom)
B
Add:  
Bruce Momjian 已提交
172
* Allow a single index to index multiple tables (for inheritance and subtables)
B
Bruce Momjian 已提交
173

B
Bruce Momjian 已提交
174

175 176
Commands
========
B
Bruce Momjian 已提交
177

B
Bruce Momjian 已提交
178
* Add BETWEEN ASYMMETRIC/SYMMETRIC (Christopher)
B
Done:  
Bruce Momjian 已提交
179
* -Allow LIMIT/OFFSET to use expressions (Tom)
B
Bruce Momjian 已提交
180 181
* CREATE TABLE AS can not determine column lengths from expressions [atttypmod]
* Allow UPDATE to handle complex aggregates [update]
B
Bruce Momjian 已提交
182
* Allow command blocks to ignore certain types of errors
B
Added:  
Bruce Momjian 已提交
183
* Allow backslash handling in quoted strings to be disabled for portability
B
Bruce Momjian 已提交
184
* -Return proper effected tuple count from complex commands [return]
B
Update:  
Bruce Momjian 已提交
185
* Allow UPDATE, DELETE to handle table aliases for self-joins [delete]
B
Add:  
Bruce Momjian 已提交
186
* Add CORRESPONDING BY to UNION/INTERSECT/EXCEPT
B
Add:  
Bruce Momjian 已提交
187
* Allow REINDEX to rebuild all indexes, remove /contrib/reindex
B
Update:  
Bruce Momjian 已提交
188
* -Make a transaction-safe TRUNCATE (Rod)
B
Add:  
Bruce Momjian 已提交
189
* Add ROLLUP, CUBE, GROUPING SETS options to GROUP BY
B
Add:  
Bruce Momjian 已提交
190
* Add schema option to createlang
191
* Allow savepoints / nested transactions [transactions] (Bruce)
B
Add:  
Bruce Momjian 已提交
192
* Allow UPDATE tab SET ROW (col, ...) = (...) for updating multiple columns
B
Done:  
Bruce Momjian 已提交
193
* -Allow UPDATE to use SET col = DEFAULT
B
Done:  
Bruce Momjian 已提交
194
* -Add config variable to prevent auto-adding missing FROM-clause tables
B
Add:  
Bruce Momjian 已提交
195
* Allow SET CONSTRAINTS to be qualified by schema/table
B
Bruce Momjian 已提交
196
* -Have SELECT '13 minutes'::interval display zero seconds in ISO datestyle
B
Add:  
Bruce Momjian 已提交
197
* Prevent COMMENT ON DATABASE from using a database name
B
Add:  
Bruce Momjian 已提交
198
* Add GUC variable to prevent waiting on locks
B
Add:  
Bruce Momjian 已提交
199
* Allow TRUNCATE ... CASCADE/RESTRICT
B
Add:  
Bruce Momjian 已提交
200
* Allow PREPARE of cursors
B
Add:  
Bruce Momjian 已提交
201
* Allow LISTEN/NOTIFY to store info in memory rather than tables
B
Update:  
Bruce Momjian 已提交
202 203
* COMMENT ON [ CAST | CONVERSION | OPERATOR CLASS | LARGE OBJECT | LANGUAGE ] 
  (Christopher) 
B
Add:  
Bruce Momjian 已提交
204

B
Bruce Momjian 已提交
205

B
Bruce Momjian 已提交
206
* ALTER
B
Bruce Momjian 已提交
207
	o ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
B
Bruce Momjian 已提交
208
	o ALTER TABLE ADD COLUMN column DEFAULT should fill existing
B
Bruce Momjian 已提交
209
	  rows with DEFAULT value
B
Bruce Momjian 已提交
210 211
	o ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence because
          of the item above
B
Bruce Momjian 已提交
212
	o --Add ALTER TABLE tab SET WITHOUT OIDS (Rod)
B
Done:  
Bruce Momjian 已提交
213
	o -Add ALTER SEQUENCE to modify min/max/increment/cache/cycle values
B
Add:  
Bruce Momjian 已提交
214
	o Have ALTER TABLE rename SERIAL sequences
B
Add:  
Bruce Momjian 已提交
215 216
	o Allow columns to be reordered using ALTER ... POSITION i col1 [,col2];
	  have SELECT * and INSERT honor such ordering
B
Add:  
Bruce Momjian 已提交
217 218
	o Allow ALTER TABLE to modify column lengths and change to binary
	  compatible types
B
Add:  
Bruce Momjian 已提交
219
	o Add ALTER DATABASE ... OWNER TO newowner
B
Add:  
Bruce Momjian 已提交
220
	o Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
B
Add:  
Bruce Momjian 已提交
221
	o Allow ALTER TABLE to change constraint deferrability and actions
B
Bruce Momjian 已提交
222

B
Bruce Momjian 已提交
223
* CLUSTER
B
Bruce Momjian 已提交
224
	o Automatically maintain clustering on a table
B
Bruce Momjian 已提交
225
	o -Allow CLUSTER to cluster all tables (Alvaro Herrera)
B
Bruce Momjian 已提交
226

B
Bruce Momjian 已提交
227
* COPY
B
Bruce Momjian 已提交
228
	o Allow dump/load of CSV format
B
Add:  
Bruce Momjian 已提交
229
	o Allow COPY to report error lines and continue;  optionally
230
	  allow error codes to be specified; requires savepoints or can
B
Bruce Momjian 已提交
231
	  not be run in a multi-statement transaction
B
Add:  
Bruce Momjian 已提交
232 233
	o Allow COPY to understand \x as hex
	o Have COPY return number of rows loaded/unloaded
B
Bruce Momjian 已提交
234

B
Bruce Momjian 已提交
235
* CURSOR
B
Bruce Momjian 已提交
236
	o Allow BINARY option to SELECT, just like DECLARE
B
Add:  
Bruce Momjian 已提交
237
	o -MOVE 0 should not move to end of cursor (Bruce)
B
Bruce Momjian 已提交
238
	o Allow UPDATE/DELETE WHERE CURRENT OF cursor using per-cursor tid
B
Bruce Momjian 已提交
239
	  stored in the backend (Gavin)
B
Bruce Momjian 已提交
240
	o Prevent DROP of table being referenced by our own open cursor
B
Done:  
Bruce Momjian 已提交
241
	o -Allow cursors outside transactions
B
Bruce Momjian 已提交
242

B
Bruce Momjian 已提交
243
* INSERT
B
Bruce Momjian 已提交
244 245
	o Allow INSERT/UPDATE of system-generated oid value for a row
	o Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
B
Bruce Momjian 已提交
246
	o Allow INSERT/UPDATE ... RETURNING new.col or old.col; handle
B
Bruce Momjian 已提交
247
	  RULE cases (Philip)
B
Bruce Momjian 已提交
248

B
Bruce Momjian 已提交
249
* SHOW/SET
B
Bruce Momjian 已提交
250
	o Add SET PERFORMANCE_TIPS option to suggest INDEX, VACUUM, VACUUM
B
Bruce Momjian 已提交
251
	  ANALYZE, and CLUSTER
B
Add:  
Bruce Momjian 已提交
252
	o Add SET SCHEMA
B
Bruce Momjian 已提交
253
	o -Allow EXPLAIN EXECUTE to see prepared plans
B
Bruce Momjian 已提交
254
 	o -Allow SHOW of some non-modifiable variables, like pg_controldata
B
Bruce Momjian 已提交
255

B
Bruce Momjian 已提交
256
* SERVER-SIDE LANGUAGES
B
Bruce Momjian 已提交
257 258
	o Allow PL/PgSQL's RAISE function to take expressions
	o Change PL/PgSQL to use palloc() instead of malloc()
B
Update:  
Bruce Momjian 已提交
259 260
	o Allow Java server-side programming, http://pljava.sourceforge.net
	  [java]
B
Add:  
Bruce Momjian 已提交
261
	o Fix problems with complex temporary table creation/destruction
262
	  without using PL/PgSQL EXECUTE, needs cache prevention/invalidation
B
Update:  
Bruce Momjian 已提交
263
        o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
B
Added:  
Bruce Momjian 已提交
264
	o Improve PL/PgSQL exception handling
265
	o Allow parameters to be specified by name and type during definition
B
Bruce Momjian 已提交
266
	o Allow function parameters to be passed by name,
B
Added:  
Bruce Momjian 已提交
267 268
	  get_employee_salary(emp_id => 12345, tax_year => 2001)
	o Add PL/PgSQL packages
B
Done:  
Bruce Momjian 已提交
269
	o -Allow array declarations and other data types in PL/PgSQL DECLARE
B
Add:  
Bruce Momjian 已提交
270
	o Add table function support to pltcl, plperl, plpython
B
Bruce Momjian 已提交
271
	o -Make PL/PgSQL %TYPE schema-aware
B
Done:  
Bruce Momjian 已提交
272
	o -Allow PL/PgSQL to support array element assignment (Joe)
B
Add:  
Bruce Momjian 已提交
273
	o Add PL/PHP (Joe, Jan)
B
Add:  
Bruce Momjian 已提交
274
	o Allow PL/pgSQL to name columns by ordinal position, e.g. rec.(3)
B
Add:  
Bruce Momjian 已提交
275
	o Allow PL/pgSQL EXECUTE query_var INTO record_var;
B
Bruce Momjian 已提交
276
	o Add capability to create and call PROCEDURES
B
Bruce Momjian 已提交
277

B
Add:  
Bruce Momjian 已提交
278

279 280
Clients
=======
B
Bruce Momjian 已提交
281

B
Bruce Momjian 已提交
282
* -Allow psql to show transaction status if backend protocol changes made
B
Done:  
Bruce Momjian 已提交
283
* -Add schema, cast, and conversion backslash commands to psql (Christopher)
B
Bruce Momjian 已提交
284
* -Allow pg_dump to dump a specific schema (Neil Conway)
B
Done:  
Bruce Momjian 已提交
285
* -Allow psql to do table completion for SELECT * FROM schema_part and
B
Add:  
Bruce Momjian 已提交
286
  table completion for SELECT * FROM schema_name.
B
Bruce Momjian 已提交
287
* Add XML capability to pg_dump and COPY, when backend XML capability
B
Done:  
Bruce Momjian 已提交
288
* -Allow SSL-enabled clients to turn off SSL transfers
B
Bruce Momjian 已提交
289 290
* -Modify pg_get_triggerdef() to take a boolean to pretty-print,
  and use that as part of pg_dump along with psql
B
Bruce Momjian 已提交
291
* Allow psql \du to show groups, and add \dg for groups
B
Add:  
Bruce Momjian 已提交
292
* Allow clients to query WITH HOLD cursors and prepared statements
B
Add:  
Bruce Momjian 已提交
293
* Prevent unneeded quoting in psql \d output using fmtId()
B
Add:  
Bruce Momjian 已提交
294
* Add a libpq function to support Parse/DescribeStatement capability
B
Add:  
Bruce Momjian 已提交
295

B
Bruce Momjian 已提交
296

B
Bruce Momjian 已提交
297
* JDBC
B
Bruce Momjian 已提交
298 299 300
	o Comprehensive test suite. This may be available already.
	o JDBC-standard BLOB support
	o Error Codes (pending backend implementation)
B
Added  
Bruce Momjian 已提交
301
	o Support both 'make' and 'ant'
B
Barry Lind 已提交
302 303
	o Fix LargeObject API to handle OIDs as unsigned ints
	o Use cursors implicitly to avoid large results (see setCursorName())
B
Bruce Momjian 已提交
304
	o Add LISTEN/NOTIFY support to the JDBC driver (Barry)
B
Bruce Momjian 已提交
305

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

B
Bruce Momjian 已提交
323
* Python
B
Add:  
Bruce Momjian 已提交
324
	o Allow users to register their own types with pg_
B
Bruce Momjian 已提交
325 326 327
	o Allow SELECT to return a dictionary of dictionaries
	o Allow COPY BINARY FROM

328

329 330
Referential Integrity
=====================
B
Bruce Momjian 已提交
331

B
Bruce Momjian 已提交
332
* Add MATCH PARTIAL referential integrity [foreign]
B
Bruce Momjian 已提交
333
* Add deferred trigger queue file (Jan)
B
Modify:  
Bruce Momjian 已提交
334
* Implement dirty reads or shared row locks and use them in RI triggers
B
Bruce Momjian 已提交
335
* Enforce referential integrity for system tables
B
Bruce Momjian 已提交
336
* Change foreign key constraint for array -> element to mean element
B
Bruce Momjian 已提交
337
  in array
B
Add:  
Bruce Momjian 已提交
338
* Allow DEFERRABLE UNIQUE constraints
B
Add:  
Bruce Momjian 已提交
339
* Allow triggers to be disabled [trigger]
340
* With disabled triggers, allow pg_dump to use ALTER TABLE ADD FOREIGN KEY
B
Split:  
Bruce Momjian 已提交
341 342
* -Support statement-level triggers (Neil)
* Support triggers on columns (Neil)
B
Add:  
Bruce Momjian 已提交
343 344
* Have AFTER triggers execute after the appropriate SQL statement in a 
  function, not at the end of the function
B
Add:  
Bruce Momjian 已提交
345 346
* Print table names with constraint names in error messages, or make constraint
  names unique within a schema
B
Add:  
Bruce Momjian 已提交
347
* Issue NOTICE if foreign key data type doesn't match primary key
B
Add:  
Bruce Momjian 已提交
348
* Remove CREATE CONSTRAINT TRIGGER
B
Add:  
Bruce Momjian 已提交
349

B
Bruce Momjian 已提交
350

351 352
Dependency Checking
===================
B
Bruce Momjian 已提交
353

B
Bruce Momjian 已提交
354
* Flush cached query plans when their underlying catalog data changes
B
Add:  
Bruce Momjian 已提交
355
* Use dependency information to dump data in proper order
B
Add:  
Bruce Momjian 已提交
356
* Have pg_dump -c clear the database using dependency information
357

B
Add:  
Bruce Momjian 已提交
358

359 360
Exotic Features
===============
361

B
Add:  
Bruce Momjian 已提交
362 363
* Add SQL99 WITH clause to SELECT (Tom, Fernando)
* Add SQL99 WITH RECURSIVE to SELECT (Tom, Fernando)
B
Bruce Momjian 已提交
364
* Allow queries across multiple databases [crossdb]
B
Bruce Momjian 已提交
365
* Add pre-parsing phase that converts non-ANSI features to supported features
B
Bruce Momjian 已提交
366
* Allow plug-in modules to emulate features from other databases
B
Bruce Momjian 已提交
367
* SQL*Net listener that makes PostgreSQL appear as an Oracle database
B
Bruce Momjian 已提交
368
  to clients
B
Bruce Momjian 已提交
369 370
* Add two-phase commit to all distributed transactions with 
  offline/readonly server status or administrator notification for failure
371

B
Bruce Momjian 已提交
372

B
Bruce Momjian 已提交
373
PERFORMANCE
374 375
===========

B
Bruce Momjian 已提交
376

377 378
Fsync
=====
B
Bruce Momjian 已提交
379

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

B
Bruce Momjian 已提交
385

386 387
Cache
=====
B
Bruce Momjian 已提交
388
* Shared catalog cache, reduce lseek()'s by caching table size in shared area
B
Bruce Momjian 已提交
389
* Add free-behind capability for large sequential scans (Bruce)
B
Bruce Momjian 已提交
390
* Consider use of open/fcntl(O_DIRECT) to minimize OS caching
B
Bruce Momjian 已提交
391
* Make blind writes go through the file descriptor cache
B
Add:  
Bruce Momjian 已提交
392
* Cache last known per-tuple offsets to speed long tuple access
B
Add:  
Bruce Momjian 已提交
393
* Automatically place fixed-width, NOT NULL columns first in a table
B
Modify:  
Bruce Momjian 已提交
394 395
* Use a fixed row count and a +/- count with MVCC visibility rules 
  to allow fast COUNT(*) queries with no WHERE clause(?)
B
Bruce Momjian 已提交
396

397

398 399
Vacuum
======
B
Bruce Momjian 已提交
400 401 402 403

* 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
Bruce Momjian 已提交
404 405
* Provide automatic running of vacuum in the background in backend
  rather than in /contrib [vacuum]
B
Add:  
Bruce Momjian 已提交
406
* Allow free space map to be auto-sized or warn when it is too small
B
Add:  
Bruce Momjian 已提交
407 408
* Maintain a map of recently-expired of pages so vacuum can reclaim
  free space without a sequential scan
B
Add:  
Bruce Momjian 已提交
409
* Have VACUUM FULL use REINDEX rather than index vacuum
B
Add:  
Bruce Momjian 已提交
410

B
Add:  
Bruce Momjian 已提交
411

412 413
Locking
=======
414 415 416

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

421

422 423
Startup Time
============
B
Bruce Momjian 已提交
424

B
Bruce Momjian 已提交
425
* Experiment with multi-threaded backend [thread]
B
Bruce Momjian 已提交
426
* Add connection pooling [pool]
B
Bruce Momjian 已提交
427
* Allow persistent backends [persistent]
B
Bruce Momjian 已提交
428 429
* Create a transaction processor to aid in persistent connections and
  connection pooling
430 431 432
* 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
433

434

435 436
Write-Ahead Log
===============
437

438 439
* 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 已提交
440
  partial page writes [wal]
441
* Turn off after-change writes if fsync is disabled (?)
B
Bruce Momjian 已提交
442
* Add WAL index reliability improvement to non-btree indexes
B
Add:  
Bruce Momjian 已提交
443
* Find proper defaults for postgresql.conf WAL entries
444 445
* -Add checkpoint_min_warning postgresql.conf option to warn about checkpoints
  that are too frequent (Bruce)
B
Add:  
Bruce Momjian 已提交
446 447
* Allow xlog directory location to be specified during initdb, perhaps
  using symlinks
B
Add:  
Bruce Momjian 已提交
448
* Allow WAL information to recover corrupted pg_controldata
B
Added:  
Bruce Momjian 已提交
449 450
* Find a way to reduce rotational delay when repeatedly writing
  last WAL page
451

B
Bruce Momjian 已提交
452

453 454
Optimizer / Executor
====================
455

B
Bruce Momjian 已提交
456
* -Improve Subplan list handling
B
Bruce Momjian 已提交
457
* -Allow Subplans to use efficient joins(hash, merge) with upper variable
B
Done:  
Bruce Momjian 已提交
458
* -Add hash for evaluating GROUP BY aggregates (Tom)
B
Bruce Momjian 已提交
459
* -Allow merge and hash joins on expressions not just simple variables (Tom)
B
Bruce Momjian 已提交
460
* -Make IN/NOT IN have similar performance to EXISTS/NOT EXISTS (Tom)
B
Bruce Momjian 已提交
461
* Missing optimizer selectivities for date, r-tree, etc. [optimizer]
B
Add:  
Bruce Momjian 已提交
462
* Allow ORDER BY ... LIMIT to select top values without sort or index
B
Bruce Momjian 已提交
463
  using a sequential scan for highest/lowest values (Oleg)
B
Done:  
Bruce Momjian 已提交
464
* -Inline simple SQL functions to avoid overhead (Tom)
B
Bruce Momjian 已提交
465
* Precompile SQL functions to avoid overhead (Neil)
B
Add:  
Bruce Momjian 已提交
466
* Add utility to compute accurate random_page_cost value
B
Bruce Momjian 已提交
467
* Improve ability to display optimizer analysis using OPTIMIZER_DEBUG
B
Bruce Momjian 已提交
468
* Use CHECK constraints to improve optimizer decisions
B
Add:  
Bruce Momjian 已提交
469
* Check GUC geqo_threshold to see if it is still accurate
B
Update:  
Bruce Momjian 已提交
470
* Allow sorting, temp files, temp tables to use multiple work directories
B
Add:  
Bruce Momjian 已提交
471
* Improve the planner to use CHECK constraints to prune the plan (for subtables)
B
Add:  
Bruce Momjian 已提交
472
* Have EXPLAIN ANALYZE highlight poor optimizer estimates
B
Bruce Momjian 已提交
473

B
Add:  
Bruce Momjian 已提交
474

475 476
Miscellaneous
=============
477 478

* Do async I/O for faster random read-ahead of data
B
Done:  
Bruce Momjian 已提交
479
* -Get faster regex() code from Henry Spencer <henry@zoo.utoronto.ca>
480
* Use mmap() rather than SYSV shared memory or to write WAL files (?) [mmap]
B
Added:  
Bruce Momjian 已提交
481
* Improve caching of attribute offsets when NULLs exist in the row
B
Add:  
Bruce Momjian 已提交
482
* Add a script to ask system configuration questions and tune postgresql.conf
B
Add:  
Bruce Momjian 已提交
483
* Allow partitioning of table into multiple subtables
B
Add:  
Bruce Momjian 已提交
484
* Use background process to write dirty shared buffers to disk
B
Bruce Momjian 已提交
485

B
Add:  
Bruce Momjian 已提交
486

487
Source Code
488 489
===========

B
Bruce Momjian 已提交
490
* Add use of 'const' for variables in source tree
B
Bruce Momjian 已提交
491
* Rename some /contrib modules from pg* to pg_*
B
Bruce Momjian 已提交
492
* Move some things from /contrib into main tree
B
Bruce Momjian 已提交
493
* Remove warnings created by -Wcast-align
B
Bruce Momjian 已提交
494
* Move platform-specific ps status display info from ps_status.c to ports
B
Done:  
Bruce Momjian 已提交
495
* -Modify regression tests to prevent failures do to minor numeric rounding
B
Done:  
Bruce Momjian 已提交
496
* -Add OpenBSD's getpeereid() call for local socket authentication
B
Typo.  
Bruce Momjian 已提交
497
* Improve access-permissions check on data directory in Cygwin (Tom)
B
Bruce Momjian 已提交
498
* Add documentation for perl, including mention of DBI/DBD perl location
B
Add:  
Bruce Momjian 已提交
499 500
* Create improved PostgreSQL introductory documentation for the PHP
  manuals (Rory)
B
Bruce Momjian 已提交
501 502
* Add optional CRC checksum to heap and index pages
* Change representation of whole-tuple parameters to functions
B
Add:  
Bruce Momjian 已提交
503
* Clarify use of 'application' and 'command' tags in SGML docs
B
Bruce Momjian 已提交
504
* Better document ability to build only certain interfaces (Marc)
505
* Remove or relicense modules that are not under the BSD license, if possible
B
Bruce Momjian 已提交
506
* Remove memory/file descriptor freeing before ereport(ERROR)  (Bruce)
B
Add:  
Bruce Momjian 已提交
507
* Acquire lock on a relation before building a relcache entry for it
B
Add:  
Bruce Momjian 已提交
508
* Research interaction of setitimer() and sleep() used by statement_timeout
B
Add:  
Bruce Momjian 已提交
509
* Add checks for fclose() failure
B
Add:  
Bruce Momjian 已提交
510
* Change CVS $Id: TODO,v 1.1148 2003/10/09 19:36:27 momjian Exp $ to $PostgreSQL: pgsql/doc/TODO,v 1.1148 2003/10/09 19:36:27 momjian Exp $
B
Add:  
Bruce Momjian 已提交
511
* Exit postmaster if postgresql.conf can not be opened
B
Add:  
Bruce Momjian 已提交
512
* Rename /scripts directory because they are all C programs now
B
Add:  
Bruce Momjian 已提交
513 514
* Allow the regression tests to start postmaster with -i so the tests
  can be run on systems that don't support unix-domain sockets
B
Add:  
Bruce Momjian 已提交
515
* Allow creation of a libpq-only tarball
B
Add:  
Bruce Momjian 已提交
516
* Promote debug_query_string into a server-side function current_query()
B
Add:  
Bruce Momjian 已提交
517
* Allow the identifier length to be increased via a configure option
B
Add:  
Bruce Momjian 已提交
518

519

B
Add:  
Bruce Momjian 已提交
520
* Wire Protocol Changes
B
Bruce Momjian 已提交
521 522
	o -Show transaction status in psql
	o -Allow binding of query parameters, support for prepared queries
B
Add:  
Bruce Momjian 已提交
523
	o Add optional textual message to NOTIFY
B
Bruce Momjian 已提交
524 525 526
	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
B
Add:  
Bruce Momjian 已提交
527
	o Allow fastpast to pass values in portable format
B
Bruce Momjian 已提交
528
	o -Error codes
B
Add:  
Bruce Momjian 已提交
529 530 531 532
	o Dynamic character set handling
	o Special passing of binary values in platform-neutral format (bytea?)
	o Add decoded type, length, precision
	o Compression?
B
Bruce Momjian 已提交
533
	o -Report server version number, database encoding, client encoding
B
Bruce Momjian 已提交
534 535
	o Update clients to use data types, typmod, schema.table.column names of
	  result sets using new query protocol
B
Add:  
Bruce Momjian 已提交
536

B
Bruce Momjian 已提交
537 538 539 540 541
---------------------------------------------------------------------------


Developers who have claimed items are:
--------------------------------------
B
Bruce Momjian 已提交
542
* Barry is Barry Lind <barry@xythos.com>
B
Bruce Momjian 已提交
543
* Billy is Billy G. Allie <Bill.Allie@mug.org>
B
Bruce Momjian 已提交
544 545 546 547
* 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 已提交
548
* Dave is Dave Cramer <dave@fastcrypt.com>
B
Bruce Momjian 已提交
549
* Edmund is Edmund Mergl <E.Mergl@bawue.de>
B
Bruce Momjian 已提交
550 551 552
* 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 已提交
553 554
* Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
* Karel is Karel Zak <zakkr@zf.jcu.cz>
B
Bruce Momjian 已提交
555 556 557
* 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 已提交
558
* Mark is Mark Hollomon <mhh@mindspring.com>
B
Bruce Momjian 已提交
559
* Michael is Michael Meskes <meskes@postgresql.org> of Credativ
B
Bruce Momjian 已提交
560
* Neil is Neil Conway <neilc@samurai.com>
B
Bruce Momjian 已提交
561
* Oleg is Oleg Bartunov <oleg@sai.msu.su>
B
Bruce Momjian 已提交
562
* Peter M is Peter T Mount <peter@retep.org.uk> of Retep Software
B
Bruce Momjian 已提交
563
* Peter E is Peter Eisentraut <peter_e@gmx.net>
B
Bruce Momjian 已提交
564
* Philip is Philip Warner <pjw@rhyme.com.au> of Albatross Consulting Pty. Ltd.
B
Bruce Momjian 已提交
565
* Rod is Rod Taylor <pg@rbt.ca>
B
Bruce Momjian 已提交
566 567
* Ross is Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
* Stephan is Stephan Szabo <sszabo@megazone23.bigpanda.com>
B
Bruce Momjian 已提交
568 569 570 571
* 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