diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1998-01-26 01:42:53 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1998-01-26 01:42:53 +0000 |
| commit | d5bbe2aca55bc833e38c768d7f82c129b8b70c83 (patch) | |
| tree | 47f4e1ecb3277869bb276e5433df335d920d1baf /src/include/libpq/libpq.h | |
| parent | 91d983aa1140e3ae109684ff7c916583ed059e0e (diff) | |
From: Phil Thompson <phil@river-bank.demon.co.uk>
I've completed the patch to fix the protocol and authentication issues I
was discussing a couple of weeks ago. The particular changes are:
- the protocol has a version number
- network byte order is used throughout
- the pg_hba.conf file is used to specify what method is used to
authenticate a frontend (either password, ident, trust, reject, krb4
or krb5)
- support for multiplexed backends is removed
- appropriate changes to man pages
- the -a switch to many programs to specify an authentication service
no longer has any effect
- the libpq.so version number has changed to 1.1
The new backend still supports the old protocol so old interfaces won't
break.
Diffstat (limited to 'src/include/libpq/libpq.h')
| -rw-r--r-- | src/include/libpq/libpq.h | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h index 19e5ca8fa54..a77a2afccff 100644 --- a/src/include/libpq/libpq.h +++ b/src/include/libpq/libpq.h @@ -6,20 +6,19 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: libpq.h,v 1.9 1998/01/24 22:49:21 momjian Exp $ - * - * NOTES - * This file contains definitions for structures and - * externs for functions used by both frontend applications - * and the POSTGRES backend. See the files libpq-fe.h and - * libpq-be.h for frontend/backend specific information + * $Id: libpq.h,v 1.10 1998/01/26 01:42:18 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef LIBPQ_H #define LIBPQ_H -#include <libpq/pqcomm.h> +#include <netinet/in.h> + +#include "libpq/libpq-be.h" +#include "access/htup.h" +#include "access/tupdesc.h" + /* ---------------- * PQArgBlock -- @@ -228,6 +227,27 @@ extern int pbuf_findFnumber(GroupBuffer *group, char *field_name); extern void pbuf_checkFnumber(GroupBuffer *group, int field_number); extern char *pbuf_findFname(GroupBuffer *group, int field_number); +/* in be-dumpdata.c */ +extern void be_portalinit(void); +extern void be_portalpush(PortalEntry *entry); +extern PortalEntry *be_portalpop(void); +extern PortalEntry *be_currentportal(void); +extern PortalEntry *be_newportal(void); +extern void +be_typeinit(PortalEntry *entry, TupleDesc attrs, + int natts); +extern void be_printtup(HeapTuple tuple, TupleDesc typeinfo); + + +/* in be-pqexec.c */ +extern char * +PQfn(int fnid, int *result_buf, int result_len, int result_is_int, + PQArgBlock *args, int nargs); +extern char *PQexec(char *query); +extern int pqtest_PQexec(char *q); +extern int pqtest_PQfn(char *q); +extern int32 pqtest(struct varlena * vlena); + /* * prototypes for functions in pqcomm.c */ |
