2006-12-18  Emilio C. Lopes  <eclig@gmx.net>

	* pg.scm (pg:connect): added support for password encryption using
	  MD5.
	  (md5password): new procedure.
	  (string->md5-hash): ditto.
	  (number->hex): ditto.

2006-12-17  Emilio C. Lopes  <eclig@gmx.net>

	* pg.scm (pg:AUTH_REQ_MD5): new variable.
	(pg:connect): explicit error message in case of MD5 authentication.

	* pg.scm (pg:send-password): new procedure.
	(pg:connect): added support for encrypted passwords using
	`crypt'. Use `pg:send-password' for sending passwords.

	* demo.scm (test-lo-read): make all large-object operations within a
	  transaction.
	  (test-lo-import): ditto.

	* pg.scm (pg:with-transaction*): new procedure.
	(pg:with-transaction): new syntax.

	* demo.scm (test): check if there are any tables in the test
	  database before trying to access them.

	* pg.scm (pg:tables): safer query for all database tables, which
	  lists only "visible" tables.

	* demo.scm (test): use `else' instead of `t' (this is not Common Lisp).

	* packages.scm (pg): use package `string-lib' (for `string-index').
	* pg.scm (pg:result): the procedure is called `string-index'.

	* packages.scm (pg): use module `scheme-with-scsh' instead of
	  `scheme' and `scsh'.
	* demo.scm (test): ditto.

	* packages.scm: renamed from modules.scm.

