Return-Path: owner-postman 
Delivery-Date: Thu, 07 Apr 94 15:13:06 -0700
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 KAA19193 for postgres-redist; Thu, 7 Apr 1994 10:32:16 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199404071732.KAA19193@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 charlie.usd.edu (charlie.usd.edu [192.55.228.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id KAA19183 for <postgres@postgres.Berkeley.EDU>; Thu, 7 Apr 1994 10:32:13 -0700
From: SRIRAMK@charlie.usd.edu
Date: Thu, 7 Apr 1994 12:30:22 -0500 (CDT)
To: postgres@postgres.Berkeley.EDU
CC: SRIRAMK@charlie.usd.edu
Message-Id: <940407123022.1dc5@charlie.usd.edu>
Subject: Copying a file through a C pgm
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Thu, 07 Apr 94 10:32:16 -0700
Resent-XMts: smtp


I need to copy a Unix file into a Postgres Class.   I am able to
do this easily as a command at the Postgres prompt. 

However, I want to embed copy in one PQexec command, *in a C program* and
transfer the whole file into a class.  How do I do this ?


Sriram Kal

sriramk@usd.charlie.edu


