Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id OAA20759 for postgres-dist; Mon, 21 Feb 1994 14:16:22 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199402212216.OAA20759@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.149.14]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id OAA20750 for <postgres@postgres.Berkeley.EDU>; Mon, 21 Feb 1994 14:16:21 -0800
Received: from localhost (aoki@localhost) by faerie.CS.Berkeley.EDU (8.6.4/8.1B) id OAA11974; Mon, 21 Feb 1994 14:16:06 -0800
Message-Id: <199402212216.OAA11974@faerie.CS.Berkeley.EDU>
From: aoki@postgres.Berkeley.EDU (Paul M. Aoki)
To: Vivek Shivpuri <vivek@tis.telos.com>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: PgHost 
Reply-To: aoki@postgres.Berkeley.EDU (Paul M. Aoki)
In-reply-to: Your message of Mon, 21 Feb 1994 16:40:11 -0500 (EST) 
	     <199402212140.QAA01421@ozone.telos.com> 
Date: Mon, 21 Feb 1994 14:16:06 -0800
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-dist@postgres.Berkeley.EDU
Resent-Date: Mon, 21 Feb 94 14:16:21 -0800
Resent-XMts: smtp

Vivek Shivpuri <vivek@tis.telos.com> writes:
>  I would like to be able to change my Postgres server from within 
>  a Libpq program, any ideas on how to do this? If at all this is
>  possible.

from the reference manual (the postscript for which should be in
doc/ref.ps, and if it's not then you're not using postgres 4.1):

  PQfinish       Close communication ports with the backend.  Terminates com-
		 munications and frees up the memory taken up by the LIBPQ
		 buffer.
  PQsetdb        Make the specified database the current database and reset
                 communication using PQreset (see below).
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki
