Skip site navigation (1) Skip section navigation (2)

Re: libpgtcl and passwords

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: libpgtcl and passwords
Date: 2001-04-28 03:18:55
Message-ID: 200104280318.f3S3Ita05675@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
> 
> Is there a way to user username/passwords with libpgtcl?  I don't see
> any options in pg_connect.  Is it pg_connect -conninfo conninfoString? 
> Does conninfoString match libpq's PQconnectdb?

I think I found the answer:

        /*
         * Establish a connection using the new PQconnectdb() interface
         */
        if (argc != 3)
        {
            Tcl_AppendResult(interp, "pg_connect: syntax error\n", 0);
            Tcl_AppendResult(interp, "pg_connect -conninfo conninfoString", 0);
            return TCL_ERROR;
        }

It wasn't clear to me that -conninfo is the standard PQconnectdb string
from the manual.  Let me see if I can clear that up.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-interfaces by date

Next:From: Fernando Eduardo B. L. e CarvalhoDate: 2001-04-29 12:34:05
Subject: Kylix
Previous:From: Bruce MomjianDate: 2001-04-28 03:02:53
Subject: libpgtcl and passwords

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group