[Bug] pgdump/pg_dumpall schema-only - out of memory problem after upgrade from CBDB 2.1.0 to CBDB 2.2.0 found

オープン
#2,330 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
43/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, postgresql
領域
databases

調査の方向性

The failure occurs in pg_dump while reading column information for interesting tables; the payload does not identify a source file or test. Start by tracing that step in the pg_dump code and find how the reported database schema triggers the out-of-memory error. Done means pg_dump -s and pg_dumpall -s complete on the reporter’s DWH database after upgrading from CBDB 2.1.0 to 2.2.0.

索引モデルが issue の本文から書いたものです。

説明

type: Bug
Apache Cloudberry version

PostgreSQL 14.10 (Apache Cloudberry 2.2.0-incubating build dev) on x86_64-pc-linux-gnu, compiled by gcc (Astra 1.8.2)

What happened

Hi,

After upgrade from CBDB 2.1.0 to CBDB 2.2.0 we found pgdump/pg_dumpall schema-only - out of memory problem

Details the next:

gpadmin@qc1:~$ /usr/cloudberry-db/bin/pg_dump -v -s -f /tmp/qwe1.sql --no-blobs ' dbname=dwh'
pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
pg_dump: reading schemas
pg_dump: reading user-defined tables
pg_dump: reading user-defined functions
pg_dump: reading user-defined types
pg_dump: reading procedural languages
pg_dump: reading user-defined aggregate functions
pg_dump: reading user-defined operators
pg_dump: reading user-defined external protocols
pg_dump: reading user-defined access methods
pg_dump: reading user-defined operator classes
pg_dump: reading user-defined operator families
pg_dump: reading user-defined text search parsers
pg_dump: reading user-defined text search templates
pg_dump: reading user-defined text search dictionaries
pg_dump: reading user-defined text search configurations
pg_dump: reading user-defined foreign-data wrappers
pg_dump: reading user-defined foreign servers
pg_dump: reading default privileges
pg_dump: reading user-defined collations
pg_dump: reading user-defined conversions
pg_dump: reading type casts
pg_dump: reading transforms
pg_dump: reading table inheritance information
pg_dump: reading event triggers
pg_dump: finding extension tables
pg_dump: finding inheritance relationships
pg_dump: reading column info for interesting tables
out of memory

What you think should happen instead

No response

How to reproduce

Run pgdump -s or pg_dumpall -s on our database DWH

Operating System

Astra Linux 1.8.2 analog Debian 12

Anything else

No response

Are you willing to submit PR?
  • Yes, I am willing to submit a PR!
Code of Conduct
主要言語
C
スター
1.4k
フォーク
273
平均マージ
4日 6時間
マージ済み PR(30日)
105

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/cloudberry のほかの issue

apache/cloudberry の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。