summaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorMarc G. Fournier1997-03-18 20:15:39 +0000
committerMarc G. Fournier1997-03-18 20:15:39 +0000
commit812a6c2b546850e9f9721b580698d5a161e5d76e (patch)
tree043e497eb6ccd99bb7b7d8052dbdb0fd9429d8c3 /src/include/miscadmin.h
parentd1463050658950afd25ef2457182a498b6b3a6b4 (diff)
- Move most of the I/O in both libpq and the backend to a set
of common routines in pqcomprim.c (pq communication primitives). Not all adapted to it yet, but it's a start. - Rewritten some of those routines, to write/read bigger chunks of data, precomputing stuff in buffers instead of sending out byte by byte. - As a consequence, I need to know the endianness of the machine. Currently I rely on getting it from machine/endian.h, but this may not be available everywhere? (Who the hell thought it was a good idea to pass integers to the backend the other way around than the normal network byte order? *argl*) - Libpq looks in the environment for magic variables, and upon establishing a connection to the backend, sends it queries of the form "SET var_name TO 'var_value'". This needs a change in the backend parser (Mr. Parser, are you there? :) - Currently it looks for two Env-Vars, namely PG_DATEFORMAT and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT? PG_TIMEZONE? From: "Martin J. Laubach" <mjl@wwx.vip.at>
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 81fcece3463..a7648feb99a 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.6 1997/03/18 16:36:23 scrappy Exp $
+ * $Id: miscadmin.h,v 1.7 1997/03/18 20:15:19 scrappy Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -70,6 +70,9 @@ extern bool CDayLight;
extern int CTimeZone;
extern char CTZName[];
+extern char FloatFormat[];
+extern char DateFormat[];
+
extern Oid LastOidProcessed; /* for query rewrite */
#define MAX_PARSE_BUFFER 8192