source: trunk/docs/contents/changelog.rst @ 710

Last change on this file since 710 was 710, checked in by cito, 4 years ago

Port all doc changes from 4.x branch to trunk

  • Property svn:keywords set to Author Date Id Revision
File size: 16.0 KB
Line 
1ChangeLog
2=========
3
4Version 5.0
5-----------
6- This version runs on both Python 2 and Python 3.
7- The supported versions are Python 2.6 to 2.7, and 3.3 to 3.5.
8- PostgreSQL is supported in all versions from 9.0 to 9.5.
9- The DB-API 2 module now always returns result rows as named tuples
10  instead of simply lists as before. The documentation explains how
11  you can restore the old behavior or use custom row objects instead.
12- The names of the various types supported by the classic and DB-API 2
13  modules have been renamed to become simpler, more intuitive and in
14  line with the names used in the DB-API 2 documentation.
15  Since the API provides objects of these types only by the use of
16  constructor functions, this should not cause any incompatibilities.
17- The DB-API 2 module now supports the callproc() cursor method. Note
18  that output parameters are currently not replaced in the return value.
19- The DB-API 2 module no supports copy operations between data streams
20  on the client and database tables via the COPY command of PostgreSQL.
21  The cursor method copy_from() can be used to copy data from the database
22  to the client, and the cursor method copy_to() can be used to copy data
23  from the client to the database.
24- The 7-tuples returned by the description attribute of a pgdb cursor
25  are now named tuples, i.e. their elements can be also accessed by name.
26  The column names and types can now also be requested through the
27  colnames and coltypes attributes, which are not part of DB-API 2 though.
28- The tty parameter and attribute of database connections has been
29  removed since it is not supported any more since PostgreSQL 7.4.
30
31Version 4.2
32-----------
33- Set a better default for the user option "escaping-funcs".
34- The supported Python versions are 2.4 to 2.7.
35- PostgreSQL is supported in all versions from 8.3 to 9.5.
36- Force build to compile with no errors.
37- Fix decimal point handling.
38- Add option to return boolean values as bool objects.
39- Add option to return money values as string.
40- get_tables() does not list information schema tables any more.
41- Fix notification handler (Thanks Patrick TJ McPhee).
42- Fix a small issue with large objects.
43- The tutorial files have become a chapter in the documentation.
44- Greatly improve unit testing, tests run with Python 2.4 to 2.7 again.
45
46Version 4.1.1 (2013-01-08)
47--------------------------
48- Add WhenNotified class and method.  Replaces need for third party pgnotify.
49- Sharpen test for inserting current_timestamp.
50- Add more quote tests.  False and 0 should evaluate to NULL.
51- More tests - Any number other than 0 is True.
52- Do not use positional parameters internally.
53  This restores backward compatibility with version 4.0.
54- Add methods for changing the decimal point.
55
56Version 4.1 (2013-01-01)
57------------------------
58- Dropped support for Python below 2.5 and PostgreSQL below 8.3.
59- Added support for Python up to 2.7 and PostgreSQL up to 9.2.
60- Particularly, support PQescapeLiteral() and PQescapeIdentifier().
61- The query method of the classic API now supports positional parameters.
62  This an effective way to pass arbitrary or unknown data without worrying
63  about SQL injection or syntax errors (contribution by Patrick TJ McPhee).
64- The classic API now supports a method namedresult() in addition to
65  getresult() and dictresult(), which returns the rows of the result
66  as named tuples if these are supported (Python 2.6 or higher).
67- The classic API has got the new methods begin(), commit(), rollback(),
68  savepoint() and release() for handling transactions.
69- Both classic and DBAPI 2 connections can now be used as context
70  managers for encapsulating transactions.
71- The execute() and executemany() methods now return the cursor object,
72  so you can now write statements like "for row in cursor.execute(...)"
73  (as suggested by Adam Frederick).
74- Binary objects are now automatically escaped and unescaped.
75- Bug in money quoting fixed.  Amounts of $0.00 handled correctly.
76- Proper handling of date and time objects as input.
77- Proper handling of floats with 'nan' or 'inf' values as input.
78- Fixed the set_decimal() function.
79- All DatabaseError instances now have a sqlstate attribute.
80- The getnotify() method can now also return payload strings (#15).
81- Better support for notice processing with the new methods
82  set_notice_receiver() and get_notice_receiver()
83  (as suggested by Michael Filonenko, see #37).
84- Open transactions are rolled back when pgdb connections are closed
85  (as suggested by Peter Harris, see #46).
86- Connections and cursors can now be used with the "with" statement
87  (as suggested by Peter Harris, see #46).
88- New method use_regtypes() that can be called to let getattnames()
89  return regular type names instead of the simplified classic types (#44).
90
91Version 4.0 (2009-01-01)
92------------------------
93- Dropped support for Python below 2.3 and PostgreSQL below 7.4.
94- Improved performance of fetchall() for large result sets
95  by speeding up the type casts (as suggested by Peter Schuller).
96- Exposed exceptions as attributes of the connection object.
97- Exposed connection as attribute of the cursor object.
98- Cursors now support the iteration protocol.
99- Added new method to get parameter settings.
100- Added customizable row_factory as suggested by Simon Pamies.
101- Separated between mandatory and additional type objects.
102- Added keyword args to insert, update and delete methods.
103- Added exception handling for direct copy.
104- Start transactions only when necessary, not after every commit().
105- Release the GIL while making a connection
106  (as suggested by Peter Schuller).
107- If available, use decimal.Decimal for numeric types.
108- Allow DB wrapper to be used with DB-API 2 connections
109  (as suggested by Chris Hilton).
110- Made private attributes of DB wrapper accessible.
111- Dropped dependence on mx.DateTime module.
112- Support for PQescapeStringConn() and PQescapeByteaConn();
113  these are now also used by the internal _quote() functions.
114- Added 'int8' to INTEGER types. New SMALLINT type.
115- Added a way to find the number of rows affected by a query()
116  with the classic pg module by returning it as a string.
117  For single inserts, query() still returns the oid as an integer.
118  The pgdb module already provides the "rowcount" cursor attribute
119  for the same purpose.
120- Improved getnotify() by calling PQconsumeInput() instead of
121  submitting an empty command.
122- Removed compatibility code for old OID munging style.
123- The insert() and update() methods now use the "returning" clause
124  if possible to get all changed values, and they also check in advance
125  whether a subsequent select is possible, so that ongoing transactions
126  won't break if there is no select privilege.
127- Added "protocol_version" and "server_version" attributes.
128- Revived the "user" attribute.
129- The pg module now works correctly with composite primary keys;
130  these are represented as frozensets.
131- Removed the undocumented and actually unnecessary "view" parameter
132  from the get() method.
133- get() raises a nicer ProgrammingError instead of a KeyError
134  if no primary key was found.
135- delete() now also works based on the primary key if no oid available
136  and returns whether the row existed or not.
137
138Version 3.8.1 (2006-06-05)
139--------------------------
140- Use string methods instead of deprecated string functions.
141- Only use SQL-standard way of escaping quotes.
142- Added the functions escape_string() and escape/unescape_bytea()
143  (as suggested by Charlie Dyson and Kavous Bojnourdi a long time ago).
144- Reverted code in clear() method that set date to current.
145- Added code for backwards compatibility in OID munging code.
146- Reorder attnames tests so that "interval" is checked for before "int."
147- If caller supplies key dictionary, make sure that all has a namespace.
148
149Version 3.8 (2006-02-17)
150------------------------
151- Installed new favicon.ico from Matthew Sporleder <mspo@mspo.com>
152- Replaced snprintf by PyOS_snprintf.
153- Removed NO_SNPRINTF switch which is not needed any longer
154- Clean up some variable names and namespace
155- Add get_relations() method to get any type of relation
156- Rewrite get_tables() to use get_relations()
157- Use new method in get_attnames method to get attributes of views as well
158- Add Binary type
159- Number of rows is now -1 after executing no-result statements
160- Fix some number handling
161- Non-simple types do not raise an error any more
162- Improvements to documentation framework
163- Take into account that nowadays not every table must have an oid column
164- Simplification and improvement of the inserttable() function
165- Fix up unit tests
166- The usual assortment of minor fixes and enhancements
167
168Version 3.7 (2005-09-07)
169------------------------
170Improvement of pgdb module:
171
172- Use Python standard `datetime` if `mxDateTime` is not available
173
174Major improvements and clean-up in classic pg module:
175
176- All members of the underlying connection directly available in `DB`
177- Fixes to quoting function
178- Add checks for valid database connection to methods
179- Improved namespace support, handle `search_path` correctly
180- Removed old dust and unnessesary imports, added docstrings
181- Internal sql statements as one-liners, smoothed out ugly code
182
183Version 3.6.2 (2005-02-23)
184--------------------------
185- Further fixes to namespace handling
186
187Version 3.6.1 (2005-01-11)
188--------------------------
189- Fixes to namespace handling
190
191Version 3.6 (2004-12-17)
192------------------------
193- Better DB-API 2.0 compliance
194- Exception hierarchy moved into C module and made available to both APIs
195- Fix error in update method that caused false exceptions
196- Moved to standard exception hierarchy in classic API
197- Added new method to get transaction state
198- Use proper Python constants where appropriate
199- Use Python versions of strtol, etc. Allows Win32 build.
200- Bug fixes and cleanups
201
202Version 3.5 (2004-08-29)
203------------------------
204Fixes and enhancements:
205
206- Add interval to list of data types
207- fix up method wrapping especially close()
208- retry pkeys once if table missing in case it was just added
209- wrap query method separately to handle debug better
210- use isinstance instead of type
211- fix free/PQfreemem issue - finally
212- miscellaneous cleanups and formatting
213
214Version 3.4 (2004-06-02)
215------------------------
216Some cleanups and fixes.
217This is the first version where PyGreSQL is moved back out of the
218PostgreSQL tree. A lot of the changes mentioned below were actually
219made while in the PostgreSQL tree since their last release.
220
221- Allow for larger integer returns
222- Return proper strings for true and false
223- Cleanup convenience method creation
224- Enhance debugging method
225- Add reopen method
226- Allow programs to preload field names for speedup
227- Move OID handling so that it returns long instead of int
228- Miscellaneous cleanups and formatting
229
230Version 3.3 (2001-12-03)
231------------------------
232A few cleanups.  Mostly there was some confusion about the latest version
233and so I am bumping the number to keep it straight.
234
235- Added NUMERICOID to list of returned types. This fixes a bug when
236  returning aggregates in the latest version of PostgreSQL.
237
238Version 3.2 (2001-06-20)
239------------------------
240Note that there are very few changes to PyGreSQL between 3.1 and 3.2.
241The main reason for the release is the move into the PostgreSQL
242development tree.  Even the WIN32 changes are pretty minor.
243
244- Add Win32 support (gerhard@bigfoot.de)
245- Fix some DB-API quoting problems (niall.smart@ebeon.com)
246- Moved development into PostgreSQL development tree.
247
248Version 3.1 (2000-11-06)
249------------------------
250- Fix some quoting functions.  In particular handle NULLs better.
251- Use a method to add primary key information rather than direct
252  manipulation of the class structures
253- Break decimal out in `_quote` (in pg.py) and treat it as float
254- Treat timestamp like date for quoting purposes
255- Remove a redundant SELECT from the `get` method speeding it,
256  and `insert` (since it calls `get`) up a little.
257- Add test for BOOL type in typecast method to `pgdbTypeCache` class
258  (tv@beamnet.de)
259- Fix pgdb.py to send port as integer to lower level function
260  (dildog@l0pht.com)
261- Change pg.py to speed up some operations
262- Allow updates on tables with no primary keys
263
264Version 3.0 (2000-05-30)
265------------------------
266- Remove strlen() call from pglarge_write() and get size from object
267  (Richard@Bouska.cz)
268- Add a little more error checking to the quote function in the wrapper
269- Add extra checking in `_quote` function
270- Wrap query in pg.py for debugging
271- Add DB-API 2.0 support to pgmodule.c (andre@via.ecp.fr)
272- Add DB-API 2.0 wrapper pgdb.py (andre@via.ecp.fr)
273- Correct keyword clash (temp) in tutorial
274- Clean up layout of tutorial
275- Return NULL values as None (rlawrence@lastfoot.com)
276  (WARNING: This will cause backwards compatibility issues)
277- Change None to NULL in insert and update
278- Change hash-bang lines to use /usr/bin/env
279- Clearing date should be blank (NULL) not TODAY
280- Quote backslashes in strings in `_quote` (brian@CSUA.Berkeley.EDU)
281- Expanded and clarified build instructions (tbryan@starship.python.net)
282- Make code thread safe (Jerome.Alet@unice.fr)
283- Add README.distutils (mwa@gate.net & jeremy@cnri.reston.va.us)
284- Many fixes and increased DB-API compliance by chifungfan@yahoo.com,
285  tony@printra.net, jeremy@alum.mit.edu and others to get the final
286  version ready to release.
287
288Version 2.4 (1999-06-15)
289------------------------
290- Insert returns None if the user doesn't have select permissions
291  on the table.  It can (and does) happen that one has insert but
292  not select permissions on a table.
293- Added ntuples() method to query object (brit@druid.net)
294- Corrected a bug related to getresult() and the money type
295- Corrected a bug related to negative money amounts
296- Allow update based on primary key if munged oid not available and
297  table has a primary key
298- Add many __doc__ strings (andre@via.ecp.fr)
299- Get method works with views if key specified
300
301Version 2.3 (1999-04-17)
302------------------------
303- connect.host returns "localhost" when connected to Unix socket
304  (torppa@tuhnu.cutery.fi)
305- Use `PyArg_ParseTupleAndKeywords` in connect() (torppa@tuhnu.cutery.fi)
306- fixes and cleanups (torppa@tuhnu.cutery.fi)
307- Fixed memory leak in dictresult() (terekhov@emc.com)
308- Deprecated pgext.py - functionality now in pg.py
309- More cleanups to the tutorial
310- Added fileno() method - terekhov@emc.com (Mikhail Terekhov)
311- added money type to quoting function
312- Compiles cleanly with more warnings turned on
313- Returns PostgreSQL error message on error
314- Init accepts keywords (Jarkko Torppa)
315- Convenience functions can be overridden (Jarkko Torppa)
316- added close() method
317
318Version 2.2 (1998-12-21)
319------------------------
320- Added user and password support thanks to Ng Pheng Siong (ngps@post1.com)
321- Insert queries return the inserted oid
322- Add new `pg` wrapper (C module renamed to _pg)
323- Wrapped database connection in a class
324- Cleaned up some of the tutorial.  (More work needed.)
325- Added `version` and `__version__`.
326  Thanks to thilo@eevolute.com for the suggestion.
327
328Version 2.1 (1998-03-07)
329------------------------
330- return fields as proper Python objects for field type
331- Cleaned up pgext.py
332- Added dictresult method
333
334Version 2.0  (1997-12-23)
335-------------------------
336- Updated code for PostgreSQL 6.2.1 and Python 1.5
337- Reformatted code and converted to use full ANSI style prototypes
338- Changed name to PyGreSQL (from PyGres95)
339- Changed order of arguments to connect function
340- Created new type `pgqueryobject` and moved certain methods to it
341- Added a print function for pgqueryobject
342- Various code changes - mostly stylistic
343
344Version 1.0b (1995-11-04)
345-------------------------
346- Keyword support for connect function moved from library file to C code
347  and taken away from library
348- Rewrote documentation
349- Bug fix in connect function
350- Enhancements in large objects interface methods
351
352Version 1.0a (1995-10-30)
353-------------------------
354A limited release.
355
356- Module adapted to standard Python syntax
357- Keyword support for connect function in library file
358- Rewrote default parameters interface (internal use of strings)
359- Fixed minor bugs in module interface
360- Redefinition of error messages
361
362Version 0.9b (1995-10-10)
363-------------------------
364The first public release.
365
366- Large objects implementation
367- Many bug fixes, enhancements, ...
368
369Version 0.1a (1995-10-07)
370-------------------------
371- Basic libpq functions (SQL access)
Note: See TracBrowser for help on using the repository browser.