head	1.4;
access;
symbols
	REL7_2_8:1.3
	REL7_2_7:1.3
	REL7_2_6:1.3
	REL7_2_5:1.3
	REL7_2_4:1.3
	REL7_2_3:1.3
	REL7_2_STABLE:1.3.0.4
	REL7_2:1.3
	REL7_2_RC2:1.3
	REL7_2_RC1:1.3
	REL7_2_BETA5:1.3
	REL7_2_BETA4:1.3
	REL7_2_BETA3:1.3
	REL7_2_BETA2:1.3
	REL7_2_BETA1:1.3
	REL7_1_2:1.3
	REL7_1_STABLE:1.3.0.2
	REL7_1_BETA:1.3
	REL7_1_BETA3:1.3
	REL7_1_BETA2:1.3
	REL7_1:1.3
	REL7_0_PATCHES:1.1.0.4
	REL7_0:1.1
	REL6_5_PATCHES:1.1.0.2
	REL6_5:1.1;
locks; strict;
comment	@# @;


1.4
date	2002.09.23.21.10.13;	author petere;	state dead;
branches;
next	1.3;

1.3
date	2000.11.10.22.29.20;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.02.03.27.27;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	99.05.17.06.15.26;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Move PyGreSQL usage documentation from README into DocBook.  Some other
editing.
@
text
@Thanks to thilo@@eevolute.com and others for this README and the RPM

Note: The precompiled RPM package is not available at www.eevolute.com.
  You may use the spec file provided with PyGreSQL to build your
  own package.
    Hartmut Goebel <hartmut@@goebel.noris.de>


INSTALLING PyGreSQL on Redhat Linux 5.1 or 5.2
==============================================

Things are pretty easy on Redhat Linux.  You can either get a precompiled
RPM package from

        ftp://www.eevolute.com/pub/python/

or try in compile and install it yourself:

bash$ make redhat       # this just compiles the module as a shared object
cc -fpic -shared -o _pg.so -I/usr/include/python1.5 pgmodule.c -lpq
bash$ python            # you can test it from your local directory
Python 1.5.1 (#1, May  6 1998, 01:48:27)  [GCC 2.7.2.3] on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _pg
>>> db = _pg.connect('thilo', 'localhost')
>>> db.query("INSERT INTO test VALUES ('ping', 'pong')")
18304
>>> db.query("SELECT * FROM test")
eins|zwei
----+----
ping|pong
(1 row)

bash$ su                # Yow! Seems to work - now install it properly
bash# cp _pg.so /usr/lib/python1.5/lib-dynload 

done!

Oliver White (ojw@@muzak.iinet.net.au) sent me the following information
about installing on Debian.

Hi, I thought you might want to upgrade your documentation for PyGreSQL
to let people know they can get it by simply typing 'apt-get install
python-pygresql', on debian (duh). This would have saved me a lot of
trouble.

@


1.3
log
@Update to PyGreSQL 3.1:

Fix some quoting functions. In particular handle NULLs better.

Use a method to add primary key information rather than direct
manipulation of the class structures.

Break decimal out in _quote (in pg.py) and treat it as float.

Treat timestamp like date for quoting purposes.

Remove a redundant SELECT from the get method speeding it, and
insert since it calls get, up a little.

Add test for BOOL type in typecast method to pgdbTypeCache class.
(tv@@beamnet.de)

Fix pgdb.py to send port as integer to lower level function
(dildog@@l0pht.com)

Change pg.py to speed up some operations

Allow updates on tables with no primary keys.

D'Arcy J.M. Cain
@
text
@@


1.2
log
@Update for PyGreSQL 3.0, from D'Arcy J.M. Cain
@
text
@d1 1
a1 1
Thanks to thilo@@eevolute.com for this README and the RPM
d38 8
@


1.1
log
@Re-add python.
@
text
@d3 5
@
