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

libpq debug

From: "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr>
To: "pgsql interfaces" <pgsql-interfaces(at)postgresql(dot)org>
Subject: libpq debug
Date: 2001-11-22 16:40:46
Message-ID: 001001c17374$72ae9850$ef00000a@darko (view raw or flat)
Thread:
Lists: pgsql-interfaces
Does anyone know how to set the debug TTY in libpq client library ?
I did not find any example what to put in property pgtty:

PGconn *PQsetdbLogin(const char *pghost,
                     const char *pgport,
                     const char *pgoptions,
                     const char *pgtty,
                     const char *dbName,
                     const char *login,
                     const char *pwd)

I tried with :
    /dev/ptsxx 
    /dev/pts/xx
    ptsxx
    pts/xx
but no result.

I've also tried with -o pgoption to set debug log file, but no output was written to that file.
I'm trying to debug some functions and without those two methods, it is very hard work !!!

Darko

Responses

pgsql-interfaces by date

Next:From: Tom LaneDate: 2001-11-22 18:01:14
Subject: Re: libpq debug
Previous:From: Oscar SerranoDate: 2001-11-22 16:27:04
Subject: Re: What front end are people using?

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