Return-Path: mao
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA03663; Sat, 11 Jan 92 16:58:15 -0800
Message-Id: <9201120058.AA03663@postgres.Berkeley.EDU>
From: mao@postgres.Berkeley.EDU (Mike Olson)
Subject: Re: clarification on PQgetvalue()
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
In-Reply-To: Your message of Sat, 11 Jan 92 15:15:20 PST.
             <9201112315.AA02964@postgres.Berkeley.EDU> 
Date: Sat, 11 Jan 92 16:57:32 PST

In message <9201112315.AA02964@postgres.Berkeley.EDU> you write:

> in said program, in function count_users() e. g., why isn't
> retrieve portal used, but rather just retrieve? is it because
> you won't need to fetch the actual tuples?

yes.

> why do you check for 'E' in case of error from PQexec?
> the ref manual says that, for historical reasons, an 'R'
> is returned.

'R' is returned in the case of no error (it stands for RESULTS).  if
the command fails for some reason (you removed pg_user, for example),
then the return code is 'E', signifying error.  the string following
the 'E' token gives details.
					mike olson
					mao@cs.berkeley.edu
