diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-23 03:13:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-23 03:13:33 +0000 |
commit | ecd0bfa81a8290219f4973b8fd456a2ffeb11d40 (patch) | |
tree | 734cc8342c23bc8b1643ee1859003943015e7c03 /src/backend/libpq/util.c | |
parent | 627b5e9c20d91cfdd5e6fd672ec997c8fbb3a2a2 (diff) | |
download | postgresql-ecd0bfa81a8290219f4973b8fd456a2ffeb11d40.tar.gz postgresql-ecd0bfa81a8290219f4973b8fd456a2ffeb11d40.zip |
Look Ma, no MAX_PARSE_BUFFER! (At least not in the backend.
pg_dump and interfaces/odbc still need some work.)
Diffstat (limited to 'src/backend/libpq/util.c')
-rw-r--r-- | src/backend/libpq/util.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/backend/libpq/util.c b/src/backend/libpq/util.c index c331298dbd5..755554fb0d9 100644 --- a/src/backend/libpq/util.c +++ b/src/backend/libpq/util.c @@ -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 $ * *------------------------------------------------------------------------- */ @@ -23,6 +23,15 @@ /* ---------------- + * 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) { |