Last active
August 1, 2017 00:12
-
-
Save RhodiumToad/763c1a4c5185f618d04acc999f763a2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "postgres.h" | |
#include "fmgr.h" | |
#include "utils/guc.h" | |
PG_MODULE_MAGIC; | |
void _PG_init(void); | |
static char *query_group = NULL; | |
/* | |
* Module load callback | |
*/ | |
void | |
_PG_init(void) | |
{ | |
/* Define custom GUC variables. */ | |
DefineCustomStringVariable("query_group", | |
"Redshift compatibility, ignored.", | |
NULL, | |
&query_group, | |
"", | |
PGC_USERSET, | |
0, | |
NULL, | |
NULL, | |
NULL); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODULE_big = guchack | |
OBJS = guchack.o | |
PG_CONFIG = pg_config | |
PGXS = $(shell $(PG_CONFIG) --pgxs) | |
include $(PGXS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment