1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Look Ma, no MAX_PARSE_BUFFER! (At least not in the backend.

pg_dump and interfaces/odbc still need some work.)
This commit is contained in:
Tom Lane
1999-10-23 03:13:33 +00:00
parent 627b5e9c20
commit ecd0bfa81a
22 changed files with 128 additions and 183 deletions

View File

@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: util.c,v 1.13 1999/07/17 20:17:03 momjian Exp $
* $Id: util.c,v 1.14 1999/10/23 03:13:22 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,6 +22,15 @@
#include "libpq/libpq.h"
/* ----------------
* global variables for backend libpq
* ----------------
*/
char PQerrormsg[PQERRORMSG_LENGTH];
int PQtracep = 0; /* 1 to print out debugging messages */
FILE *debug_port = (FILE *) NULL;
/* ----------------
* exceptions
* ----------------
@@ -30,15 +39,12 @@ Exception MemoryError = {"Memory Allocation Error"};
Exception PortalError = {"Invalid arguments to portal functions"};
Exception PostquelError = {"Sql Error"};
Exception ProtocolError = {"Protocol Error"};
char PQerrormsg[ERROR_MSG_LENGTH];
int PQtracep = 0; /* 1 to print out debugging messages */
FILE *debug_port = (FILE *) NULL;
/* ----------------------------------------------------------------
* PQ utility routines
* ----------------------------------------------------------------
*/
void
pqdebug(char *target, char *msg)
{