We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e614f1 commit 140d7f9Copy full SHA for 140d7f9
1 file changed
src/postgresql/cloudsync_postgresql.c
@@ -48,9 +48,7 @@ static cloudsync_context *pg_cloudsync_context = NULL;
48
static cloudsync_context *get_cloudsync_context(void) {
49
if (pg_cloudsync_context == NULL) {
50
// Create context - db_t is not used in PostgreSQL mode
51
- MemoryContext old = MemoryContextSwitchTo(TopMemoryContext);
52
pg_cloudsync_context = cloudsync_context_create(NULL);
53
- MemoryContextSwitchTo(old);
54
if (!pg_cloudsync_context) {
55
ereport(ERROR, (errcode(ERRCODE_OUT_OF_MEMORY), errmsg("Not enough memory to create a database context")));
56
}
0 commit comments