Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA17610; Sat, 9 Nov 91 08:15:08 -0800
Date: Sat, 9 Nov 91 08:15:08 -0800
Message-Id: <9111091615.AA17610@postgres.Berkeley.EDU>
From: tait@sml3.ecs.umass.edu
Subject: LIBPQ -PQputline
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
X-Organization: University of Massachusetts, Amherst, MA 01003
X-Time: Sat Nov  9 11:01:27 1991



I've been trying to get the following LIBPQ program to insert
information into a database, however I get the following error
messsage. 


FATAL 1:Nov  9 11:04:51:Socket command type c unknown


Error: No response from the backend, exiting...

____

I know I must be doing something wrong - but I don't know what. However  I
have been able to get the LIBPQ extraction program from the ref man to work.

Also if anyone has any further information, sample programs etc
regarding the FAST PATH trap door system I would really apreciate it.

Thanks

Edwin Tait

/* test libpq.c E.Tait */

#include <stdio.h>
#include "libpq.h"
#include <string.h>

main()

    
     {
    

     /* specify the database to access */

     PQsetdb("test");
     
     /* start a transaction block for eportal */
     PQexec("begin");
   

     /* try to insert information into a relation */
 
     PQexec("create foo (a =int4,b=char16,d=float8)");     
     PQputline("copy foo from stdin");
     PQputline("4	hello world	4.5");
     PQputline(".\n");
     PQendcopy();
 
     /* end the transaction block */
     PQexec("end");
     
   
     /* finnish execution */
     PQfinish();
     
   }
     















