MagicStack / MagicStack/asyncpg

UndefinedTableError: relation "pg_temp.session_vars" does not exist

オープン
#908 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

主要言語
Python
スター
8.1k
フォーク
468
PR マージ指標
30日以内にマージされた PR はありません

説明

I can successfully connect to a PostgreSQL database and execute queries against a database to view the data the tables contain.

However, when I try to execute an UPDATE, I get the following error:

```
UndefinedTableError: relation "pg_temp.session_vars" does not exist
```

I am creating a connection to the database by doing the following:
(nothing special)
```
conn = await asyncpg.connect(user='username',
password='password',
database='databasename',
host='localhost')
```

I was wondering what, if anything, you might be aware of that would resolve this issue. Might there be something additional I need to do when setting up the connection?

(I can connect to the database directly via the shell and issue UPDATE's without any problems.)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

提供された asyncpg.connect の例から始め、動作する shell セッションと比較しながら、PostgreSQL に対する UPDATE を再現します。セッションスコープの pg_temp.session_vars 参照と、接続コンテキスト間の違いを調査します。asyncpg に問題があるのか、データベース側のセットアップに問題があるのかを切り分け、再現可能な修正を記録できれば完了です。

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

評価

技術スタック
postgresql, python
領域
database
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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