mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Subject: [HACKERS] Patch: SET var TO 'val' Here is a patch that adds a "SET variable TO 'somevalue'" capability to the parser, and then calls the SetPGVariable() function (which does just issue a elog(NOTICE) to see whether it works). That's the framework for adding timezone/date format/language/... stuff.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nodes.h,v 1.6 1997/04/02 03:34:44 vadim Exp $
|
||||
* $Id: nodes.h,v 1.7 1997/04/02 18:24:38 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -179,6 +179,7 @@ typedef enum NodeTag {
|
||||
T_VacuumStmt,
|
||||
T_ExplainStmt,
|
||||
T_CreateSeqStmt,
|
||||
T_VariableSetStmt,
|
||||
|
||||
T_A_Expr = 700,
|
||||
T_Attr,
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.11 1997/04/02 03:34:46 vadim Exp $
|
||||
* $Id: parsenodes.h,v 1.12 1997/04/02 18:24:52 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -423,6 +423,17 @@ typedef struct ExplainStmt {
|
||||
bool verbose; /* print plan info */
|
||||
} ExplainStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Set Statement
|
||||
* ----------------------
|
||||
*/
|
||||
|
||||
typedef struct VariableSetStmt {
|
||||
NodeTag type;
|
||||
char *name;
|
||||
char *value;
|
||||
} VariableSetStmt;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Optimizable Statements
|
||||
|
Reference in New Issue
Block a user