Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

db sync fails to start

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

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

評価

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

調査の方向性

まず、行レベルセキュリティを使用する PostgreSQL テーブルに対して Windows 上の DB-SYNC 2.1.1 で障害を再現し、次に UUID キーを使用するテーブルと比較します。報告された重複した ogc_fid エラーと空の UPDATE ... SET WHERE ステートメントを完了条件として使用します。同期は、いずれの SQL エラーも発生せずに開始される必要があります。

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

説明

I actually experiencing two type of issues. I am using DB-SYNC 2.1.1 on windows.

I have couple of tables in a database and I am actively use row level security, to modify the availability of data to field users.
Whenever I try to sync a table with activated row level security the db sync fails as it tries to add the id column two times:

Error: postgres cmd error: ERROR: column "ogc_fid" specified more than once

so I removed all the privileges setup, it did fail. I tried with postgres user it did fail. I removed my original id column and added uuid field with uuid_generate_v4() this helped to generate another error

LINE 1: UPDATE "public_db_sync"."chambers_mergin" SET  WHERE "uuid2"...
                                                       ^
SQL:
UPDATE "public_db_sync"."chambers_mergin" SET  WHERE "uuid2" = 'ffdc0ee4-6fd8-4e90-a5e3-32a975efc37c'

any help would be much appreciated

主要言語
Python
スター
54
フォーク
25
平均マージ
5日 14時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

MerginMaps/db-sync のほかの issue

MerginMaps/db-sync の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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