]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Oops, previous backpatch applied incorrectly.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 29 Dec 2009 20:49:00 +0000 (20:49 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 29 Dec 2009 20:49:00 +0000 (20:49 +0000)
contrib/tablefunc/tablefunc.c

index 019c2175bb29180f35a8561df2321b522916930f..8c09e671533291e2d9874d03da7901749f4410f8 100644 (file)
@@ -765,6 +765,7 @@ load_categories_hash(char *cats_sql, MemoryContext per_query_ctx)
        HASHCTL         ctl;
        int                     ret;
        int                     proc;
+       MemoryContext SPIcontext;
 
        /* initialize the category hash table */
        MemSet(&ctl, 0, sizeof(ctl));
@@ -855,7 +856,6 @@ get_crosstab_tuplestore(char *sql,
        HeapTuple       tuple;
        int                     ret;
        int                     proc;
-       MemoryContext SPIcontext;
 
        /* initialize our tuplestore */
        tupstore = tuplestore_begin_heap(true, false, work_mem);