pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Antonio Navarro Navarro <hostmaster@bemarnet.es>
To: pgsql-interfaces@hub.org
Cc: darcy@druid.net
Subject: Re: Python + PostgreSQL
Date: Fri, 04 Aug 2000 09:01:47 +0200
Message-ID: <4.1.20000804085946.00ca5f00@pop3.bemarnet.es> (raw)
In-Reply-To: <m13KLd8-000AY3C@druid.net>
References: <4.1.20000802123207.00c22a20@pop3.bemarnet.es>

At 10.05 3/8/00 -0400, darcy@druid.net (D'Arcy J.M. Cain) wrote:

>Thus spake Antonio Navarro Navarro
>> I have installed postgresql-python-7.0.2-2.i386.rpm in a RedHat 6.2 box.
>> Where can I find documentation for this module ? I'm trying to connect to a
>> server but the python says 'no password supplied'
>> 
>> import pg
>> 
>> dg = pg.connect("template1", "localhost", 5432)
>
>If the server requires a password then you need to supply one here.  If
>you don't need a password (i.e. "psql template1" works) then try this.

Hi again !

How must I add the password to the call , maybe

 dg = pg.connect("template1", "10.0.0.1", 5432,"username", "password") ?

and where could I find documentation for the different functions supplied
in the package ?

Regards,

Antonio Navarro Navarro
BemarNet Management
http://www.bemarnet.es
hostmaster@bemarnet.es
Tlf. +34-96-1656644
Fax. +34-96-1656514



view thread (11+ messages)  latest in thread

Message-ID: <4.1.20000804085946.00ca5f00@pop3.bemarnet.es>
Permalink:  ../4.1.20000804085946.00ca5f00@pop3.bemarnet.es/
Also on:    postgresql.org/message-id/4.1.20000804085946.00ca5f00@pop3.bemarnet.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: hostmaster@bemarnet.es, pgsql-interfaces@hub.org, darcy@druid.net
  Subject: Re: Python + PostgreSQL
  In-Reply-To: <4.1.20000804085946.00ca5f00@pop3.bemarnet.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox