From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Marc G. Fournier <scrappy@hub.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/gram.y | modified | +29 −4 |
| src/backend/tcop/utility.c | modified | +13 −2 |
| src/backend/tcop/variable.c | modified | +3 −1 |
| src/include/nodes/nodes.h | modified | +2 −1 |
| src/include/nodes/parsenodes.h | modified | +12 −1 |