Re: wanting to use postgres with python - WHAT am I doing wrong?????? AGGGHHHH

From: Stephane Bortzmeyer <bortzmeyer(at)nic(dot)fr>
To: veronica(dot)bounmixay(at)inl(dot)gov
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: wanting to use postgres with python - WHAT am I doing wrong?????? AGGGHHHH
Date: 2005-08-05 12:16:20
Message-ID: 20050805121620.GA13781@nic.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 03, 2005 at 09:49:18AM -0600,
Ronni <bounvl(at)inl(dot)gov> wrote
a message of 24 lines which said:

> I want to use postgres with python

This is too vague. Do you want:

1) To do server-side programming in Python (creating functions in
Python instead of plPgSQL or SQL)?

If so:
http://www.postgresql.org/docs/8.0/interactive/plpython.html

2) Access the database from a client written in Python?

If so:
http://initd.org/projects/psycopg1

(There are other Python client interfaces such as PoPy, but psycopg is
the most common, and best maintained version.)

The second is typically much simpler. (I do both.)

> I did both on my Sun Solaris Opteron AMD 64 (Mandrake 10.1 os)
^^^^^^^ ^^^^^^^^
??? Solaris or Mandrake?

> using the --enable-shared and --with-python options.

--with-python is only for 1), server-side programming.

> but I can't seem to do stuff with both!

Commands typed and actual results obtained? Otherwise, noone can help
you.

> I read up and decided that I needed PyGreSQL

No.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Pundt 2005-08-05 12:19:27 Re: DNS vs /etc/hosts
Previous Message David Goodenough 2005-08-05 11:18:24 Re: Does preparing statements other than selects help performance?