agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@postgres.Berkeley.EDU>
To: Vivek Shivpuri <vivek@tis.telos.com>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Mosaic and libpq
Date: Mon, 09 May 94 15:29:32 -0700
Message-ID: <199405092229.PAA29117@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <199405092134.RAA07213@ozone.tis.telos.com.tis.telos.com>
Vivek Shivpuri <vivek@tis.telos.com> writes:
> postgres. For some reason the program just hangs on
> PQexec("begin");
>
> Before I make this call the program has succesfully executed
> PQtrace();
> PQsetdb("dbname");
> buff=PQdb();
>
> I have tried removing all traces of the www interface and the program ran
> succesfully, so that's why I think the problem lies there.
>
> Unfortuately no one replied to this. I am having the exact same problem.
not knowing anything about how www clients work, it's a bit hard to
suggest anything, but i can make the following observations:
- somewhere in PQexec is the first attempt to make a network
connection.
(e.g., a child process of mosaic or httpd may not have the
environment set up as you might expect, which is one factor
that may bollix the attempt to make a network connection.)
- you have both the libpq source and a debugger; it can't be
*that* hard to figure out exactly what operation is blocking..?
(i.e., run gdb on a client compiled with -g, get to the call in
PQexec and just keeping hitting "step")
(does stderr have a place to go? can you see what it is?)
--
Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@postgres.Berkeley.EDU
| Berkeley, CA 94720 | ...!uunet!ucbvax!aoki
===============================================================================
To add/remove yourself from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
===============================================================================
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: postgres@postgres.berkeley.edu
Cc: aoki@postgres.Berkeley.EDU, vivek@tis.telos.com
Subject: Re: Mosaic and libpq
In-Reply-To: <199405092229.PAA29117@faerie.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox