This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new 624d597a672 Use correct functions in bitmap index and 
gp_dump_query_oids
624d597a672 is described below

commit 624d597a672298199298ed67e1008a9f3d412804
Author: Jinbao Chen <[email protected]>
AuthorDate: Tue Dec 16 15:32:29 2025 +0800

    Use correct functions in bitmap index and gp_dump_query_oids
---
 src/backend/access/bitmap/bitmapattutil.c | 2 +-
 src/backend/utils/adt/gp_dump_oids.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/access/bitmap/bitmapattutil.c 
b/src/backend/access/bitmap/bitmapattutil.c
index b96b2414112..23a08d0ab40 100644
--- a/src/backend/access/bitmap/bitmapattutil.c
+++ b/src/backend/access/bitmap/bitmapattutil.c
@@ -129,7 +129,7 @@ _bitmap_create_lov_heapandindex(Relation rel,
                 * After creating the new relfilenode for a btee index, this is 
not
                 * a btree anymore. We create the new metapage for this btree.
                 */
-               btree_metabuf = _bt_getbuf(lovIndex, P_NEW, BT_WRITE);
+               btree_metabuf = _bt_allocbuf(lovIndex, lovHeap);
                Assert (BTREE_METAPAGE == BufferGetBlockNumber(btree_metabuf));
                btree_metapage = BufferGetPage(btree_metabuf);
                _bt_initmetapage(btree_metapage, P_NONE, 0, 
_bt_allequalimage(lovIndex, true));
diff --git a/src/backend/utils/adt/gp_dump_oids.c 
b/src/backend/utils/adt/gp_dump_oids.c
index 2dd0da6d57c..e9e8a44adf4 100644
--- a/src/backend/utils/adt/gp_dump_oids.c
+++ b/src/backend/utils/adt/gp_dump_oids.c
@@ -234,7 +234,7 @@ gp_dump_query_oids(PG_FUNCTION_ARGS)
                List       *queryTree_sublist;
 
 
-               Query   *query = parse_analyze_varparams(parsetree, sqlText, 
NULL, 0, NULL);
+               Query   *query = parse_analyze_fixedparams(parsetree, sqlText, 
NULL, 0, NULL);
                query->expandMatViews = true;
                queryTree_sublist = pg_rewrite_query(query);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to