- Renamed the variable names to something shorter, and I hope
authorMarc G. Fournier
Tue, 25 Mar 1997 02:37:21 +0000 (02:37 +0000)
committerMarc G. Fournier
Tue, 25 Mar 1997 02:37:21 +0000 (02:37 +0000)
    nicer. Also, I grabbed my copy of the Informix manual, and
    added a couple of variables that make sense (formats for
    money, time, a language setting, a timezone).

  - New functions SetPGVariable() and GetPGVariable() in tcop/*.
    These don't actually do anything for the moment, but should
    be enough to implement the SET var_name TO var_val in the
    parser?

    SetPGVariable() expects just two strings, the var_name and
    the var_value from above, and is expected to do the right thing.
    Returns TRUE if  everything okay.

From: "Martin J. Laubach" 

src/backend/tcop/Makefile
src/interfaces/libpq/fe-connect.c

index 47bdd96909e85d43036f4276f652825e0320ac78..a40e3e717e5950c54e6cc9bd16e22751d98ef48d 100644 (file)
@@ -4,7 +4,7 @@
 #    Makefile for tcop
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.8 1996/11/18 02:26:55 bryanh Exp $
+#    $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.9 1997/03/25 02:35:22 scrappy Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -24,7 +24,7 @@ ifeq ($(CC), gcc)
 CFLAGS+= -Wno-error
 endif
 
-OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o
+OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o variable.o
 
 all: SUBSYS.o
 
index 4b3a8630a516f4a6acb1048d2430131c9d0c8750..b5ac17f5cfacef8b4b7f8c7d131217f0a93a7bb0 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.25 1997/03/18 20:15:39 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.26 1997/03/25 02:37:21 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -105,8 +105,12 @@ struct EnvironmentOptions
    const char *envName, *pgName;
    } EnvironmentOptions[] =
    {
-       { "PG_DATEFORMAT",  "pg_dateformat" },
-       { "PG_FLOATFORMAT", "pg_floatformat" },
+       { "PG_DATE",    "date" },
+       { "PG_TIME",    "time" },
+       { "PG_FLOAT",   "float" },
+       { "PG_LANG",    "language" },
+       { "PG_TZONE",   "timezone" },
+       { "PG_MONEY",   "money" },
        { NULL }
    };