1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* libpq-be.h--
|
|
|
|
* This file contains definitions for structures and
|
|
|
|
* externs for functions used by the POSTGRES backend.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1997-08-19 23:40:56 +02:00
|
|
|
* $Id: libpq-be.h,v 1.4 1997/08/19 21:38:37 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef LIBPQ_BE_H
|
|
|
|
#define LIBPQ_BE_H
|
|
|
|
|
1996-11-06 09:07:45 +01:00
|
|
|
#include <access/htup.h>
|
|
|
|
#include <access/tupdesc.h>
|
|
|
|
#include <libpq/libpq.h>
|
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
/* ----------------
|
|
|
|
* include stuff common to fe and be
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* declarations for backend libpq support routines
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* in be-dumpdata.c */
|
|
|
|
extern void be_portalinit(void);
|
|
|
|
extern void be_portalpush(PortalEntry *entry);
|
|
|
|
extern PortalEntry *be_portalpop(void);
|
1996-11-10 04:06:38 +01:00
|
|
|
extern PortalEntry *be_currentportal(void);
|
1996-07-09 08:22:35 +02:00
|
|
|
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);
|
|
|
|
|
|
|
|
#endif /* LIBPQ_BE_H */
|