mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +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:
@ -1,8 +1,10 @@
|
||||
#include "postgres.h"
|
||||
#include "tcop/variable.h"
|
||||
|
||||
bool SetPGVariable(const char *varName, const char *value)
|
||||
bool SetPGVariable(const char *name, const char *value)
|
||||
{
|
||||
elog(NOTICE, "Variable %s set to \"%s\"", name, value);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user