2001-09-03  Federico Di Gregorio  <fog@debian.org>

	* merged in changes from HEAD (mostly mcm fixes to binary
	objects.)

	* preparing for release 0.99.6.

2001-09-03  Michele Comitini  <mcm@initd.net>

	* typemod.c: much faster Binary encoding routine.
	
	* typeobj.c: much faster Binary decoding routine.	

2001-08-28  Michele Comitini  <mcm@initd.net>

	* typemod.c: Working binary object to feed data to bytea type
	fields.

	* typeobj.c: Added BINARY typecast to extract data from
	bytea type fields.

	* cursor.c: Added handling for SQL binary  cursors.

2001-08-3  Michele Comitini <mcm@initd.net>

	* cursor.c: fixed DATESTYLE problem thanx to Steve Drees.

2001-07-26  Federico Di Gregorio  <fog@debian.org>

	* Makefile.pre.in: applied change suggested by Stefan H. Holek to
	clobber and distclean targets.

2001-07-23  Federico Di Gregorio  <fog@debian.org>

	* ZPsycopgDA/db.py: fixed little bugs exposed by multiple select
	changes, not we correctly import ListType and we don't override
	the type() function with a variable. 

2001-07-17  Federico Di Gregorio  <fog@debian.org>

	* configure.in: Release 0.99.5.

2001-07-12  Federico Di Gregorio  <fog@debian.org>

	* debian/* fixed some little packaging problems.

2001-07-11  Federico Di Gregorio  <fog@debian.org>

	* cursor.c, typeobj.c: removed some Py_INCREF on PyDict_SetItem
	keys and values to avoid memory leaks.

2001-07-03  Federico Di Gregorio  <fog@debian.org>

	* cursor.c (_mogrify_dict): added dictionary mogrification: all
	Strings in the dictionary are translated into QuotedStrings. it
	even works... (_mogrify_seq): added sequence mogrification and
	code to automagically mogrify all strings passed to .execute(). 

2001-07-02  Federico Di Gregorio  <fog@debian.org>

	* Release 0.99.4.

	* typemod.c: added QuotedString class and methods.

	* module.c: added QuotedString method to module psycopg.

	* typemod.c: changed Binary objects into something usefull. now
	the buffer object quotes the input by translatin every char into
	its octal representation. this consumes 4x memory but guarantees
	that even binary data containing '\0' can go into the Binary
	object. 

	* typemod.h: added definition of QuotedString object.
	
2001-06-28  Federico Di Gregorio  <fog@debian.org>

	* ZPsycopgDA/db.py, ZPsycopgDA/DABase.py: applied patch sent by
	yury to fix little buglet. 

2001-06-22  Federico Di Gregorio  <fog@debian.org>

	* Release 0.99.3.
	
	* connection.c (new_psyco_connobject): now we strdup dsn, as a fix
	for the problem reported by Jack Moffitt.

	* Ok, this will be the stable branch from now on...

	* Merged in stuff from 0.99.3. About to re-branch with a better
	name (BRANCH_1_0)

2001-06-20  Federico Di Gregorio  <fog@debian.org>

	* Release 0.99.3. Showstoppers for 1.0 are:
	    - documentation
	    - mxDateTime module loading
	    - bug reported by Yury.
	
	* Integrated patches from Michele:
	    - searching for libcrypt in configure now works
	    - removed memory leak in asprintf.c

2001-06-15  Federico Di Gregorio  <fog@debian.org>

	* ZPsycopgDA/__init__.py (initialize): applied patch from Jelle to
	resolve problem with Zope 2.4.0a1.

2001-06-14  Federico Di Gregorio  <fog@debian.org>

	* configure.in: added code to check for missing functions (only
	asprintf at now.)

	* asprintf.c: added compatibility code for oses that does not have
	the asprintf() function.

2001-06-10  Federico Di Gregorio  <fog@debian.org>

	* Branched PSYCOPG_0_99_3. Development will continue on the cvs
	HEAD, final adjustements and bugfixing should go to this newly
	created branch.

2001-06-08  Michele Comitini  <mcm@initd.net>

	* ZPsycopgDA/DA.py: DateTime casts simplified and corrected
	as suggested by Yury.

2001-06-05  Federico Di Gregorio  <fog@debian.org>

	* Release 0.99.2.

	* Makefile.pre.in (dist): added typemod.h and typemod.c to
	distribution.
	
	* cursor.c (commit_pgconn, abort_pgconn, begin_pgconn): resolved
	segfault reported by Andre by changing PyErr_SetString invokations
	into pgconn_set_critical. the problem was that the python
	interpreter simply segfaults when we touch its internal data (like
	exception message) inside an ALLOW_THREADS wrapper.

	* now that we are 100% DBAPI-2.0 compliant is time for the
	one-dot-o release (at last!) Para-pa-pa! This one is tagged
	PSYCOPG_0_99_1 but you can call it 1.0pre1, if you better like. 
	(A very long text just to say 'Release 0.99.1')

	* typemod.[ch]: to reach complete DBAPI-2.0 compliance we
	introduce some new objects returned by the constructors Date(),
	Time(), Binary(), etc. Those objects are module-to-database only,
	the type system still takes care of the database-to-python
	conversion.

2001-06-01  Federico Di Gregorio  <fog@debian.org>

	* Release 0.5.5.

	* module.h: better error message when trying to commit on a
	cursor derived from serialized connection.
	
	* ZPsycopgDA/db.py (DB.close): now self.cursor is set to None when
	the connection is closed.

	* module.c (initpsycopg): added missing (sic) DBAPI module
	parameters (paramstyle, apilevel, threadsafety, etc...)

2001-05-24  Michele Comitini  <mcm@initd.net>

	* ZPsycopgDA: Support for Zope's internal DateTime, option
	to leave mxDateTime is available on the management interface so
	to switch with little effort :).

	* cursor.c: more aggressive cleanup of postgres results
	to avoid the risk of memory leaking.

	* typeobj.c, connection.c: deleted some Py_INCREF which
	wasted memory.

2001-05-18  Federico Di Gregorio  <fog@debian.org>

	* Release 0.5.4.

2001-05-17  Michele Comitini  <mcm@initd.net>

	* ZPsycopgDA/db.py: The connection closed by the management
	interface of zope now raises error instead of reopening itself.

	* cursor.c (psyco_curs_close):  does not try to free the cursor
	list, as it caused a segfault on subsequent operations on the same
	cursor.

2001-05-07  Federico Di Gregorio  <fog@debian.org>

	* Release 0.5.3.
	
	* Merged in changes from me and mcm.

2001-05-06  Michele Comitini  <mcm@initd.net>

	* ZPsycopgDA/db.py (DB.close): Fixes a bug report by Andre
	Shubert, which was still open since there was a tiny typo in
	method definition.

	* ZPsycopgDA/DA.py (Connection.sql_quote__): overriding standard
	sql_quote__ method to provide correct quoting (thank to Philip
	Mayers and Casey Duncan for this bug report).

2001-05-04  Federico Di Gregorio  <fog@debian.org>

	* ZPsycopgDA/db.py: added .close() method (as suffested by Andre
	Schubert.)

2001-05-04  Michele Comitini  <mcm@initd.net>

	* module.h: working on a closed object now raises an
	InterfaceError.

	* ZPsycopgDA/db.py: fixed problems with dead connections detection.

	* ZPsycopgDA/__init__.py: corrected SOFTWARE_HOME bug for zope
	icon.

2001-05-04  Federico Di Gregorio  <fog@debian.org>

	* examples/thread_test.py: now that the serialization bug is
	fixed, it is clear that thread_test.py is bugged! added a commit()
	after the creation of the first table to avoid loosing it on the
	exception raised by the CREATE of an existing table_b.

2001-05-03  Federico Di Gregorio  <fog@debian.org>

	* connection.c (psyco_conn_cursor): reverted to old locking
	policy, the new caused a nasty deadlock. apparently the multiple
	connection problem has been solved as a side-effect of the other
	fixes... (?!)

	* module.h: removes stdkeeper field from connobject, we don't need
	it anymore.

	* cursor.c (dispose_pgconn): now sets self->keeper to NULL to
	avoid decrementing the keeper refcnt two times when the cursor is
	first closed and then destroyed.

	* connection.c (psyco_conn_cursor): fixed little bug in cursor
	creation: now the connection is locked for the entire duration of
	the cursor creation, to avoid a new cursor to be created with a
	new keeper due to a delay in assigning the stdmanager cursor.

	* cursor.c: added calls to pgconn_set_critical() and to
	EXC_IFCRITICAL() where we expect problems. Still segfaults but at
	least raise an exception...
	
	* cursor.c (psyco_curs_autocommit): added exception if the
	cursor's keeper is shared between more than 1 cursor.

	* module.h (EXC_IFCRITICAL): added this macro that call
	pgconn_resolve_critical) on critical errors.

	* cursor.c (alloc_keeper): added check for pgres == NULL. 

	* cursor.c (psyco_curs_destroy): merged psyco_curs_destroy() and
	psyco_curs_close(): now both call _psyco_curs_close() and destroy
	does only some extra cleanup.

2001-05-03  Michele Comitini  <mcm@initd.net>

	* ZPsycopgDA/db.py: Some cleanup to bring the zope product up to
	date with the python module.  Some bugs found thanks to Andre
	Schubert.  Now the ZDA should rely on the new serialized version
	of psycopg.

	* cursor.c: while looking for problems in the ZDA some come out
	here, with the inability to handle dropping connection correctly.
	This leads to segfaults and is not fixed yet for lack of time.
	Some problems found in cursors not willing to share the same
	connection even if they should.  Hopefully it should be fixed
	soon.

2001-04-26  Federico Di Gregorio  <fog@debian.org>

	* fixed bug reported by Andre Schubert by adding a new cast
	function for long integers (int8 postgresql type.) at now they are
	converted to python LongIntegers: not sure f simply convert to
	floats.

	* michele applied patch from Ivo van der Wijk to make zpsycopgda
	behave better when INSTANCE_HOME != SOFTWARE_HOME.

	* cursor.c (_psyco_curs_execute): also fill the 'columns' field.

	* module.h: added a 'columns' field to cursobject, to better
	support the new dictionary fetch functions (dictfetchone(),
	dictfetchmany(), dictfetchall().)

	* cursor.c: added the afore-mentioned functions (function names
	are not definitive, they will follow decisions on the DBAPI SIG.)

2001-04-03  Federico Di Gregorio  <fog@debian.org>

	* Release 0.5.1.

	* mcm fixed a nasty bug by correcting a typo in module.h.

2001-03-30  Federico Di Gregorio  <fog@debian.org>

	* module.c (psyco_connect): added `serialized' named argument to
	the .connect() method (takes 1 or 0 and initialize the connection
	to the right serialization state.)

	* Makefile.pre.in (dist): fixed little bug, a missing -f argument
	to rm.

	* examples/thread_test.py: removed all extension cruft.

	* examples/thread_test_x.py: this one uses extensions like the
	per-cursor commit, autocommit, etc.

	* README (psycopg): added explanation on how .serialize() works. 

	* connection.c (psyco_conn_serialize): added cursor serialization
	and .serialize() method on the connection object. now we are
	definitely DBAPI-2.0 compliant.

2001-03-20  Federico Di Gregorio  <fog@debian.org>

	* cursor.c (_psyco_curs_execute): replaced some fields in
	description with None, as suggested on the DB-SIG ML.

	* something like one hundred of little changes to allow cursors
	share the same postgres connection. added connkeeper object and
	pthread mutexes (both in connobject and connkeeper.) apparently it
	works. this one will be 0.5.0, i think.

2001-03-19  Michele Comitini  <mcm@initd.net>

	* cursor.c: added mutexes, they do not interact well with python
	threads :(.

2001-03-16  Michele Comitini  <mcm@initd.net>

	* ZPsycopgDA/db.py (ZDA): some fixes in table browsing.

2001-03-16  Federico Di Gregorio  <fog@debian.org>

	* suite/tables.postgresql (TABLE_DESCRIPTIONS): fixed some typos
	introduced by copying by hand the type values from pg_types.h.

	* suite/*: added some (badly) structured code to test for
	DBAPI-2.0 compliance.
       
	* cursor.c (pgconn_notice_callback): now the NOTICE processor only
	prints NOTICEs when psycopg has been compiled with the
	--enable-devel switch. 

	* connection.c: removed 'autocommit' attribute, now is a method as
	specified in the DBAPI-2.0 document.

2001-03-15  Federico Di Gregorio  <fog@debian.org>

	* connection.c (curs_commitall): splitted for cycle in two to
	avoid the "bad snapshot" problem.

2001-03-14  Federico Di Gregorio  <fog@debian.org>

	* Release 0.4.6.
	
	* cursor.c (_psyco_curs_execute): fixed nasty bug, there was an
	free(query) left from before the execute/callproc split.

	* Preparing for 0.4.6.

2001-03-13  Federico Di Gregorio  <fog@debian.org>

	* cursor.c (psyco_curs_execute): fixed some memory leaks in
	argument parsing (the query string was not free()ed.)
	(psyco_curs_callproc): implemented callproc() method on cursors.
	(_psyco_curs_execute): this is the function that does the real
	stuff for callproc() and execute().
	(pgconn_notice_*): added translation of notices into python
	exceptions (do we really want that?) 

	* configure.in: removed some cruft (old comments and strncasecmp()
	check)

2001-03-12  Federico Di Gregorio  <fog@debian.org>

	* examples/thread_test.py: added moronic argument parsing: now you
	can give the dsn string on the command line... :(

	* Release 0.4.5.

2001-03-10  Federico Di Gregorio  <fog@debian.org>

	* cursor.c (request_pgconn): added code to set datestyle to ISO on
	new connections (many thanks to Yury <yura@vpcit.ru> for the code,
	i changed it just a little bit to raise an exception on error.)

2001-03-09  Federico Di Gregorio  <fog@debian.org>

	* Release 0.4.4.

	* ZPsycopgDA/db.py: michele fixed a nasty bug here. 

2001-03-08  Federico Di Gregorio  <fog@debian.org>

	* Release 0.4.3.

2001-03-07  Federico Di Gregorio  <fog@debian.org>

	* Makefile.pre.in (dist): typeobj_builtins.c included for people
	without pg_types.h. if you encounter type-casting problems like
	results cast to the wrong type, simply "rm typeobj_builtins.c" and
	rebuild.

	* typeobj.c (psyco_*_cast): removed RETURNIFNULL() macro from all
	the builtin casting functions. (psyco_STRING_cast) does not create
	a new string anymore, simply Py_INCREF its argument and return it.

	* cursor.c (psyco_curs_fetchone): removed strdup() call. added
	PQgetisnull() test to differentiate between real NULLs and empty
	strings.

	* Removed cursor.py (mcm, put tests in examples) and fixed some
	typos in the dtml code.

2001-03-04  Michele Comitini  <mcm@initd.net>

	* examples/commit_test.py: Modifications to test argument passing
	and string substitution to cursor functions, nothing more.

	* ZPsycopgDA/db.py: now it exploits some of the good features of
	the psycopg driver, such as connection reusage and type
	comparison.  Code is smaller although it handles (and
	reports) errors much better.

	* cursor.c: corrected a bug that left a closed cursor in the
	cursor list of the connection.  Now cursors are removed from the
	lists either when they are close or when they are destroyed.
	Better connection (TCP) error reporting and handling.


2001-03-02  Federico Di Gregorio  <fog@debian.org>

	* examples commit_test.py: added code to test autocommit.
	
	* examples/thread_test.py (ab_select): modified select thread to
	test autocommit mode.

	* Release 0.4.1.
	
	* module.h, connection.c, cursor.c: added autocommit support.

2001-02-28  Federico Di Gregorio  <fog@debian.org>

	* Release 0.4.

2001-02-27  Michele Comitini  <mcm@initd.net>

	* cursor.py: cut some unuseful code in psyco_curs_fetchmany() and
	psyco_curs_fetchall() inserted an assert in case someting goes
	wrong.

2001-02-27  Federico Di Gregorio  <fog@debian.org>

	* debian/*: various changes to build both the python module and
	the zope db adapter in different packages (respectively
	python-psycopg and zope-psycopgda.)  

	* examples/type_test.py: better and more modular tests. 

	* typeobj.c: added DATE, TIME, DATETIME, BOOLEAN, BINARY and ROWID
	types. (RETURNIFNULL) added NULL-test to builtin conversion
	functions (using the RETURNIFNULL macro.)

2001-02-26  Federico Di Gregorio  <fog@debian.org>

	* releasing 0.3 (added NEWS file.)

2001-02-26  Michele Comitini  <mcm@initd.net>

	* cursor.c: fetchmany() some cleanup done.

	* ZPsycopgDA/db.py, ZPsycopgDA/__init__.py, : fixes to make the
	ZDA work some way.  WARNING WARNING WARNING the zda is still
	alpha code, but we need some feed back on it so please give it
	a try.
	
2001-02-26  Federico Di Gregorio  <fog@debian.org>

	* typeobj.c (psyco_STRING_cast): fixed bad bad bad bug. we
	returned the string without coping it and the type-system was more
	than happy to Py_DECREF() it and trash the whole system. fixed at
	last!

	* module.h (Dprintf): added pid to every Dprintf() call, to
	facilitate multi-threaded debug.

2001-02-26  Michele Comitini  <mcm@initd.net>

	* module.c: added code so that DateTime package need not to be
	loaded to have mxDateTime.  This should avoid clashing with
	DateTime from the zope distribution.

	* cursor.c: setting error message in fetchmany when no more tuples
	are left. This has to be fixed in fetch and fetchall to.

2001-02-26  Federico Di Gregorio  <fog@debian.org>

	* configure.in: stepped up version to 0.3, ready to release
	tomorrow morning. added check for path to DateTime module. 

	* examples/usercast_test.py: generate some random boxes and
	points, select the boxes with at least one point inside and print
	them converting the PostgeSQL output using a user-specified cast
	object. nice. 

2001-02-24  Federico Di Gregorio  <fog@debian.org>

	* cursor.c (psyco_curs_fetchone): now an error in the python
	callback when typecasting results raise the correct exception.

	* typeobj.c (psyco_DBAPITypeObject_call): removed extra Py_INCREF().

2001-02-23  Federico Di Gregorio  <fog@debian.org>

	* replaced every single instance of the string 'pgpy' with 'psyco'
	(this was part of the general cleanup.)
	
	* type_test.py: added this little test program to the distribution
	(use the new_type() method to create new instances of the type
	objects.)  

	* typeobj.c: general cleanup. fixed some bugs related to
	refcounting (again!)

	* cursor.c: general cleanup. (request_pgconn) simplified by adding
	a support function (_extract_pgconn.)

	* connection.c: general cleanup. replaced some ifs with asserts()
	in utility functions when errors depend on programming errors and
	not on runtime exceptions. (pgpy_conn_destroy) fixed little bug
	when deleting available connections from the list.

	* module.h: general cleanup.

	* typeobj.h: general cleanup, better comments, made some function
	declarations extern. 

	* module.c: general cleanup, double-checked every function for
	memory leaks. (pgpy_connect) removed unused variable 'connection'.

2001-02-22  Federico Di Gregorio  <fog@debian.org>

	* typeobj.c: fixed lots of bugs, added NUMBER type object. now the
	basic tests in type_test.py work pretty well.

	* cursor.c (pgpy_curs_fetchmany): fixed little bug, fetchmany()
	reported one less row than available.

	* fixed lots of bugs in typeobj.c, typeobj.h, cursor.c. apparently
	now the type system works. it is time to clean up things a little
	bit.

2001-02-21  Federico Di Gregorio  <fog@debian.org>

	* typeobj.c: separated type objects stuff from module.c
	
	* typeobj.h: separated type objects stuff from module.h 

2001-02-19  Federico Di Gregorio  <fog@debian.org>

	* cursor.c (pgpy_curs_fetchmany): now check size and adjust it to
	be lesser or equal than the nuber of available rows.

2001-02-18  Michele Comitini  <mcm@initd.net>

	* module.c, module.h: added optional args maxconn and minconn to
	connection functions

	* cursor.c: better error checking in request_pgconn.

	* connection.c: changed new_connect_obj to take as optional args
	maxconn and minconn. Added the corresponding ro attributes to
	connection objects.

	* cursor.py: added some code to stress test cursor reusage.

	* cursor.c: some fixes on closed cursors.

	* connection.c: corrections on some assert calls.

2001-02-16  Federico Di Gregorio  <fog@debian.org>

	* configure.in: added --enable-priofile sqitch. changed VERSION to
	0.2: preparing for a new release.

	* cursor.c: added a couple of asserts.

2001-02-16  Michele Comitini  <mcm@initd.net>

	* cursor.c, connection.c: fixed the assert problem: assert must
	take just the value to be tested! no assignemente must be done in
	the argument of assert() otherwise is wiped when NDEBUG is set.

	* module.h: some syntax error fixed.  Error in allocating a tuple
	corrected in macro DBAPITypeObject_NEW().
	
	* module.c: pgpy_DBAPITypeObject_init() is not declared static anymore.

	* cursor.c: executemany() now does not create and destroy tuples
	for each list item, so it is much faster.

2001-02-14  Michele Comitini  <mcm@initd.net>

	* cursor.c:  added again Py_DECREF on the cpcon after disposing
	it.  assert() with -DNDEBUG makes the driver segfault while it
	should not.
	

2001-02-13  Federico Di Gregorio  <fog@debian.org>

	* some of the memory leak were memprof errors, bleah. resumed some
	old code, fixed segfault, fixed other bugs, improved speed. almost
	ready for a new release.
	
	* connection.c (pgpy_conn_destroy): replaced some impossible ifs
	with aseert()s.

	* cursor.c (pgpy_curs_close): added Py_DECREF() to
	self->descritpion to prevent a memory leak after an execute().

	* connection.c (pgpy_conn_destroy): always access first element of
	lists inside for cycles because removing items from the list makes
	higher indices invalid.

	* cursor.c (dispose_pgconn): fixed memory leak, there was a
	missing Py_DECREF() after the addition of the C object wrapping
	the postgresql connection to the list of available connections.

	* cursor.c (dispose_pgconn): fixed another memory leak: an
	orphaned cursor should call PQfinish() on its postgresql
	connection because it has no python connection to give the
	postgresql ine back.

	* cursor.c (pgpy_curs_execute): added Py_DECREF() of description
	tuple after adding it to self->description. this one fixes the
	execute() memory leak.
	
	* cursor.c (pgpy_curs_fetchall): added missing Py_DECREF() on row
	data (obtained from fetchone().) this fixes the last memory leak.
	(thread_test.py now runs without leaking memory!)

2001-02-12  Federico Di Gregorio  <fog@debian.org>

	* INSTALL: removed wok cruft from head of this file.

	* debian/rules: debianized the sources. python-psycopg is about to
	enter debian. mxDateTime header locally included until the
	maintainer of python-mxdatetime includes them in his package
	(where they do belong.)

	* autogen.sh: added option --dont-run-configure. 

2001-02-09  Federico Di Gregorio  <fog@debian.org>

	* module.c (initpsycopg): changed name of init function to match
	new module name (also changed all the exception definitions.)

	* README: updated psycopg description (we have a new name!)

	* Ready for 0.1 release.

2001-02-07  Michele Comitini  <mcm@initd.net>

	* cursor.c: now executemany takes sequences and not just
	tuples 

2001-02-07  Federico Di Gregorio  <fog@debian.org>

	* Makefile.pre.in: now dist target includes test programs
	(thread_test.py) and README and INSTALL files. 

	* configure.in: changed --with-devel to --enable-devel. little
	cosmetical fixes to the option management.
	
	* connection.c, module.c, cursor.c, module.h: removed 'postgres/'
	from #include directive. it is ./configure task to find the right
	directory.

	* thread_test.py: added thread testing program.

2001-02-07  Michele Comitini  <mcm@initd.net>

	* cursor.c: added code to allow threads during PQexec() calls.
	
	* cursor.c: added begin_pgconn to rollback() and commit()
	so that the cursror is not in autocommit mode.

	* cursor.c: added rollback() and commit() methods to cursor
	objects.


2001-02-07  Federico Di Gregorio  <fog@debian.org>

	* connection.c (pgpy_conn_destroy): always delete item at index
	0 and not i (because items shift in the list while deleting and
	accessing items at len(list)/2 segfaults.)

2001-02-07  Michele Comitini  <mcm@initd.net>

	* connection.c: added some more checking to avoid
	clearing of already cleared pgresults.  Calling curs_closall()
	in conn_destroy() since cursors have to live even without
	their parent connection, otherwise explicit deletion of
	object referencing to those cursors can cause arbitrary code
	to be executed.

	* cursor.c: some more checking to avoid trying to close
	already close pgconnections.

2001-02-06  Federico Di Gregorio  <fog@debian.org> 

	* Makefile.pre.in (CFLAGS): added -Wall to catch bad programming
	habits. 

	* cursor.c, connection.c: lots of fixes to the destroy stuff. now
	all the cursor are destroyed *before* the connection goes away.

	* cursor.c (request_pgconn): another idiot error done by not
	replacing dsn with owner_conn->dsn. fixed.
	(dispose_pgconn): commented if to guarantee that the connection is
	returned to the pool of available connections.

	* merged changes done by mcm.

	* cursor.c: general cleanup and better debugging/error
	messages. changed xxx_conn into xxx_pgconn where still
	missing. some pretty big changes to the way pgconn_request()
	allocates new connections.

	* connection.c: removed all 'register' integers. obsolete, gcc
	does a much better job optimizing cycles than a programmer
	specifying how to use registers. 

	* module.h: some general cleanup and better definition of DPrintf
	macro. now the DEBUG variable can be specified at configure time by
	the --with-devel switch to ./configure.

2001-02-02  Michele Comitini  <mcm@initd.net>

	* cursor.c (Repository): Added functions for managing a connection
	pool. Segfaults.

	* configure.in (Repository): removed check for mxdatetime headers.

2001-01-24  Federico Di Gregorio  <fog@debian.org>

	* first checkout from shinning new init.d cvs.

	* autotoolized build system. note that the mx headers are missing
	from the cvs, you should get them someplace else (this is the
	right way to do it, just require the headers in the configure
	script.)

2001-01-21  Michele Comitini  <mcm@initd.net>

	* cursor.c (Repository): commit, abort, begin functions now check
	the right exit status of the command.

	* connection.c (Repository): working commit() and rollback()
	methods.

2001-01-20  Michele Comitini  <mcm@initd.net>

	* module.h (Repository): added member to cursor struct to handle
	queries without output tuples.

	* cursor.c (Repository): new working methods: executemany,
	fetchone, fetchmany, fetchall.

2001-01-18  Michele Comitini  <mcm@initd.net>

	* cursor.c (Repository): close working. destroy calling close.
	close frees pg structures correctly.

	* connection.c (Repository): close method working.  destroy seems
	working.

2001-01-17  Michele Comitini  <mcm@initd.net>

	* cursor.c (Repository): now each python cursor has its own
	connection.  Each cursor works in a transaction block.

	* connection.c (Repository): added cursor list to connection
	object

2001-01-14  Michele Comitini  <mcm@initd.net>

	* cursor.c (Repository): Beginning of code to implement cursor
	functionalities as specified in DBA API 2.0, through the use of
	transactions not cursors.

	* connection.c (Repository): Added some error checking code for pg
	connection (will be moved to cursor?).

2001-01-13  Michele Comitini  <mcm@initd.net>

	* connection.c (Repository): Added error checking in connection
	code to fail if connection to the db could not be opened.

	* module.h (Repository): New macro to help creating
	DBAPITypeObjects.

	* module.c (Repository): DBAPITypeObject __cmp__ function is now
	very simplified using recursion.

	* module.h (Repository): "DBAPIObject" changed to
	"DBAPITypeObject".

	* module.c (Repository): Fixes for coerce function of DBAPIObjects
	by Federico Di Gregorio <fog@initd.net>.
	(Repository): Clean up and better naming for DBAPITypeObjects.

2001-01-08  Michele Comitini  <mcm@initd.net>

	* module.c (Repository): Corrected the exception hierarcy

	* connection.c (Repository): Begun to use the connection objects
	of libpq

2001-01-07  Michele Comitini  <mcm@initd.net>

	* module.c (Repository): Added the Date/Time functions.

2001-01-06  Michele Comitini  <mcm@initd.net>

	* cursor.c (Repository): Skeleton of cursor interface.  All
	methods and attributes of cursor objects are now available
	in python.  They do nothing now.

2001-01-05  Michele Comitini  <mcm@initd.net>

	* module.c (Repository): Test version; module loaded with 
	exception defined.
	
2001-01-05  Michele Comitini  <mcm@initd.net>

	* Setup.in (Repository): Setup file.

	* Makefile.pre.in (Repository): from the python source.

2001-01-05  Michele Comitini  <mcm@initd.net>

	* module.c: Written some code for defining exceptions.
	
	* module.h: Static variable for exceptions.
	
2001-01-04  Michele Comitini  <mcm@initd.net>

	* Changelog: pre-release just a few prototypes to get started.
	

