SHOW <parameter> labels its column `@@session.<parameter>` instead of the parameter name

オープン 初心者向け
#3,969 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, postgresql
領域
databases

調査の方向性

列ラベルは、セッション変数に対する SHOW の処理経路から来ており、現在は名前の前に @@session. が付けられています。Go のソースでこの接頭辞を検索し、SHOW が結果の列を作成している箇所を特定してください。ローカルの Doltgres サーバーに対して SHOW search_path; と SHOW transaction_isolation; を実行して再現し、SELECT current_setting('search_path') の結果と比較してください。両方の SHOW 文がパラメータ名の列を返し、既存の SHOW テストがそれに合わせて更新されていれば完了です。

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

説明

customer issue

Description

SHOW search_path returns a single column labelled @@session.search_path. PostgreSQL labels it with the parameter name, search_path, and clients read the value by that name. The same happens for other parameters, e.g. SHOW transaction_isolation → @@session.transaction_isolation.

Impact: Cycle ORM (cycle/database, PHP) checks the effective schema with SHOW search_path and reads $row['search_path']; on Doltgres the key is missing, so 3 of its tests read null.

Steps to reproduce

Doltgres 1.5.3, Windows amd64 build, fresh data directory, client: PHP PDO pgsql.

SHOW search_path;
SHOW transaction_isolation;

Doltgres:

{"@@session.search_path": "\"$user\", public"}
{"@@session.transaction_isolation": "read committed"}

PostgreSQL 18:

{"search_path": "\"$user\", public"}
{"transaction_isolation": "read committed"}

SELECT current_setting('search_path') returns the same value on both, so only the column label differs.

Additional context

#3335 mentions the same label in passing (@@session.default_text_search_config) while reporting full-text search.

主要言語
Go
スター
2.2k
フォーク
93
平均マージ
19時間 38分
マージ済み PR(30日)
132

環境構築

はじめの一歩

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

dolthub/doltgresql のほかの issue

dolthub/doltgresql の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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