שגיאת העברת מפתח

סיכום מבוסס בינה מלאכותית

A user encountered a migration error related to the pgvector extension in Discourse AI, which is now bundled with Discourse. The error occurs due to an unsupported syntax in their PostgreSQL version. merefield suspects their PostgreSQL version (12) is the cause. jahan_gagan confirms upgrading PostgreSQL will resolve the issue. merefield mentions moving to version 16, while RGJ states the migration runs fine on PG13. The discussion also touches on whether upgrading PostgreSQL is necessary when going to Discourse 3.5 and what the minimum required PostgreSQL version is.

נגרם על ידי Discourse AI:

== 20240611170904 UpgradePgvector070: migrating =============================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
ERROR:  syntax error at or near "("
/home/robert/discourse/lib/mini_sql_multisite_connection.rb:109:in `run'
/home/robert/discourse/plugins/discourse-ai/db/migrate/20240611170904_upgrade_pgvector_070.rb:10:in `up'
/home/robert/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/home/robert/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/home/robert/discourse/lib/migration/safe_migrate.rb:28:in `migrate'

אני לא משתמש בפלאגין אבל הוא כבר כלול.

זו הגרסה שלי ל-Postgres, אני מניח שאנסה לשדרג

שדרוג PostgreSQL יפתור את הבעיה, מכיוון שהגרסה הנוכחית אינה תומכת בתחביר שבו משתמשת ההרחבה pgvector בהגירה זו.

האם אנחנו צריכים גם לשדרג את PostgreSQL בעת המעבר ל-3.5, בנוסף להתקנת התוסף pgvector?
מהי גרסת PostgreSQL המינימלית הנדרשת?

עברתי ל-16, אבל 15 עשויה להספיק.

אני לא מבין את הנושא הזה. ההגירה הזו פועלת בסדר ב-PG13.

רצתי 12 :).

אבל תודה על האישור.