Skip to content

Commit 624d597

Browse files
committed
Use correct functions in bitmap index and gp_dump_query_oids
1 parent ae367e6 commit 624d597

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/access/bitmap/bitmapattutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ _bitmap_create_lov_heapandindex(Relation rel,
129129
* After creating the new relfilenode for a btee index, this is not
130130
* a btree anymore. We create the new metapage for this btree.
131131
*/
132-
btree_metabuf = _bt_getbuf(lovIndex, P_NEW, BT_WRITE);
132+
btree_metabuf = _bt_allocbuf(lovIndex, lovHeap);
133133
Assert (BTREE_METAPAGE == BufferGetBlockNumber(btree_metabuf));
134134
btree_metapage = BufferGetPage(btree_metabuf);
135135
_bt_initmetapage(btree_metapage, P_NONE, 0, _bt_allequalimage(lovIndex, true));

src/backend/utils/adt/gp_dump_oids.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ gp_dump_query_oids(PG_FUNCTION_ARGS)
234234
List *queryTree_sublist;
235235

236236

237-
Query *query = parse_analyze_varparams(parsetree, sqlText, NULL, 0, NULL);
237+
Query *query = parse_analyze_fixedparams(parsetree, sqlText, NULL, 0, NULL);
238238
query->expandMatViews = true;
239239
queryTree_sublist = pg_rewrite_query(query);
240240

0 commit comments

Comments
 (0)